<!-- PANEL ADMINISTRATIVO -->		
<script type="text/javascript" src="js/cat_producto_1.js"></script>	
<script type="text/javascript" src="js/cat_producto_2.js"></script>	
<script src="js/jquery.min_productos.js"></script>  
<script src="js/bootstrap.min_productos.js.js"></script>  			
<div class="contentpanel">
<div class="row row-stat">
	<div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="panel-btns">
                    <a href="#" class="panel-minimize tooltips" data-toggle="tooltip" title="Minimize Panel"><i class="fa fa-minus"></i></a>
                    <a href="#" class="panel-close tooltips" data-toggle="tooltip" title="Close Panel"><i class="fa fa-times"></i></a>
                </div>
                <h4 class="panel-title"><?php echo $ver_cpanel_sub_menu['titulo']; ?></h4>
                <p><?php echo $ver_cpanel_sub_menu['descripcion']; ?>.</p>
            </div>
            <div class="panel-body nopadding">

				<div class="col-md-12">
				

                    <div class="table-responsive"><br>
						<!--BOTONES DE EXPORTACION-->

						<div class="pull-left">
							<div class="btn-group">
                                <button class="btn btn-default btn-sm " type="button"><i class="fa fa-print mr5"></i> Imprimir</button>
								<a href='' TARGET="_BLANK"  class="btn btn-default btn-sm " type="submit" id="export_data" name='export_data'><i class="fa fa-file-excel-o mr5"></i> Descargar XLS</a>
							</div>
						</div>
						<!--BOTONES DE EXPORTACION-->	
						
						<!--BOTONES DE AGREGAR-->						

						<br>
						<br>
						<br>
						<div class="input-group mb15 has-warning">
                            <span class="input-group-addon"><b>BUSCAR</b></span>
                            <input type="text" autofocus="autofocus" placeholder="Buscar empleados" id="search" class="form-control" />
                        </div>					

							<table id="employee_table" class="table table-striped table-bordered responsive">
                                <thead class="">
                                    <tr>
                                        <th>Nomina</th>
                                        <th>Fecha de nomina</th>
                                        <th>Fecha de pago</th>
                                        <th>Tipo de nomina</th>
                                        <th>Opcion</th>
                                    </tr>
                                </thead>
								
                                <tbody>
								<?php
									$consultar_sql_ver=mysql_query("select * from  tabla_rrhh_nomina where eliminar='0' and estatus='2' ORDER BY id DESC ",$link);
									while($ver_consultar_sql_ver=mysql_fetch_array($consultar_sql_ver)){																
								?>
                                    <tr>
										<td><?php echo $ver_consultar_sql_ver['nombre_nomina']; ?> </td>										
										<td><?php echo $ver_consultar_sql_ver['fecha']; ?> </td>										
										<td><?php echo $ver_consultar_sql_ver['fecha_calculo']; ?> </td>										
										<td>
											<?php if($ver_consultar_sql_ver['tipo_nomina']=='4') { echo 'SEMANAL';} ?> 
											<?php if($ver_consultar_sql_ver['tipo_nomina']=='2') { echo 'QUINCENAL';} ?> 
											<?php if($ver_consultar_sql_ver['tipo_nomina']=='1') { echo 'MENSUAL';} ?> 
										</td>										
	
										<td>
											<a href='pdf/reporte_amanacu/detalle_nomina.php?cod_nomina=<?php echo $ver_consultar_sql_ver['id']; ?>' target="_blank"  class="btn btn-primary btn-sm"> VER DETALLE<i class="fa fa-floppy-o ml5"></i></a></td>
										</td>										
                                      
                                    </tr> 
									<?php } ?>
                                </tbody>
                            </table>
							<script>  
								  $(document).ready(function(){  
									   $('#search').keyup(function(){  
											search_table($(this).val());  
									   });  
									   function search_table(value){  
											$('#employee_table tr').each(function(){  
												 var found = 'false';  
												 $(this).each(function(){  
													  if($(this).text().toLowerCase().indexOf(value.toLowerCase()) >= 0)  
													  {  
														   found = 'true';  
													  }  
												 });  
												 if(found == 'true')  
												 {  
													  $(this).show();  
												 }  
												 else  
												 {  
													  $(this).hide();  
												 }  
											});  
									   }  
								  });  
							 </script>
					</div>
                </div>								
            </div>     
            </div>
        </div>
	</div>
</div>
<!--MODAL -->
    