  <?php 
    $objPerEpp=new clsEpp;
	$regPer = $objPerEpp->DevolverPersonaEpp($dni);
	$fila = $objPerEpp->NextRow($regPer);
 ?>

<table width="740" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="740" border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr class="lblCampo" align="right">
        <td width="740"><div align="center">
            <blockquote>&nbsp;</blockquote>
            <table width="679" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="74" height="15"><div align="right">Nombre Personal </div></td>
                <td width="14"><div align="center">:</div></td>
                <td width="656"><div align="left" class="capslock">
                    <?=$fila['nombre']?>
                </div></td>
              </tr>
              <tr>
                <td height="15"><div align="right">Empresa</div></td>
                <td><div align="center">:</div></td>
                <td align="left" class="capslock"><?=$fila['razon_emp']?></td>
              </tr>
              <tr>
                <td height="15"><div align="right">Ocupacion</div></td>
                <td><div align="center">:</div></td>
                <td align="left" class="capslock"><? echo $fila['cargo_per']; $objPerEpp->Liberar($regPer);?></td>
              </tr>
              <tr>
                <td height="15">&nbsp;</td>
                <td>&nbsp;</td>
                <td align="left" class="capslock">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3"><div align="left">
                    <table width="740" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td><table width="740" border="0" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                            <tr valign="top" bgcolor="#CCCCCC" class="lblCampo">
                              <td width="157"><div align="center"><strong>Fecha de Entrega</strong></div></td>
                              <td width="235"><div align="left"><strong>EPP</strong></div></td>
                              <td width="60"><div align="center"><strong>Cant</strong></div></td>
                              <td width="59"><div align="center"><strong>Unidad </strong></div></td>
                              <td width="229">&nbsp;</td>
                            </tr>
                            <? 											
				  $resultado=$objPerEpp->DevolverEPPxPersonaxfecha($dni,$fecha1,$fecha2);				
				   
                  while($filas=$objPer->NextRow($resultado))
                   { 
				   ?>
                            <tr valign="top" class="lblForm" >
                              <td class="lblForm">
                                <div align="center">
                                  <?  echo extraerfechanormal($filas['fecha_entrega']);  ?>
                              </div></td>
                              <td class="lblForm"><div align="left"><?php echo strtoupper($filas['tipo_epp']); ?> </div></td>
                              <td class="lblForm"><div align="center"> <? echo $filas['cantidad']; ?></div>
                              <td class="lblForm"><div align="center"><?php echo $filas['umedida'];?></div></td>
                              <td class="lblForm">&nbsp;</td>
                            </tr>
                            <? 
			}
			$objPerEpp->Liberar($resultado); 
			?>
                        </table></td>
                      </tr>
                    </table>
                </div></td>
              </tr>
              <tr align="left">
                <td colspan="3">&nbsp;</td>
              </tr>
            </table>
        </div></td>
      </tr>
      <tr valign="top" class="lblCampo" >
        <td><br></td>
      </tr>
    </table></td>
  </tr>
</table>
