BBnepal-Accounts/application/views/inventory/footer.php

80 lines
3.6 KiB
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<!--<script src="<?php echo base_url(); ?>assets_admin/js/jquery-3.4.1.min.js"></script>-->
<script src="<?php echo base_url(); ?>assets_admin/js/jquery-ui.min.js"></script>
<script src="<?php echo base_url(); ?>assets_admin/js/popper.min.js"></script>
<script src="<?php echo base_url(); ?>assets_admin/js/bootstrap.min.js"></script>
<!-- <script defer src="<?php echo base_url(); ?>assets_admin/js/all.js"></script> -->
<script defer src="<?php echo base_url(); ?>assets_admin/js/main.js"></script>
<script src="<?php echo base_url(); ?>assets_admin/owl-carousel/js/owl.carousel.min.js"></script>
<script src="<?php echo base_url(); ?>assets_admin/js/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url(); ?>assets_admin/js/nepali.datepicker.v3.7.min.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets_admin/js/bootstrap4-toggle.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/pdfmake.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/vfs_fonts.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/buttons.html5.min.js">
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/jszip.min.js"> </script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/buttons.print.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/datatable-2-1-0/buttons.print.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.colVis.min.js">
</script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.3/js/buttons.semanticui.min.js">
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets_admin/js/dataTables.fixedColumns.min.js"></script>
<script>
$(document).ready(function() {
$('.user-drpdown').click(function() {
$('.drpdown-items').toggle();
});
let url = window.location.href.toLowerCase();
let flag = false;
let Clickedurl;
$('ul.admin-sidebar li').removeClass('active');
$('ul.admin-sidebar li a').each(function() {
Clickedurl = $(this).attr('href').toLowerCase();
if (url == Clickedurl) {
console.log(url, Clickedurl)
flag = true;
let liParent = $(this).parent();
liParent.addClass('active');
$.ajax({
url: '<?php echo base_url() ?>teacher/update_link_active',
data: {
link: url
},
type: 'POST',
async: false,
success: function(data) {}
});
}
});
if (flag == false) {
Clickedurl = '<?php echo isset($_SESSION['active_old_link']) ? $_SESSION['active_old_link'] : 0 ?>';
$('ul.admin-sidebar li a').each(function() {
if ($(this).attr('href') == Clickedurl) {
let liParent = $(this).parent();
liParent.addClass('active');
}
});
}
});
$(function() {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</body>
</html>