BBnepal-Accounts/account/application/views/includes/footer.php

239 lines
7.0 KiB
PHP
Raw Permalink Normal View History

2024-07-10 12:43:19 +00:00
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
<div class="p-3">
<h5>Title</h5>
<p>Sidebar content</p>
</div>
</aside>
<!-- /.control-sidebar -->
<!-- Main Footer -->
<footer class="main-footer">
<!-- To the right -->
<div class="float-right d-none d-sm-inline">
AD: <?php echo date("Y-m-d"); ?> / BS: <?php echo NepaliDate(); ?>
</div>
<!-- Default to the left -->
<strong>Copyright &copy; <?php echo date("Y"); ?> <a href="https://bibhutisolutions.com.au">Bibhuti Solutions</a>.</strong> All rights reserved.
</footer>
</div>
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- AdminLTE App -->
<script src="<?php echo base_url(); ?>plugins/summernote/summernote-bs4.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/codemirror/codemirror.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?php echo base_url(); ?>dist/js/adminlte.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/select2/js/select2.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.2/simplebar.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/dropzone/min/dropzone.min.js"></script>
<!--script src="https://unpkg.com/nepali-date-picker@2.0.1/dist/jquery.nepaliDatePicker.min.js" crossorigin="anonymous"></script-->
<!--link rel="stylesheet" href="https://unpkg.com/nepali-date-picker@2.0.1/dist/nepaliDatePicker.min.css" crossorigin="anonymous" /-->
<script src="<?php echo base_url(); ?>plugins/nepalidatepicker/nepaliDatePicker.min.js"></script>
<script src="<?php echo base_url(); ?>plugins/printElement/jquery.printElement.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
<script src="https://adminlte.io/themes/v3/plugins/daterangepicker/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>plugins/bstreeview/js/bstreeview.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>dist/js/jspdf.min.js"></script>
<script>
function printDiv(divName) {
//Dcoumentation Link for jsPDF >> https://rawgit.com/MrRio/jsPDF/master/docs/index.html
// alert(divName);
// console.log();
// $("#" + divName).printElement({
// printMode: 'popup',
// leaveOpen: true,
// });
// $("#showBillModal").modal('hide');
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
location.reload();
// var doc = new jsPDF();
// var htmlContent = document.getElementById('contentToPrint');
// var options = {
// margin: {
// top: 10,
// bottom: 10,
// left: 10,
// right: 10
// }
// };
// doc.html(htmlContent, options);
// var pdfDataUri = doc.output('datauristring');
// // Open the PDF in a new tab
// var newTab = window.open();
// newTab.document.write('<iframe src="' + pdfDataUri + '" style="width:100%;height:100%;" frameborder="0"></iframe>');
}
</script>
<script>
$(function() {
$('.dataTable').DataTable({
"pageLength": 20,
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": false,
"sortable": true,
"info": true,
"autoWidth": true,
"responsive": true,
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#dataTable_commands');
$('.longdataTable').DataTable({
"pageLength": 10000,
"paging": false,
"sortable": false,
"lengthChange": true,
"searching": true,
"stateSave": false,
"ordering": true,
"info": true,
"autoWidth": true,
"responsive": true,
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#dataTable_commands');
$('.datetimepicker').datetimepicker({
format: 'YYYY-MM-DD'
});
$('.dataTable_scrollBody').css('height', '700px');
$(".select2").select2();
$(".example3").DataTable({
"responsive": true,
"lengthChange": false,
"autoWidth": false,
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#example3_wrapper .col:eq(1)');
});
$(".nepaliDatePicker").nepaliDatePicker({
dateFormat: "%y-%m-%d",
closeOnDateSelect: true
});
function swapdate(nepDate, engDate) {
var nepalidatefield = document.getElementById(nepDate);
var englishdatefield = document.getElementById(endDate);
}
// Initialize Simplebar
const scrollableContent = document.querySelector('.scrollable-content');
new SimpleBar(scrollableContent);
</script>
<script>
$(function() {
// Summernote
$('.summernote').summernote();
var textareas = document.querySelectorAll(".codemirror");
for (var i = 0; i < textareas.length; i++) {
CodeMirror.fromTextArea(textareas[i], {
lineWrapping: true,
mode: "html",
theme: "neat",
lineNumbers: true
});
}
})
</script>
<script>
$('#reservation').daterangepicker()
</script>
<?php
if (function_exists("footerfunctions")) {
footerfunctions();
}
?>
<script>
$(document).ready(function() {
$('#database-select').change(function() {
var selectedDatabase = $(this).val();
$.ajax({
url: 'update_env.php',
method: 'POST',
data: {
database: selectedDatabase
},
success: function(response) {
window.location = "<?php echo site_url("logout"); ?>";
},
error: function(xhr, status, error) {
console.error(error);
// Handle the error if needed
}
});
});
});
</script>
<style>
.nepali-date-picker .drop-down-content {
width: 140%;
}
.nepali-date-picker .drop-down-content .option-wrapper {
min-width: 58px;
}
</style>
</body>
</html>