<?php
session_start();

  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("funcion/funciones.php");
  include("Funciones.php");

  $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">

<link href="p_accordion.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="javascript/prototype.js"></script>
	<script type="text/javascript" src="javascript/effects.js"></script>
	<script type="text/javascript" src="javascript/accordion.js"></script>
	<script type="text/javascript" src="javascript/code_highlighter.js"></script>
	<script type="text/javascript" src="javascript/javascript.js"></script>
	<script type="text/javascript" src="javascript/html.js"></script>
	<script type="text/javascript">		
		Event.observe(window, 'Onload', loadAccordions, true);	
		function loadAccordions() {			
			var bottomAccordion = new accordion('vertical_container');						
			bottomAccordion.activate($$('#vertical_container .accordion_toggle')[0]);			
		}		
	</script>
<script language="JavaScript"> 
function PrintReport(sURL,param,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=yes"
			sURL = sURL + param
			var ventana = window.open(sURL,"REPORTE",par)
			ventana.focus();
}
</script>
<script language="JavaScript">
var nav = (navigator.appName).search("Microsoft");
function aCapa(capa, accion)
{
var act='none';
if (accion=='abrir') { act = 'block'; }
if (nav==-1)
{
document.getElementById(capa).style.display = act;
} else {
eval("document.all." + capa + ".style.display = act;")
}
return;
}
</script>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<script language="javascript" type="text/javascript">
  function volver(){
     window.location="fondo.php";
                   }
</script>
<script type="text/javascript" src="ajax_reporte.js"></script>
</head>

<body background="../imagenes/fondo.jpg" onLoad="aCapa('container','cerrar')">
<table width="891" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="25"><img src="../estilo_tabla/parte_sup_izq.gif" width="25" height="25"></td>
    <td width="841" background="../estilo_tabla/parte_sup_cen.gif" valign="bottom">
      <div align="left" class="lblTitulo" >HORAS-COSTO-COMBUSTIBLE POR CENTRO DE COSTO Y TRANSPORTE DEL DIA </div></td>
    <td width="25"><img src="../estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#MapMap"></td>
  </tr>
  <tr>
    <td width="25" background="../estilo_tabla/parte_med_izq.gif">&nbsp;</td>
    <td width="841" height="86" background="../estilo_tabla/parte_med_cen.gif"><div align="center">
        <table width="835" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="15"><div align="center"></div></td>
          </tr>
          <tr>
            <form action="p_consolidadovuelos.php" method="post" name="form1">
              <td height="15">
                <div align="left" class="lblForm">
                  <table width="829" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><div align="left">Transporte</div></td>
                      <td width="172"><div align="left">Centro de Costos </div></td>
                      <td><div align="left">Del Dia</div></td>
                      <td><div align="left">Mes</div></td>
                      <td><div align="left">A&ntilde;o</div></td>
                      <td><div align="left">Precio JP-1 </div></td>
                      <td><div align="left"></div></td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="270">
                        <div align="left">
                          <select name="matricula" id="select2" onkeyup=fn(this.form,this)>
                            <option value="0" <? if($matricula=="0"){?> selected <? }?>>.:: Todos ::.</option>
                            <? 
						echo $objPer->getCboTransCC($matricula);
						?>
                          </select>
                        </div></td><td>
                            <div align="left">
                              <!--<select name="matricula" id="select2" onkeyup=fn(this.form,this)>
                            <option value="0">Ninguno</option> -->                          
                              <!-- </select> -->
                              <select name="ccosto" id="select" >
                                <option value="0" <? if($ccosto=="0"){?> selected <? }?>>.:: Todos ::.</option>
                                <?=$objPer->getCboCCostoTA($ccosto);?>
                              </select>
                            </div></td>
                          <td width="53"><div align="left">
                            <select name="days" id="days">
                              <?=getCboDias($days);?>
                            </select>
                          </div></td>
                          <td width="47"><div align="left">
                            <select name="month" id="month">
                              <?=getCboMeses($month);?>
                            </select>
                          </div></td>
                      <td width="44"><div align="left">
                        <select name="year" id="year" onkeyup=fn(this.form,this)>
                          <?=getCboAnnos($year);?>
                        </select>
                      </div></td>
                      <td width="80">
                        <div align="center">
                          <input name="costocombus" type="text" id="costocombus" size="4">
                          </div></td><td width="84"><div align="left">
                        <input type="button" name="Submit" value="Visualizar" style="<?=$stylo['st2']?>" class="botira" onClick="javascript:ReporteConsolHrsVolxCC()">
                      </div></td>
                      <td width="79"><div align="right">
                        <input type="button" name="Submit3" value="Imprimir" style="<?=$stylo['st2']?>" class="botira" onClick="PrintReport('p_consol_hv_cc_cuerpo_print.php?','&matricula='+matricula.value+'&ccosto='+ccosto.value+'&days='+days.value+'&month='+month.value+'&year='+year.value+'&costocombus='+costocombus.value,600,800)">
                      </div></td>
                    </tr>
                  </table>
              </div></td>
            </form>
          </tr>
          <tr class="lblCampo">
            <td><div align="left" id="cuerpo"><? include("p_consol_hv_cc_cuerpo.php");?></div></td>
          </tr>
		  <?
		  /* $rss=$objPer->manpercar($matricula,extraerfechamysql($fecha1),extraerfechamysql($fecha2));
		  //$aaa=$objPer->totalrows($rss);
		  while($rowss=$objPer->NextRow($rss))
          {	 */
		  	  
		  ?>
          <tr class="lblCampo">
            <td><div align="left"></div></td>
          </tr>
		  <?
		  /* }
			$objPer->Liberar($rss); */
		  ?>
          <tr>
		  
            <td><div align="center"></div></td>
			
          </tr>
        </table>
    </div></td>
    <td background="../estilo_tabla/parte_med_der.gif">&nbsp;</td>
  </tr>
  <tr>
    <td><img src="../estilo_tabla/parte_inf_izq.gif" width="25" height="25"></td>
    <td background="../estilo_tabla/parte_inf_cen.gif">&nbsp;</td>
    <td><img src="../estilo_tabla/parte_inf_der.gif" width="25" height="25"></td>
  </tr>
</table>
<map name="MapMap">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
<map name="Map">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
</body>

</html>

