<?php
	include("stilos/config.inc.php");
	include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("Funciones.php");
  include("funcion/funciones.php");
  session_start();
  $objPer=new clsPer;
  $resultado=$objPer->getListaHVHeli($numcontrol);
  $fila=$objPer->NextRow($resultado);
?>

<!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>
<? 
$envia="fondo.php?k=$k&razonsocial=$razonsocial&distrito=$distrito";
$envia1="cvp_personal.php";
?>

		   
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
</head>

<body onLoad="print();">
<table width="876" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  valign="bottom">&nbsp;</td>
  </tr>
  <tr>
    <td  valign="bottom"><div align="left">
      <table width="728" border="0" cellpadding="0" cellspacing="0">
        <tr class="lblCampo" valign="top">
          <td width="231" valign="top"><table width="226" border="0" cellspacing="0" cellpadding="0">
            <tr class="lblCampo">
              <td width="42"><img src="../imagenes/Brp%20logon.JPG" width="35" height="35" border="0"></td>
              <td width="184">BARRETT RESOURCES (PERU) LLC<br>
                SUCURSAL DEL PERU </td>
            </tr>
          </table></td>
          <td width="287" valign="bottom"><div align="center" class="lblParrafo"></div></td>
          <td width="210"><div align="left"></div></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td height="20"  valign="bottom"><div align="left"></div></td>
  </tr>
  <tr>
    <td  valign="bottom"><div align="left">
      <table width="724" border="0" cellspacing="0" cellpadding="0">
        <tr class="lblCampo">
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td width="81">&nbsp;</td>
          <td>&nbsp;</td>
          <td><div align="right"><span class="lblParrafo">N&ordm;<? echo $numcontrol?></span> </div></td>
        </tr>
        <tr class="lblCampo">
          <td width="71"><div align="left">Lugar</div></td>
          <td width="10"><div align="left"></div></td>
          <td width="245"><div align="left"><? echo $fila['lugar']?></div></td>
          <td width="10"><div align="left" class="lblParrafo"></div></td>
          <td><div align="right">Fecha</div></td>
          <td width="10"><div align="left"></div></td>
          <td width="300"><div align="left"><? echo extraerfechanormal($fila['fecha']);?></div></td>
        </tr>
        <tr class="lblCampo">
          <td><div align="left">Piloto</div></td>
          <td>&nbsp;</td>
          <td><div align="left"><? echo $fila['piloto']?></div></td>
          <td><div align="left">:</div></td>
          <td><div align="right">Copiloto</div></td>
          <td><div align="left">:</div></td>
          <td><div align="left"><? echo $fila['copiloto']?></div></td>
        </tr>
        <tr class="lblCampo">
          <td><div align="left">Cia.</div></td>
          <td>&nbsp;</td>
          <td><div align="left"><? echo $fila['razon_emp']?></div></td>
          <td>&nbsp;</td>
          <td><div align="right">Mision</div></td>
          <td>&nbsp;</td>
          <td><div align="left"><? echo $fila['mision']?></div></td>
        </tr>
        
      </table>
    </div></td>
  </tr>
  <tr>
    <td width="730"  valign="bottom">
      <div align="left" class="lblTitulo" ></div></td>
  </tr>
  <tr>
    <td>
      <div align="left">      
        <table width="875" border="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
          <tr class="lblCampo" valign="top">
            <td width="80"><div align="center">Hora de Arranuqe Motores (1)</div></td>
            <td width="35"><div align="center">En el aire </div></td>
            <td width="44"><div align="center">En tierra </div></td>
            <td width="64"><div align="center">Hora de Apagado Motores (1)</div></td>
            <td width="36"><div align="center">H. arran. aire </div></td>
            <td width="35"><div align="center">H. tierra apag.</div></td>
            <td width="37"><div align="center">H. vuelos (2) </div></td>
            <td width="28"><div align="center">C. Pax </div></td>
            <td width="32"><div align="center">C. Carga </div></td>
            <td colspan="2"><div align="center">Itinerario</div></td>
            <td><div align="center">Observ</div></td>
          </tr>
		  <?
		  $resultadot=$objPer->getDetHVHeli($numcontrol);	
          while($filas=$objPer->NextRow($resultadot)){
		  $n1++;
		  ?>
          <tr class="lblCampo">
            <td><div align="center"><? echo $filas['harranq_dch'];?></div></td>
            <td><div align="center"><? echo $filas['haire_dch'];?></div></td>
            <td><div align="center"><? echo $filas['htierra_dch'];?></div></td>
            <td><div align="center"><? echo $filas['hapaga_dch'];?></div></td>
            <td><div align="center"><? echo $filas['tothaire'];?></div></td>
            <td><div align="center"><? echo $filas['tothapaga'];?></div></td>
            <td><div align="center">
			<? 
			//echo $filas['hv_dch'];
			echo $thp=calcular_tiempo_trasnc($filas['hapaga_dch'],$filas['harranq_dch']);
			//$th=$th+$filas['hv_dch'];
			$th=$th+$thp;
			?>
			</div></td>
            <td><div align="center">
			<? 
			echo $filas['cpass_dch'];
			$tp=$tp+$filas['cpass_dch'];
			?>
			</div></td>
            <td><div align="center">
			<? 
			echo $filas['ccarga_dch'];
			$tw=$tw+$filas['ccarga_dch'];
			?>
			</div></td>
            <td width="83"><div align="left"><? echo $filas['origen'];?></div></td>
            <td width="83"><div align="left"><? echo $filas['destino'];?></div></td>
            <td width="292"><div align="left"><? echo $fila['obser'];?></div></td>
          </tr>
          
		  <? 
		}
		$objPer->Liberar($resultadot);  
		?>
		<tr class="lblCampo">
            <td><div align="right"></div></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><div align="center"><? echo $th?></div></td>
            <td><div align="center"><? echo $tp?></div></td>
            <td><div align="center"><? echo $tw?></div></td>
            <td colspan="3">&nbsp;</td>
          </tr>
        </table>
    </div></td>
  </tr>
  <tr class="lblCampo">
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left">
      <table width="770" border="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
        <tr class="lblCampo">
          <td>COMMENTS : </td>
        </tr>
        <tr class="lblCampo">
          <td><div align="left"></div></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<map name="MapMap">
  <area shape="rect" coords="3,4,23,21" href="fondo.php">
</map>
</body>
</html>

