<%@page import="java.io.*,java.util.*,javax.sql.*,java.sql.*,javax.naming.*,java.text.*, m05bClasses.*" %>
<!-- Para poder mostrar caracteres especiales en los mensajes javascript -->
<%@page contentType="text/html; charset=UTF-8" %>
<HTML>
<%	// _______________________________XLNETs______________________________________
	// Evaluar variable de session que indica si esta conectado a XLNets
	if (session.getAttribute("objetoSeguridad") == null)  { 
		// Verificar que no ha transcurrido el tiempo de sesion (web.xml) %>
			<%@ include file="/m05bControlAcceso.inc"%> 
<%	} 
	String persona = (String) session.getAttribute("persona");
%>	
<%@ include file="/m05bIdioma.inc"%>

<head>
        <title><%= resTit.getString("titLstProximasItvs")%></title>
		<link rel="stylesheet" href="<%=m05bConstantesPaginas.PATH_ESTILOS%>/m05bestilos.css" type="text/css">
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

		<!--script language="javascript1.2" src="<%//=m05bConstantesPaginas.PATH_SCRIPTS%>/m05Fechas.js"></script-->
		<script language="javascript1.2" src="<%=m05bConstantesPaginas.PATH_SCRIPTS%>/m05Funciones.js"></script>
	    <script language="javascript1.2" src="<%=m05bConstantesPaginas.PATH_SCRIPTS%>/formateador.js"></script>
			
		<SCRIPT language="javascript">
					var comboDesc=new Array();
		</script>
			
		<script language="JavaScript">
			    function fncImprimir() {
			    	var docu= document.formSolicitud;
			    	if ((docu.FecDesde.value=="") || (docu.FecHasta.value=="")){
			    		alert(dameAlerta(idioma, 37));
                   } else if (((docu.FecDesde.value != "") && (docu.FecHasta.value != ""))
		    	        && ((!(comparaFechas(docu.FecDesde.value, docu.FecHasta.value))))){
		               alert(dameAlerta(idioma, 67));
		           } else {	
		    		
					 var url="m05bItvPDFProximasJsp.jsp";
					 docu.CodDpto.value=document.formSolicitud.Dpto.options[document.formSolicitud.Dpto.selectedIndex].value;
			         docu.action=url;
			         docu.submit();}
			    }            
		    	
		</SCRIPT>
<script>
function RecogerSelectMultiple(){			  
    var Obj = document.formSolicitud('Situacion');
    var len = Obj.length
    	
    var i,texto,cont;
        texto="";
        cont=1;
    for (i=1; i<len; i++) {
      if (Obj[i].selected) {
      	   if (cont==1){ 
             texto= Obj[i].value;}
            else{ 
            	texto=texto + "," +Obj[i].value;}
            cont=cont+1;
       }
   }
   document.formSolicitud.SituacionTexto.value=texto;
   //PulsarMultiple(document.formSolicitud.Situacion.options[document.formSolicitud.Situacion.selectedIndex].value, document.formSolicitud.CMatricula, CmbDesc, '',texto);
          }   
</script> 
</head>
<BODY style="cursor: wait" onkeydown="cancelaEnter();" onload="document.body.style.cursor='default';InitMenu();" onunload="document.body.style.cursor='wait';">
<div id='p01popUpWindowCalendar' style='position:relative; top:15px left:150px'></div>
 <SCRIPT language=JavaScript>
			var urlIdioma;		//URL recarga en funcion del idioma
        	urlIdioma = "<%=m05bConstantesPaginas.LST_REV_PROXITV%>";
			var rutaCabecera;	//Camino de migas
			<% String ruta="/m05bParqueMovilWar/m05bImpProxItvJsp.jsp" ; %>
			rutaCabecera="";
	        detActual='<%= resCM.getString("cmLstProximasItvs")%>';
            //rutaCabecera = "<a style='text-decoration:none; font-size:8pt; color:yellow; font-family:verdana' href='" + urlIdioma + "'>\\<%= resCM.getString("cmLstProximasItvs")%></a>";
 </SCRIPT>
 <%@ include file="/mantenimientosJSP/includes/m05Cabecera_c.jsp"%>
 	 
<%
	String situacion = "";
