<?php
session_start();

require_once("clases/covensol_snoh_c_historico.php");
$objsnoh = new covensol_snoh;
//$objsnoh->io_conexiones->codificacion_navegador();
$objsnoh->io_conexiones->decodificar_post();
$datos = $objsnoh->io_conexiones->asignar_post();
$objsnoh->conecajax=1;

$resp = $objsnoh->consulta_personal_historico($datos);
if($resp===false){exit();}
if(!$resp->RecordCount()){
		$objsnoh->io_mensajes->message('No se encontraron personas !');
		exit();
}

?>
<link href="../shared/css/catalogos.css" rel="stylesheet" type="text/css">
<?php 
$ancho[1] = 80;
$ancho[2] = 350;

$ancho_total = array_sum($ancho);

?>

<table width="<?php echo $ancho_total; ?>" border="0" cellpadding="0" cellspacing="0"  class='fondo-tabla'>
  <tr class="titulo-celda">
    <td width="<?php echo $ancho[1]; ?>"><div align="center">Código</div></td>    
     <td width="<?php echo $ancho[2]; ?>"><div align="center">Nombre</div></td>             
  </tr>
  <?php foreach($resp as $fila){ ?>
           <?php 
		   	
			
		   
		   ?>    
                  <tr id="consulta">
                    <td width="<?php echo $ancho[1]; ?>"><div align="left"><a href="#" onClick="aceptar('<?php echo $fila['codper'];?>')"><?php echo $fila['codper'];?></a></div></td>
                  	<td width="<?php echo $ancho[2]; ?>"><div align="left"><a href="#" onClick="aceptar('<?php echo $fila['codper'];?>')"><?php echo $fila['nombre'];?></a></div></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#BBBBBB" colspan="3">                       
                       <input name="hnombre<?php echo $fila['codper'];?>" type="hidden" id="hnombre<?php echo $fila['codper'];?>"  value="<?php echo $fila['nombre']; ?>"/>                                
                  	</td>
                  </tr>
          
  <?php }  ?>
</table>
    