<?php
	include("stilos/config.inc.php");
	include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  
  include("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 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. -->
<? $url="cvp_control_bote.php?anio=$anio&m=$m&mat_trans=$mat_trans"?>
<script>
function volver(form)
{
location.reload('<? echo $url ?>');
}
</script>
<script language="JavaScript"> 
<!--
function Abrir_Ventanapopup1(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>
function enviar_url(form,url)
{

		if(form1.mat_trans.value=="0"){
		alert("Debe Seleccionar un Transporte");
		form1.mat_trans.focus();
		return;		
	    }
		if(form1.ruta.value==""){
		alert("Debe Ingresar la Ruta");
		form1.ruta.focus();
		return;		
	    }
		if(form1.fecha.value==""){
		alert("Debe Ingresar la Fecha");
		form1.fecha.focus();
		return;		
	    }
		if(form1.obser.value==""){
		alert("Debe Ingresar la Observacion");
		form1.obser.focus();
		return;		
	    }		
		if(form1.button.value)
		{
		form1.submit();
		}
}
</script>
</head>

<body background="../imagenes/fondo.jpg">
<form name="form1" method="post" action="procesos/cvp_reg_sal_bote.php">
  <table width="700" 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" >Registro de Viaje</div></td>
      <td width="25"><img src="../estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#MapMapMap"></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="640" border="0" cellspacing="0" cellpadding="0">
            <tr class="lblCampo">
              <td width="80" height="15"><div align="left">Bote</div></td>
              <td width="327"><div align="left"> <span class="lblForm">
                  <select name="mat_trans" id="select" onkeyup=fn(this.form,this)>
                    <option value="0" <? if($mat_trans=="0"){?> selected <? }?>>Todas</option>
                    <? 
						echo $objPer->getCboTransU($mat_trans);
						?>
                  </select>
              </span> </div></td>
              <td width="47"><div align="left">Ruta</div></td>
              <td width="186"><div align="left">
                  <input name="ruta" type="text" id="ruta" size="20">
              </div></td>
            </tr>
            <tr class="lblCampo">
              <td height="15" colspan="4">
                <div align="left" class="lblForm">
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="81"><div align="left">Fecha</div></td>
                      <td width="110"><div align="left">
                        <table width="87" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="67"><div align="left">
                                <input name="fecha" type="text" class="lblCampo" id="fecha13" value="<? echo $fecha?>" 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');"> <img src="../imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"> </a> </div></td>
                          </tr>
                        </table>
                      </div></td>
                      <td width="63"><div align="right"></div></td>
                      <td width="314"><div align="left">
                        <input name="fecha_llegada" type="hidden" id="fecha_llegada" size="12" maxlength="10">
                        </div></td>
                    </tr>
                  </table>
              </div></td>
            </tr>
            <tr class="lblCampo">
              <td colspan="4"> <div align="left">Observacion</div></td></tr>
            <tr class="lblCampo">
              <td colspan="4"><div align="left">
                <textarea name="obser" cols="70" rows="5" id="obser"></textarea>
              </div></td>
            </tr>
            
            
            <tr>
              <td colspan="4"><div align="center">
                  <div align="center"> </div>
              </div></td>
            </tr>
            <tr>
              <td colspan="4"><div align="center">
                <table width="300" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="98"><div align="center">
                      <input name="button" type="button" class="botira" id="button" style="<?=$stylo['st2']?>" onClick="enviar_url(form1,'procesos/cvp_reg_sal_bote.php')" value="..:: Grabar ::..">
                    </div></td>
                    <td width="82"><div align="center">
                      <input name="aniox" type="hidden" size="5" id="anio" value="<? echo $anio?>">
                      <input name="mx" type="hidden" size="5" id="mx" value="<? echo $m?>">
                    </div></td>
                    <td width="120"><div align="center">
                      <input type="button" name="Submit2" value="..::  Regresar  ::.." style="<?=$stylo['st2']?>" class="botira" onClick="volver(this.form);">
                    </div></td>
                  </tr>
                </table>
              </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="20"></td>
      <td background="../estilo_tabla/parte_inf_cen.gif">&nbsp;</td>
      <td><img src="../estilo_tabla/parte_inf_der.gif" width="25" height="20"></td>
    </tr>
  </table>
  <map name="MapMapMap">
    <area shape="rect" coords="2,5,22,21" href="fondo.php">
  </map>
  <map name="MapMap">
    <area shape="rect" coords="2,5,22,21" href="fondo.php">
  </map>
</form>
<map name="Map">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
</body>

</html>