%>
<p>
<table  width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr valign="top">
		<td width="2%">
			<DIV ID="thessm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : 80 ;Z-Index : 20;">
	      		<DIV ID="thessm2" style="Position : Absolute ;Left : (-150) ;Top : 0 ;Z-Index : 20;">
	                <%@ include file="/m05bMenuInicial.inc"%>
	       		</DIV>
			</DIV>
		<td>&nbsp</td>
		<td width="98%">
			<!-- Calendarios -->
       <FORM NAME="formSolicitud" METHOD="POST">
					<!-- Hojas de Estilo -->
						<%	String m05bCalendarEstilo = m05bFicheroProperties.getInstance().getParameter("m05bEstilos.Calendario");  %>
						<%=m05bCalendarEstilo%>
					<!-- Calendarios -->
						<%	String m05bCalendarScripts = m05bFicheroProperties.getInstance().getParameter("m05bScripts.Calendario");  %>
						<%=m05bCalendarScripts%>
       					
	<% 		m05bCombo miCombo2 = new m05bCombo();%>

			<TABLE class="general">
			    <tr>
					  <!--td align="right"><INPUT TYPE="IMAGE" style="cursor:hand" VALUE="Aceptar" ONCLICK="JavaScript:fncImprimir();return false;" onMouseOver="top.status='Imprimir'; return true" onMouseOut="top.status=''; return true" src="<%=m05bConstantesPaginas.PATH_IMAGENES%>/imprimir.gif"></td-->
                      <td  align="right"><input type="button" class="boton" name="<%= res.getString("etBOT_PRESENTAR")%>" value="<%= res.getString("etBOT_PRESENTAR")%>" ONCLICK="JavaScript:fncImprimir();return false;" onMouseOver="top.status='<%= res.getString("etBOT_STATUSPRESENTAR")%>'; return false" onMouseOut="top.status=''; return false" /></td>				      					  					  
	
				</tr>
			</TABLE width="100%">
		   		  <TABLE class="general" width="100%">
				   <tr>
		   		     <td width="25%" colspan="2" align="left" class="inputFieldTitle"><%= res.getString("etSituacion")%></td>
				     <td width="30%" colspan="3" align="left" class="inputFieldTitle"><%= res.getString("etFechaDesde")%></td>
					 <td width="45%" colspan="2" align="left" class="inputFieldTitle"><%= res.getString("etFHasta")%></td>
                   </tr>
                   <tr> 
                     <td width="25%" colspan="2" align="left">
                       	  <select class=inputField multiple size="6" NAME="Situacion" onblur="javascript:RecogerSelectMultiple();return false;">
                       	     <option value=""> </option>
                       	     	 <%=miCombo2.popCombo( m05bConstantes.COL_99_CODDESC, "NVL("+ campoTexto+m05bConstantes.COL_99_DESCRIPCION+","+m05bConstantes.COL_99_DESCRIPCION+")", m05bConstantes.TAB_DESCRIPCIONES, m05bConstantes.COL_99_CODTABLA, m05bConstantes.DESC_SITUACIONES, "" )%>
         				  </select>
					  </td>
				     <td width="10%" align="left" valign="top"><INPUT class="inputFieldOblig" TYPE="TEXT" NAME="FecDesde" VALUE="" size="10" maxlength="10" onblur="javascript:formatearFecha(this);return false;"></td>
					 <td width="5%" align="left" valign="top"><a href='#' name='anchorFDesde'  onClick='JavaScript:showCalendar("anchorFDesde",idioma,document.all("FecDesde"),true,25,10,2002);return false;' onMouseOver="top.status='Ver Calendario'; return true" onMouseOut="top.status=''; return true" ><img border="0" src='<%=m05bConstantesPaginas.PATH_IMAGENES%>/p01calendario.gif' name="calendario1"/></td>
         			 <td width="15%"> </td>	 
					 <td width="10%" align="left" valign="top"><INPUT class="inputFieldOblig" TYPE="TEXT" NAME="FecHasta" VALUE="" size="10" maxlength="10" onblur="javascript:formatearFecha(this);return false;"></td>
					 <td width="35%" align="left" valign="top"><a href='#' name='anchorFHasta'  onClick='JavaScript:showCalendar("anchorFHasta",idioma,document.all("FecHasta"),true,25,10,2002);return false;' onMouseOver="top.status='Ver Calendario'; return true" onMouseOut="top.status=''; return true" ><img border="0" src='<%=m05bConstantesPaginas.PATH_IMAGENES%>/p01calendario.gif' name="calendario2"/></td> 			 
                  </tr>
					<tr>
					  <td height="15%" colspan="7">&nbsp;&nbsp;</td>
					</tr>
				  <tr>
					  <td class="inputFieldTitle" colspan="7" ><%= res.getString("etDepartamento")%></td>
				  </tr>
				  <tr>
   					 <td align="left" colspan="5">
  					      	  <select class=inputField  NAME="Dpto" onKeypress="buscar_op(this,this)" onblur="borrar_buffer()" onclick="borrar_buffer()">
				               <option value=""> </option>
   					               <%=miCombo2.popCombo(m05bConstantes.COL_06_CODDPTO,"NVL("+campoTexto2+m05bConstantes.COL_06_DESCDPTO+","+m05bConstantes.COL_06_DESCDPTO+")", m05bConstantes.TAB_DEPARTAMENTOS, "", "","")%>
   					          </select>
   					 </td>
				   </tr>

				</table>
		              <input type="hidden" name="SituacionTexto" value="">
		              <input type="hidden" name="CodDpto" value="">
</FORM>		    		
		</td>
	</tr>
	<tr>
			<td colspan="4"><%@ include file="/mantenimientosJSP/includes/m05Pie_c.jsp"%></td>
	</tr>
</table>
<SCRIPT language='javascript'>
    setTimeout('initSlide();', 1);
</SCRIPT>
</BODY>
</HTML>