<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>

<footer class="main-footer">
	<div class="pull-right hidden-xs">
		<b><?php echo lang('footer_version'); ?></b> 1.0
	</div>
	<strong><a style="color: #002784;" href="https://www.idom.com/es/" target="_blank">IDOM | CONSULTING, ENGINEERING, ARCHITECTURE </a><?php echo date('Y'); ?></strong>
</footer>
</div>

<script src="<?php echo base_url($frameworks_dir . '/jquery/jquery.min.js');						?>"></script>

<!--JQUERY UI Agregado-->
<script src="<?php echo base_url($frameworks_dir . '/jquery/jquery-ui.min.js');						?>"></script>

<script src="<?php echo base_url($frameworks_dir . '/bootstrap/js/bootstrap.min.js');				?>"></script>
<script src="<?php echo base_url($plugins_dir . '/slimscroll/slimscroll.min.js');					?>"></script>
<?php if ($mobile == TRUE): ?>
	<script src="<?php echo base_url($plugins_dir . '/fastclick/fastclick.min.js');						?>"></script>
<?php endif; ?>
<?php if ($admin_prefs['transition_page'] == TRUE): ?>
	<script src="<?php echo base_url($plugins_dir . '/animsition/animsition.min.js');					?>"></script>
<?php endif; ?>
<?php if ($this->router->fetch_class() == 'users' && ($this->router->fetch_method() == 'create' OR $this->router->fetch_method() == 'edit')): ?>
	<script src="<?php echo base_url($plugins_dir . '/pwstrength/pwstrength.min.js');					?>"></script>
<?php endif; ?>
<?php if ($this->router->fetch_class() == 'groups' && ($this->router->fetch_method() == 'create' OR $this->router->fetch_method() == 'edit')): ?>
	<script src="<?php echo base_url($plugins_dir . '/tinycolor/tinycolor.min.js');						?>"></script>
	<script src="<?php echo base_url($plugins_dir . '/colorpickersliders/colorpickersliders.min.js');	?>"></script>
<?php endif; ?>
<script src="<?php echo base_url($frameworks_dir . '/adminlte/js/adminlte.min.js');					?>"></script>
<script src="<?php echo base_url($frameworks_dir . '/domprojects/js/dp.min.js');					?>"></script>

<!--DataTable-->
<script src="<?php echo base_url('assets/AdminLTE/plugins/datatables/jquery.dataTables.js');		?>"></script>
<script src="<?php echo base_url('assets/AdminLTE/plugins/datatables/jquery.dataTables.min.js');	?>"></script>
<script src="<?php echo base_url('assets/AdminLTE/plugins/datatables/jquery.dataTables.filter.js');	?>"></script>

<script src="<?php echo base_url('assets/AdminLTE/plugins/datepicker/bootstrap-datepicker.js'); ?>"></script>
<script src="<?php echo base_url('assets/AdminLTE/plugins/daterangepicker/moment.js'); ?>"></script>
<script src="<?php echo base_url('assets/AdminLTE/plugins/daterangepicker/daterangepicker.js'); ?>"></script>
<!--InputTags-->
<!--<script src="<?php //echo base_url('assets/AdminLTE/plugins/inputTags/js/inputTags.jquery.js');	?>"></script>-->


<!-- Latest compiled and minified JavaScript -->
<script src="<?php echo base_url('assets/AdminLTE/plugins/bootstrap-select/js/bootstrap-select.min.js'); ?>"></script>

<script src="<?php echo base_url('assets/AdminLTE/bootstrap/js/alertify.js'); ?>"></script>

<!-- Estrutura de árbol -->
<link rel="stylesheet" href="<?php echo base_url();?>assets/AdminLTE/ztree/css/zTreeStyle/zTreeStyle.css" />
<script type="text/javascript" src="<?php echo base_url();?>assets/AdminLTE/ztree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/AdminLTE/ztree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/AdminLTE/ztree/js/jquery.ztree.exedit-3.5.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/AdminLTE/plugins/carousel/wb.carousel.min.js"></script>
<script type="text/javascript" src="<?php echo base_url('js/FileSaver.js?'.time()) 		?>"></script>
<script type="text/javascript" src="<?php echo base_url('js/jquery.wordexport.js?'.time()) 		?>"></script>
<script type="text/javascript" src="<?php echo base_url('js/numeral.min.js?'.time()) 		?>"></script>







<?php 
switch ($_SESSION['id_modulo']) {
	
	// Estructura para cargar JS especificos por modulos.
	// FAVOR AGREGAR, MODIFICAR Y LUEGO CERRAR.

	case 'MONITOREO_EQUIPOS_TRABAJOS': 
		?> 
		<script type="text/javascript" src="<?php echo base_url('js/monitoreo.js?'.time()) ?>"></script> 
		<?php 
	break;

	case 'MONITOREO_COORDINADOR_SUPERVISOR': 
		?> 
		<script type="text/javascript" src="<?php echo base_url('js/monitoreo.js?'.time()) ?>"></script> 
		<?php 
	break;
	case 'MONITOREO_SUPERVISOR_VERIFICADOR': 
		?> 
		<script type="text/javascript" src="<?php echo base_url('js/monitoreo2.js?'.time()) ?>"></script> 
		<?php 
	break;
	case 'MENUS': 
		?> 
		<script type="text/javascript" src="<?php echo base_url('js/arbol.js?'.time()) ?>"></script>      
		<?php 
	break;

	default:
		# code...
		break;
}
 ?>
		<script type="text/javascript">
			$(document).ready(function() {


				table = $('#tabla_listado').DataTable({ 
					"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
				});

				/*Aplicar la busqueda por campo*/	
				table.columns().every( function () {
					var that = this;
					$( 'input', this.header() ).on( 'keyup change', function () {
						if ( that.search() !== this.value ) {
							that
								.search( this.value )
								.draw();
						}
					} );
				} );	
			});
		</script>
   </body>
</html>