<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.:: Reporte ::.</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. -->
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script language="javascript">
$(document).ready(function() {
	$(".botonExcel").click(function(event) {
		$("#datos_a_enviar").val( $("<div>").append( $("#Exportar_a_Excel").eq(0).clone()).html());
		$("#FormularioExportacion").submit();
});
});
</script>
<style type="text/css">
.botonExcel{cursor:pointer;}
</style>
</head>
<body onLoad="print()">
<table width="740" border="0" id="Exportar_a_Excel">
  <tr valign="top" class="lblForm">
    <td width="229"><div align="left"></div></td>
    <td width="258" class="lblTituloReporte"><div align="center"><br>
      <br>

      <br>
      BITACORA FLUVIAL <br>
    </div></td>
    <td width="253"><div align="right"><br>
        <br>
        <br>
        <br>
        <br>
        <br>
    </div></td>
  </tr>
  <tr valign="top" class="lblTituloReporte">
    <td>&nbsp;</td>
    <td><div align="center"></div></td>
    <td><div align="left"></div></td>
  </tr>
  <tr valign="top" class="lblForm">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"><strong>Reporte del <? echo $fecha1?> al <? echo $fecha2?> </strong></div></td>
  </tr>
  <tr class="lblCampo">
    <td colspan="3"><div align="left">
      <table width="739" border="1" cellpadding="0" cellspacing="0" bordercolor="<?=$bordetabla1?>" style="<?=$stylo['tabla']?>" >
        
        <tr bgcolor="#999999" class="lblForm">
          <td height="25"><div align="left"><strong>TRANSPORTE</strong></div></td>
          <td><div align="center"><strong>ORIGEN</strong></div></td>
          <td><div align="center"><strong>DESTINO</strong></div></td>
          <td><div align="center"><strong>FECHA SALIDA </strong></div></td>
          <td><div align="center"><strong>COMBUSTIBLE</strong></div></td>
          <td><div align="center"><strong>UBICACION</strong></div></td>
        </tr>
		<?
				    $regxpag=35;
					if(!isset($pagina)){
					$pagina=0;
					}					
					$regini=$regini;
				$rs=$objPer->getTempPag($regini,$regxpag);	
                while($fila=$objPer->NextRow($rs)){
				?>
        <tr   class="lblForm" >
          <td width="133" height="25"><div align="left"><? echo $fila['campo1']?></div></td>
          <td width="75"><div align="center"><? echo $fila['campo2']?></div></td>
          <td width="84"><div align="center"><? echo $fila['campo3']?></div></td>
          <td width="84"><div align="center"><? echo $fila['campo4']?></div></td>
          <td width="93"><div align="center">
		  <? 
		  if(doubleval($fila['campo6'])!=0){echo doubleval($fila['campo6'])." Glns";}else{echo "&nbsp;";}
		  ?>
		  </div></td>
          <td width="256"><div align="center"><? echo $fila['campo5']?></div></td>
        </tr>
        <? 
			}
			$objPer->Liberar($rs); 			 
			?>
      </table>
    </div></td>
  </tr>
  <tr class="lblForm">
    <td colspan="3"><div align="right">Pag <? echo $pagi+1?> de <? echo $totalp?></div></td>
  </tr>
</table>
<form action="ficheroExcel.php" method="post" target="_blank" id="FormularioExportacion" name="FormularioExportacion">
<p>Exportar a Excel  <img src="imagen/export_to_excel.gif" class="botonExcel" /></p>
<input type="hidden" id="datos_a_enviar" name="datos_a_enviar" />
</form>
</body>

</html>

