<?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;
  
  
?>
<!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 rel="stylesheet" type="text/css" href="../../desing/estilos_viajes_edit.css">
<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../js/isiAJAX.js"></script>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<script type="text/javascript" src="ajax_programa.js"></script>
<script language="JavaScript"> 
function PrintPrograma(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,"Programa",par)
			ventana.focus();
}
</script>
</head>
<body bgcolor="<?=$c_fondo['fondo']?>">
<table width="950" 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="910" background="../estilo_tabla/parte_sup_cen.gif" valign="bottom"><div align="left" class="lblTitulo" >Programacion de Pasajeros <span class="lblForm"> </span></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="910" height="86" background="../estilo_tabla/parte_med_cen.gif"><div align="center">
      <form name="form1" method="post" action="">
        <table width="900" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="15"><div align="center"><span class="lblForm"> </span></div></td>
          </tr>
          <tr>
            <td height="15"><div align="center" class="lblForm">
                <table width="674" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><div align="center">Fecha Inicial </div></td>
                    <td><div align="center">Fecha Final </div></td>
                    <td><div align="center">Origen</div></td>
                    <td><div align="center">Destino</div></td>
                    <td><div align="center">Via</div></td>
                    <td><div align="center"></div></td>
                  </tr>
                  <tr>
                    <td width="119"><div align="center">
                        <table width="99" 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="121"><div align="center">
                        <table width="96" 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="161"><div align="center">
                        <select name="origen" id="origen">
                          <option value="0" <? if($origen=="0"){?> selected <? }?>>Origen</option>
                          <? 
						    echo $objPer->getCboLugaresDef($origen);
						    ?>
                        </select>
                    </div></td>
                    <td width="113"><div align="center">
                        <select name="destino" id="destino">
                          <option value="0" <? if($destino=="0"){?> selected <? }?>>Destino</option>
                          <? 
						    echo $objPer->getCboLugaresDef($destino);
						?>
                        </select>
                    </div></td>
                    <td width="105"><div align="center">
                        <select name="via" id="via">
                          <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="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 colspan="2">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
            </div></td>
          </tr>
          <tr>
            <td><div align="center" id="lista1">
                <? include('p_programa_pax_cuerpo.php')?>
            </div></td>
          </tr>
          <tr>
            <td><div align="left"></div></td>
          </tr>
          <tr>
            <td><div align="center"></div></td>
          </tr>
          <tr>
            <td><div align="center"> </div></td>
          </tr>
        </table>
        </form>
      </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>

