
  <footer class="main-footer">
	  &copy; 2018 <a href="http://www.peigriega.com/">PEIGRIEGA - AdminWeb</a>
  </footer>

  <div class="control-sidebar-bg"></div> 
  
</div>
	<!-- jQuery 3 -->
	<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
	
	<!-- jQuery UI 1.11.4 -->
	<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
    
    <!-- Datatable -->
    <script src="assets/vendor_components/datatable/datatables.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.0/js/dataTables.buttons.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.0/js/buttons.print.min.js"></script>
    <script src="https://cdn.datatables.net/searchpanes/1.2.0/js/dataTables.searchPanes.min.js"></script>
    <script src="https://cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
    <script src="//cdn.datatables.net/plug-ins/1.10.21/dataRender/datetime.js"></script>
    <script src="//cdn.datatables.net/plug-ins/1.10.19/sorting/formatted-numbers.js"></script>
    <script src="assets/vendor_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
    <script src="assets/vendor_plugins/timepicker/bootstrap-timepicker.min.js"></script>
    
    <script src="https://jqueryvalidation.org/files/dist/jquery.validate.js"></script>
	<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
	<script>
	  $.widget.bridge('uibutton', $.ui.button);
    </script>

    <?php if ($currentPage == 'imagenes.php') { ?>
        <script src="src/js/ajax/imagenes.js"></script>
        <link rel="stylesheet" href="src/dropzone/dist/dropzone.css">
        <link rel="stylesheet" href="src/dropzone/dist/basic.css">
    <?php } ?>
    
    <!-- Formularios ajax -->
    <?php 
        if ($currentPage == 'index.php') { ?>
        <script src="src/js/ajax/inicio.js"></script>
    <?php } 

        if ($currentPage == 'estado_pagos.php') { ?>
        <script src="src/js/ajax/pagos.js"></script>
    <?php } 
    
        if ($currentPage == 'personas.php') { ?>
        <script src="src/js/ajax/personas.js"></script>
    <?php } 
    
        if ($currentPage == 'alumnos.php' OR $currentPage == 'pagosCuotas.php') { ?>
        <script src="src/js/ajax/alumno.js?v=<?php echo rand()?>"></script>
        <script src="src/js/ajax/personas.js"></script>
    <?php } 
    
        if ($currentPage == 'funcionarios.php') { ?>
        <script src="src/js/ajax/funcionarios.js"></script>
    <?php } 
    
        if ($currentPage == 'pagos.php') { ?>
        <script src="src/js/ajax/pagos.js"></script>
    <?php } ?>
    
	<!-- popper -->
	<script src="assets/vendor_components/popper/dist/popper.min.js"></script>
	
	<!-- Bootstrap 4.0-->
    <script src="assets/vendor_components/bootstrap/dist/js/bootstrap.js"></script>	
    
    <script src="src/js/tinymce.min.js"></script>
	
	<!-- Slimscroll --> 
	<script src="assets/vendor_components/jquery-slimscroll/jquery.slimscroll.js"></script>
	
	<!-- FastClick -->
	<script src="assets/vendor_components/fastclick/lib/fastclick.js"></script>

    <script type="text/javascript" src="assets/vendor_components/gallery/js/animated-masonry-gallery.js"></script>
    <script type="text/javascript" src="assets/vendor_components/gallery/js/jquery.isotope.min.js"></script>
    <script type="text/javascript" src="assets/vendor_components/lightbox-master/dist/ekko-lightbox.js"></script>
    <script type="text/javascript">
    $(document).ready(function($) {
        // delegate calls to data-toggle="lightbox"
        $(document).delegate('*[data-toggle="lightbox"]:not([data-gallery="navigateTo"])', 'click', function(event) {
            event.preventDefault();
            return $(this).ekkoLightbox({
                onShown: function() {
                    if (window.console) {
                        return console.log('Checking our the events huh?');
                    }
                },
                onNavigate: function(direction, itemIndex) {
                    if (window.console) {
                        return console.log('Navigating ' + direction + '. Current item: ' + itemIndex);
                    }
                }
            });
        });
        //Programatically call
        $('#open-image').click(function(e) {
            e.preventDefault();
            $(this).ekkoLightbox();
        });
        $('#open-youtube').click(function(e) {
            e.preventDefault();
            $(this).ekkoLightbox();
        });
        // navigateTo
        $(document).delegate('*[data-gallery="navigateTo"]', 'click', function(event) {
            event.preventDefault();
            var lb;
            return $(this).ekkoLightbox({
                onShown: function() {
                    lb = this;
                    $(lb.modal_content).on('click', '.modal-footer a', function(e) {
                        e.preventDefault();
                        lb.navigateTo(2);
                    });
                }
            });
        });
    });
    </script>
	
    <script src="assets/vendor_components/sweetalert/sweetalert.min.js"></script>
    <script src="assets/vendor_components/sweetalert/jquery.sweet-alert.custom.js"></script>
	
	<!-- InputMask -->
	<script src="assets/vendor_plugins/input-mask/jquery.inputmask.js"></script>
	<script src="assets/vendor_plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
	<script src="assets/vendor_plugins/input-mask/jquery.inputmask.extensions.js"></script>

	<!-- peity -->
    <script src="assets/vendor_components/jquery.peity/jquery.peity.js"></script>
	
	<!-- date-range-picker -->
	<script src="assets/vendor_components/moment/min/moment.min.js"></script>
    <script src="assets/vendor_components/bootstrap-daterangepicker/daterangepicker.js"></script>

    <script src="src/js/jquery.formatCurrency-1.4.0.js"></script>
    <script src="src/js/formateador.js"></script>
    
    <script src="assets/vendor_components/select2/dist/js/select2.full.js"></script>
    <script src="assets/vendor_components/select2/dist/js/advanced-form-element.js"></script>
	
    
	<!-- Morris.js charts -->
	<script src="assets/vendor_components/raphael/raphael.min.js"></script>
	<script src="assets/vendor_components/morris.js/morris.min.js"></script>
	
	<!-- Fab Admin App -->
	<script src="src/js/template.js"></script>
    <script src="assets/vendor_plugins/timepicker/bootstrap-timepicker.min.js"></script>
    <!-- Vector map JavaScript -->
    <script src="assets/vendor_components/jvectormap/lib2/jquery-jvectormap-2.0.2.min.js"></script>
    <script src="assets/vendor_components/jvectormap/lib2/jquery-jvectormap-world-mill-en.js"></script>
    <script src="assets/vendor_components/jvectormap/lib2/jquery-jvectormap-us-aea-en.js"></script>
	
</body>

</html>