<?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;
  $d=5;
  
?>
<!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>
<script type="text/javascript" src="js/ajaxtrans.js"></script>
<script type="text/javascript" src="ajax_listaviaje.js"></script>
<script language="JavaScript"> 
function PrintManifiesto(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=yes"
			var ventana = window.open(sURL,"Manifieto",par)
			ventana.focus();
}
</script>
<script language="JavaScript"> 
function PrintPlanViaje(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=yes"
			var ventana = window.open(sURL,"PlanViaje",par)
			ventana.focus();
}
</script>
<script language="JavaScript"> 
function print_plan(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,"plan",par)
			ventana.focus();
} 
</script>
</head>
<body bgcolor="<?=$c_fondo['fondo']?>">
<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="730" 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="680" background="../estilo_tabla/parte_sup_cen.gif" valign="bottom">
			<div align="left" class="lblTitulo" >Buscar Viajes <span class="lblForm">			  
			</span></div>			</td>
            <td width="25"><img src="../estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#Map"></td>
          </tr>
          <tr>
            <td width="25" background="../estilo_tabla/parte_med_izq.gif">&nbsp;</td>
            <td width="680" height="86" background="../estilo_tabla/parte_med_cen.gif"><div align="center">
              
                <table width="679" border="0" cellspacing="0" cellpadding="0">
				
                  <tr>
                    <td height="15"><div align="center"><span class="lblForm"> </span></div></td>
                  </tr>
                  <tr>
				  <form name="form1" method="post" action="">
                    <td height="15">
                      <div align="left" class="lblForm">
                        
                          <table width="674" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td><div align="center">Via</div></td>
                              <td><div align="center">Transporte</div></td>
                              <td><div align="center">Fecha Inicial </div></td>
                              <td><div align="center">Fecha Final</div></td>
                              <td><div align="center"><?//$via?></div></td>
                            </tr>
                            <tr>
                              <td width="78"><div align="center">
                                  <select name="via" id="via" onChange="enviar1(this.options[this.options.selectedIndex].value)">
                                    <option value="0">Elija</option>
                                    <option value="A" <? if($via=='A'){?> selected <? }?>>Aerea</option>
                                    <option value="F" <? if($via=='F'){?> selected <? }?>>Fluvial</option>
                                  </select>
                              </div></td>
                              <td width="273"><div id="transporte">
                                  <? include('p_listatrans_via.php')?>
                              </div></td>
                              <td width="134"><div align="center">
                                  <table width="134" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="67"><div align="left">
                                          <input name="fecha_ini" type="text" id="fecha_ini" value="<?=$fecha_ini?>" size="12" maxlength="10" title="FORMATO dd/mm/AA">
                                      </div></td>
                                      <td width="10">&nbsp;</td>
                                      <td width="109"><div align="left"> <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha_ini');"> <img src="../imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"> </a> </div></td>
                                    </tr>
                                  </table>
                              </div></td>
                              <td width="134"><div align="center">
                                  <table width="134" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="67"><div align="left">
                                          <input name="fecha_fin" type="text" value="<?=$fecha_fin?>" size="12" maxlength="10" title="FORMATO dd/mm/AA">
                                      </div></td>
                                      <td width="10">&nbsp;</td>
                                      <td width="109"><div align="left"> <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha_fin');"> <img src="../imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"> </a> </div></td>
                                    </tr>
                                  </table>
                              </div></td>
                              <td width="55"><div align="right">
                                  <input type="button" name="Submit" value="Buscar" style="<?=$stylo['st2']?>" class="botira" onClick="BucarDatosViaje()">
                              </div></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                          </table>
                                                
                      </div></td>
					  </form>
                  </tr>
                  <tr>
                    <td><div align="center" id="lista1">
                        <? include('p_listaviaje_cuerpo.php')?>
                    </div></td>
                  </tr>
                  <tr>
                    <td><div align="left" id="mensaje"></div></td>
                  </tr>
                  <tr>
                    <td><div align="center"> </div></td>
                  </tr>
                  
				  
				  <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>
    </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="4">
      <div align="center"> </div></td>
  </tr>
</table>

<map name="Map">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
</body>

</html>

