<?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 print_1(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="740" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr valign="top" >
    <td height="25" colspan="4">
    <div align="left" ></div></td>
  </tr>
  <tr class="lblCampo" >
    <td colspan="4"><div align="center">
        <table width="679" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="15" colspan="5"><div align="center"><span class="lblForm"> </span>
                    <div align="left" class="lblForm"> </div>
                    <span class="lblForm"></span> <span class="lblForm"> </span><span class="lblForm"> </span></div></td>
          </tr>
          <tr>
            <form action="cvp_recorrido_trans.php" method="post" name="form1" >
              <td height="15" colspan="5">
                <div align="left"> </div></td>
            </form>
          </tr>
          <tr>
            <td colspan="5"><div align="center">
                <table width="640" border="1" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                  <tr valign="top" class="lblCampo" >
                    <td width="117"><div align="center">Matricula</div></td>
                    <td width="263"><div align="left">Transporte</div></td>
                    <td width="119"><div align="left">Fecha</div></td>
                    <td width="131">
                      <div align="center">N&ordm; de manifiesto </div>                      <div align="center"> </div></td>
                  </tr>
                  <? 
					  
				   
						
						$resultado=$objPer->getRecorridoTransFP($mat_trans,extraerfechamysql($fecha1),extraerfechamysql($fecha2));
					    /*$resultadot=$objPer->getRecorridoTransFT($mat_trans,extraerfechamysql($fecha1),extraerfechamysql($fecha2));
					$total_registros=$objPer->totalrows($resultadot);
				    $total_paginas = ceil($total_registros / $registros); */		  			

				  //if($total_registros) {
                  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="left"><?php echo strtoupper($filas['model_trans']); ?> </div></td>
                    <td class="lblForm"><div align="left"><?php echo $filas['fecha_man']; ?></div></td>
                    <td class="lblForm">
                      <div align="center"><?php echo $filas['cod_man']; ?> </div>
                      <div align="center"> </div></td>
                  </tr>
                  <? 
			}
			$objPer->Liberar($resultado); 
			//}
			 
			?>
                </table>
            </div></td>
          </tr>
          <tr>
            <td colspan="5"><div align="left"><span class="lblForm"></span></div></td>
          </tr>

          
          <tr>
            
              <td colspan="5">
                <div align="center">                  </div></td>
            
          </tr>
        </table>
    </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="4">
      <div align="center"> </div></td>
  </tr>
</table>
</body>

</html>

