<?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;*/

  $resultadog=$objPer->getCia1($cod_emp);										  
  $filag=$objPer->NextRow2($resultadog);

?>
<!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">
<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>
<script language="JavaScript"> 
<!--
function print_12(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,"Ver1",par)
			ventana.focus();
}
//--> 
</script>

</head>

<body onLoad="print();">
<table width="740" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td width="242"><div align="left">
      </div></td>
    <td width="218">&nbsp;</td>
    <td width="280"><div align="right"><img src="../imagenes/logo_perenco.GIF" width="250" height="90" border="0"></div></td>
  </tr>
  <tr valign="top" class="lblTituloReporte">
    <td>&nbsp;</td>
    <td><div align="center">RECORRIDO DEL TRANSPORTE </div></td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top" class="lblTituloReporte">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><div align="center">
      <table width="640" border="0" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" >
        <tr valign="top" class="lblCampo" >
          <td width="119"><div align="left">Razon Social </div></td>
          <td width="10"><div align="left"></div></td>
          <td width="316"><div align="left"><? echo $filag['razon_emp']?></div></td>
          <td width="119">
            <div align="center"></div></td>
          <td width="76"><div align="center"> </div></td>
        </tr>
        <tr valign="top" class="lblCampo" >
          <td><div align="left">R.U.C.</div></td>
          <td><div align="left"></div></td>
          <td><div align="left"><? echo $filag['ruc_emp']?></div></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr valign="top" class="lblCampo" >
          <td><div align="left">Direccion</div></td>
          <td><div align="left"></div></td>
          <td><div align="left"><? echo $filag['dir_emp']?></div></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr valign="top" class="lblCampo" >
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        
        <tr valign="top" class="lblForm" >
          <td colspan="5" class="lblForm">
            <div align="left">
              <table width="536" border="1" cellpadding="0" cellspacing="0" bordercolor="<?=$bordetabla1?>" style="<?=$stylo['tabla']?>">
                
				<?
				    $regxpag=25;
					if(!isset($pagina)){
					$pagina=0;
					}					
					$regini=$regini;
				$rs=$objPer->getTempPag($regini,$regxpag);	
                while($fila=$objPer->NextRow($rs)){
				?>
                <tr <? if($fila['campo2']=='Fecha'){?> bgcolor="#666666" class="lblCampoBlanco" <? }?>>
                  <td width="134"><div align="left"><? echo $fila['campo1']?></div></td>
                  <td width="134"><div align="left"><? echo $fila['campo2']?></div></td>
                  <td width="129"><div align="left"><? echo $fila['campo3']?></div></td>
                  <td width="129"><div align="left"><? echo $fila['campo4']?></div></td>
                </tr>
				<? 
			}
			$objPer->Liberar($rs); 			 
			?>
              </table>
          </div></td>
        </tr>
        
        <tr valign="top" class="lblForm" >
          <td colspan="5" class="lblForm">&nbsp;</td>
        </tr>
        <tr valign="top" class="lblForm" >
          <td colspan="5" class="lblForm"><div align="center"> </div></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
</table>
</body>

</html>

