<?php
  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  session_start();
  $objPer=new clsPer;
  
?>
<!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>

<body onLoad="print();">
<table width="622" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr class="lblCampo">
    <td width="242" height="25">
    <div align="left" >
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="61"><div align="center"><img src="../imagenes/logobarrett.gif" width="50" height="50" border="0"></div></td>
          <td width="173">BARRETT RESOURCES (PERU) LLC<br>
            SUCURSAL PERU </td>
        </tr>
      </table> 
      </div></td>
    <td width="249">&nbsp;</td>
    <td width="249" 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">CANTIDAD DE PERSONAL X RUTAS </div></td>
  </tr>
  <tr class="lblCampo" >
    <td colspan="3"><div align="center">
      <table width="618" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="85" height="15"><div align="left"></div></td>
          <td width="8"><div align="left"></div></td>
          <td width="586"><div align="left"></div></td>
        </tr>        
        <tr>
          <td colspan="3"><div align="left">
              <table width="613" border="1" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                <tr valign="top" class="lblCampo">
                  <td width="65"><div align="center">Cantidad</div></td>
                  <td width="118"><div align="center">Fecha Llegada </div></td>
                  <td width="162">
                    <div align="center">Origen</div></td>
                  <td width="130"><div align="center">Destino</div>
                      <div align="center"> </div></td>
                </tr>
                <? 											
					$resultado=$objPer->getTotPerxRutaPrint(extraerfechamysql($fecha1),extraerfechamysql($fecha2));				
				   
                  while($filas=$objPer->NextRow($resultado))
                   {
				   ?>
                <tr valign="top" class="lblForm" >
                  <td class="lblForm">
                    <div align="center">
                      <?php
						echo $filas['cantidad'];									
						?>
                    </div></td>
                  <td class="lblForm"><div align="center"><?php echo extraerfechanormal($filas['fecha_mpass']); ?></div></td>
                  <td class="lblForm">
                    <div align="center"><?php echo strtoupper($filas['origen']); ?> </div></td>
                  <td class="lblForm"><div align="center"></div>
                      <div align="center"><?php echo strtoupper($filas['destino']); ?> </div></td>
                </tr>
                
                <? 
			}
			$objPer->Liberar($resultado);  
			?>
              </table>
          </div></td>
        </tr>
        <tr>
          <td colspan="3"><div align="left"></div></td>
        </tr>
      </table>
      </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="3">
      <div align="center"> </div></td>
  </tr>
</table>
</body>

</html>

