<?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">
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
<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="794" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr class="lblCampo">
    <td width="248">
      <div align="left">
        <table width="245" border="0" cellspacing="0" cellpadding="0">
          <tr class="lblCampo">
            <td width="52"><div align="left"><img src="../imagenes/logobarrett.gif" width="50" height="50" border="0"></div></td>
            <td width="193">BARRETT RESOURCES (PERU) LLC<br>
              SUCURSAL DEL PERU </td>
          </tr>
        </table>
      </div></td>
    <td width="219"><div align="center"></div></td>
    <td width="327" valign="bottom"><div align="right">Fecha : <? echo date("d/m/Y");?> <br>
Hora : <? echo date("H:i:s");?></div></td>
  </tr>
  <tr valign="top" class="lblCampo">
    <td colspan="3"><div align="center">SEGUIMIENTO DE LA UBICACION DEL EMBARQUE </div></td>
  </tr>
  <tr valign="top" >
    <td colspan="3"><div align="center">
      <table width="688" border="0" cellspacing="0" cellpadding="0">
        <tr class="lblCampo">
          <td width="62"><div align="right">N&ordm; de GUIA </div></td>
          <td width="6"><div align="left">:</div></td>
          <td width="620"><div align="left"><? echo $guia?></div></td>
        </tr>
        <tr>
          <td colspan="3">
            <div align="left"></div>            <table width="676" border="1" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                <tr valign="top" class="lblCampo">
                  <td width="52"><div align="center">Matricula</div></td>
                  <td width="75"><div align="center">Tipo Nave </div></td>
                  <td width="128"><div align="center">Embarque</div></td>
                  <td width="67"><div align="center">Hora salida </div></td>
                  <td width="88"><div align="center">Fecha Salida </div></td>
                  <td width="85"><div align="center">Fecha LLegada </div></td>
                  <td width="82"><div align="center">From</div></td>
                  <td width="81">
                    <div align="center">Destino</div>
                  <div align="center"> </div></td>
                </tr>
                <? 				    
									
						
						$resultado=$objPer->getUbicacionCarga($guia,$mes1,$anio);
					
                  while($filas=$objPer->NextRow($resultado))
                   {
				   ?>
                <tr valign="top" class="lblForm" >
                  <td class="lblForm">
                    <div align="center"> <? echo $filas['mat_trans']; ?> </div></td>
                  <td class="lblForm">
                    <div align="center"><? echo $filas['tipo_trans']; ?></div></td>
                  <td class="lblForm"><div align="left"><? echo $filas['des_w']; ?></div></td>
                  <td class="lblForm"><div align="center"><? echo $filas['horasal_ruta']; ?></div></td>
                  <td class="lblForm"><div align="center"><? echo extraerfechanormal($filas['fecha_ruta']); ?></div></td>
                  <td class="lblForm"><div align="center"><? echo extraerfechanormal($filas['testimado_ruta']); ?></div></td>
                  <td class="lblForm"><div align="center"><? echo $filas['origen']; ?></div></td>
                  <td class="lblForm">
                    <div align="center"><?php echo $filas['destino']; ?> </div>
                  <div align="center"> </div></td>
                </tr>
                <? 
			}
			$objPer->Liberar($resultado); 
			
			?>
                        </table></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr valign="top" >
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
  
</table>
</body>

</html>

