<?php
  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsEpp.php");
  include("../clases/clsPer.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  session_start();   
  $objPer=new clsPer;
  $objPerEpp=new clsEpp;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><MMString:LoadString id="insertbar/formsHidden" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">

<link href="Estilos.css" rel="stylesheet" type="text/css">

<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">

<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
<? $url="cvp_ubicacion_per.php?dociden_per=$dociden_per&mes1=$mes1&anio=$anio&tipo=$tipo"?>
<script>
function volver(form)
{
location.reload('<? echo $url ?>');
}
</script>
<script language="JavaScript"> 
<!--
function Abrir_Ventanapopup1(sURL,x,y) {
if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=yes"
			par = par + "menubar=no,toolbar=no,status=no"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>

</head>
<?php 
    $regPer = $objPerEpp->DevolverPersonaEpp($dni);
	$fila = $objPerEpp->NextRow($regPer);
 ?>
<body onLoad="print();">
<table width="670" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr class="lblCampo">
    <td width="670" height="25">
    <div align="left" >
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="61"><div align="center"><img src="../imagenes/logo_perenco.GIF" width="200" height="50" border="0"></div></td>
          <td width="173">&nbsp;</td>
        </tr>
      </table> 
    </div></td>
    <td width="670">&nbsp;</td>
    <td width="670" valign="bottom">
	<div align="right">
	  Fecha : <? echo date("d/m/Y");?> <br>
      Hora : <? echo date("H:i:s");?>
    </div>	</td>
  </tr>
  <tr class="lblCampo">
    <td colspan="3"><div align="center" class="lblParrafo">RECORD DE ENTREGA DE EPP </div></td>
  </tr>
  <tr class="lblCampo" >
    <td colspan="3"><div align="center">
      <table width="670" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="81" height="15"><div align="left">Nombre Personal </div></td>
          <td width="21"><div align="center">:</div></td>
          <td width="638"><div align="left" class="capslock">
            <?=$fila['nombre']?> 
            </div></td>
        </tr>
        <tr>
          <td height="15">Empresa</td>
          <td><div align="center">:</div></td>
          <td align="left" class="capslock"><?=$fila['razon_emp']?></td>
        </tr>
        <tr>
          <td height="15">Ocupacion</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="670" border="1" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="670" border="0" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                  <tr valign="top" bgcolor="#CCCCCC" class="lblCampo">
                    <td width="105"><div align="center"><strong>Fecha de Entrega</strong></div></td>
                    <td width="251"><div align="left"><strong>EPP</strong></div></td>
                    <td width="60"><div align="center"><strong>Cant</strong></div></td>
                    <td width="61"><div align="center"><strong>Unidad </strong></div></td>
                    <td width="193">&nbsp;</td>
                  </tr>
                  <? 											
					$resultado=$objPerEpp->DevolverEPPxPersona($dni);				
				   
                  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>
          <td colspan="3"><div align="left">
            </div></td>
        </tr>
        <tr>
          <td colspan="3"><strong>TOTAL EPP ENTREGADOS</strong> <strong>AL TRABAJADOR</strong> <br>
            <table width="670" border="1" align="left" cellpadding="0" cellspacing="0">
              <tr align="left">
                <td><table width="670" border="0" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                  <tr valign="top" class="lblCampo">
                    <td width="92" bgcolor="#CCCCCC">&nbsp;</td>
                    <td width="232" bgcolor="#CCCCCC"><div align="left"><strong>EPP</strong></div></td>
                    <td width="42" bgcolor="#CCCCCC"><div align="center"><strong>Cant</strong></div></td>
                    <td width="77" bgcolor="#CCCCCC"><div align="center"><strong>Unidad </strong></div></td>
                    <td width="297" bgcolor="#CCCCCC">&nbsp;</td>
                  </tr>
                  <? 											
					$resul=$objPerEpp->DevolverCantDadaEPP($dni);				
				   
                  while($filaEpp=$objPer->NextRow($resul))
                   {
				   ?>
                  <tr valign="top" class="lblForm" >
                    <td class="lblForm">&nbsp;</td>
                    <td class="lblForm"><div align="left"><?php echo strtoupper($filaEpp['tipo_epp']); ?> </div></td>
                    <td class="lblForm"><div align="center"> <? echo $filaEpp['total']; ?></div>
                    <td class="lblForm"><div align="center"><?php echo $filaEpp['umedida'];?></div></td>
                    <td class="lblForm">&nbsp;</td>
                  </tr>
                  <? 
			}
			$objPerEpp->Liberar($resul);  
			?>
                </table>
                  <div align="left"></div></td>
              </tr>
            </table></td>
        </tr>
      </table>
      </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="3">
      <div align="center"> </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="3"><p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="3"><hr size="3" noshade> </td>
  </tr>
  <tr valign="top" class="lblCampo" >

    <td colspan="3"><table width="670" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="270" class="lblCampo">Perenco Peru Limited Sucursal del Peru</td>
        <td width="191">&nbsp;</td>
        <td width="279"><div align="right" class="lblCampo">OPERACIONES LOTE 67 - BASE CURARAY </div></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>

</html>

