<?php
session_start();
include("clases/covensol_cor_c_srh.php");
$objsrh = new covensol_cor_c_srh();
$objsrh->io_conexiones->decodificar_post();
$datos = $objsrh->io_conexiones->asignar_post();
$resultado = $objsrh->ConsultaPersonal($datos);
?>
<link href="../../shared/css/catalogos.css" rel="stylesheet" type="text/css">
<?php 
$ancho[1] = 100;
$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">CODIGO</div></td>
     <td width="<?php echo $ancho[2]; ?>"><div align="center">NOMBRE</div></td>       
  </tr>
  <?php foreach($resultado['rs'] as $fila) { ?>
          <?php
		  	$seguridad = true;	
			if($seguridad){	
			
			$aceptar="aceptar('".$fila['codper']."')";
		   
		   ?>    
                  <tr id="consulta">
                    <td width="<?php echo $ancho[1]; ?>"><div align="left"><a href="#" onClick="<?php echo $aceptar; ?>"><?php echo $fila['codper'];?></a></div></td>
                    <td width="<?php echo $ancho[2]; ?>"><div align="left"><a href="#" onClick="<?php echo $aceptar; ?>"><?php echo $fila['nomper'].' '.$fila['apeper'];?></a></div></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#BBBBBB" colspan="3">
                    			<input name="hnomper<?php echo $fila['codper'];?>" type="hidden" id="hnomper<?php echo $fila['codper'];?>"  value="<?php echo $fila['nomper']; ?>"/>
                                <input name="hapeper<?php echo $fila['codper'];?>" type="hidden" id="hapeper<?php echo $fila['codper'];?>"  value="<?php echo $fila['apeper']; ?>"/>
                                
                      	</td>
                  </tr>
          <?php } ?>
  <?php }  ?>
</table>
    