<?php
  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("Funciones.php");
  include("funcion/funciones.php");
  session_start();
  $objPer=new clsPer;
 /* $resultado=$objPer->getCodPer();
  $filas=$objPer->NextRow($resultado);
  $cod_per=$filas['valor_e'].getNumCeros($filas['valor']);*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo1 {font-size: 12px}
-->
</style>
</head>

<body onLoad="window.print();">
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="151" height="83"><img src="../imagenes/logochico.jpg" width="138" height="82"></td>
    <td width="494"><p align="center"><strong>REGISTRO DE ASISTENCIA A CHARLAS HSEQ-CR </strong></p></td>
    <td width="65">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><table width="700" border="1" align="center" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
	<?php 
			$result=$objPer->DevolverCharlasxCod($cod_charla);
			$fila=$objPer->NextRow($result);
	    ?>
      <tr class="lblCampo">
        <td colspan="5" align="center" class="lblSubTitulo"><?=$fila['tipo_cap']?></td>
        </tr>
      <tr class="lblCampo">
        <td width="56"><span class="rdoBanners">Fecha:</span></td>
        <td colspan="2" class="lblReporte"><?=$fila['fecha_charla']?></td>
        <td width="90" class="rdoBanners">Responsable:</td>
        <td width="220" class="lblReporte"><?=$fila['responsable']?></td>
      </tr>
      <tr class="lblCampo">
        <td class="rdoBanners">Expositor:</td>
        <td colspan="2" class="lblReporte"><?=$fila['expositor']?></td>
        <td class="rdoBanners">Lugar:</td>
        <td class="lblReporte"><?=$fila['lugar_charla']?></td>
      </tr>
      <tr class="lblCampo">
        <td class="rdoBanners">Tema:</td>
        <td colspan="2" class="lblReporte"><?=$fila['tema_charla']?></td>
        <td class="rdoBanners">Empresa:</td>
        <td class="lblReporte"><?=$fila['razon_emp']?></td>
      </tr>
      <tr class="lblCampo">
        <td><div align="center"><strong>N&ordm;</strong></div>          <div align="center"></div></td>
        <td colspan="2"><div align="center"><strong>NOMBRE</strong></div></td>
        <td><div align="center"><strong>DNI</strong></div></td>
        <td><div align="center"></div>          <div align="center"><strong>EMPRESA</strong></div></td>
        </tr>
		<?php 
				$numero = 1;
				$resul=$objPer->DevolverCharlasxCodxDNI($cod_charla);
				while($registros=$objPer->NextRow($resul)){
		?>
      <tr class="lblCampo">
        <td align="center"><?=$numero?></td>
        <td colspan="2"><?=$registros['nombre']?></td>
        <td align="center"><?=$registros['DI']?></td>
        <td align="center"><?=$registros['razon_emp']?></td>
      </tr>
	    <?php $numero +=1;
	  	}
	  ?>
      <tr>
        <td height="36" colspan="5" align="center" class="rdoBanners">OBSERVACION:          
          <font class="lblReporte"><?=$fila['obser_charla']?></font></td>
        </tr>
	</table></td>
  </tr>
  <tr>
    <td colspan="3" class="lblCampo"><p><strong>Formato SS-05 BRP/HSEQ-CR </strong></p></td>
  </tr>
</table>
</body>
</html>
