<?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->ConsultaEspecialidadMedica($datos);
?>
<link href="../../shared/css/catalogos.css" rel="stylesheet" type="text/css">
<?php 
$ancho[1] = 60;
$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">DENOMINACIÓN</div></td>   
     
  </tr>
  <?php foreach($resultado['rs'] as $fila) { ?>
          <?php
		  	$seguridad = true;	
			if($seguridad){	
			
			$aceptar="aceptar('".$fila['codesp']."')";
		   
		   ?>    
                  <tr id="consulta">
                    <td width="<?php echo $ancho[1]; ?>"><div align="left"><a href="#" onClick="<?php echo $aceptar; ?>"><?php echo $fila['codesp'];?></a></div></td>
                    <td width="<?php echo $ancho[2]; ?>"><div align="left"><a href="#" onClick="<?php echo $aceptar; ?>"><?php echo $fila['denesp'];?></a></div></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#BBBBBB" colspan="3">
                    			<input name="hdenesp<?php echo $fila['codesp'];?>" type="hidden" id="hdenesp<?php echo $fila['codesp'];?>"  value="<?php echo $fila['denesp']; ?>"/>
                      	</td>
                  </tr>
          <?php } ?>
  <?php }  ?>
</table>
    