<?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.3.0
				</div>
				<strong><?php echo lang('footer_copyright'); ?> &copy; 2014-<?php echo date('Y'); ?> <a href="http://almsaeedstudio.com" target="_blank">Almsaeed Studio</a> &amp; <a href="http://domprojects.com" target="_blank">domProjects</a>.</strong> <?php echo lang('footer_all_rights_reserved'); ?>.
			</footer>
		</div>
		<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js'></script> 
		<script src="<?php echo base_url($frameworks_dir . '/jquery/jquery.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>

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


<!-- Latest compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.0/js/bootstrap-select.min.js"></script>
 
 <script src="<?php echo base_url('assets/AdminLTE/bootstrap/js/alertify.js'); ?>"></script>

<script type="text/javascript" src="<?php //echo base_url('js/funciones.js') ?>"></script>  

		<script type="text/javascript">


$(document).ready(function(){
    //utilizamos el evento keyup para coger la información
    //cada vez que se pulsa alguna tecla con el foco en el buscador
    $('#dpto').keyup(function(){
        //en info tenemos lo que vamos escribiendo en el buscador
        var info = $(this).val();
        //hacemos la petición al método poblaciones del controlador buscador
        //pasando la variable info
		if (info != '') {
            $.post('buscar',{ info : info }, function(data){
                //si autocompletado nos devuelve algo
                if(data != '')
                {
                    //en el div con clase contenedor mostramos la info
                    $(".muestra_geocolonias").show();
                    $(".muestra_geocolonias").html(data);
                    //alert(data);
                }else{ 
                    //alert("NO FUNCIONA");
                    $(".muestra_geocolonias").html('');
                    //$(".muestra_geocolonias").show();
                    //$(".muestra_geocolonias").html(data);
                }
            })
        } else {
            
        }
    })
});









			$(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();
						}
					} );
				} );	
			});

			$('#inputTags_d3').inputTags({
                        autocomplete: {
                            values: ['Agregar', 'Modificar', 'Borrar', 'Visualizar','Imprimir'],
                            only: true
                        },
                        max: 4,
                        create: function() {
                            console.log('Tag added !');
                        }
            });


		</script>
	</body>
</html>