<%@page import="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" %>

<%//@ include file="/principalJSP/m05bintern.jsp"%>

<!-- Fecha de creacion: (31/01/05) -->
<HTML>
<%@ include file="/m05bIdioma.inc"%>
<link rel="stylesheet" href="<%=m05bConstantesPaginas.PATH_ESTILOS%>/m05bestilos.css" type="text/css">
<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
		<title>Listado Asignaciones entre Fechas</title>

		<!--script language="javascript1.2" src="<%//=m05bConstantesPaginas.PATH_SCRIPTS%>/m05Fechas.js"></script-->
		<script language="javascript1.2" src="<%=m05bConstantesPaginas.PATH_SCRIPTS%>/m05Funciones.js"></script>
			
		<script language="JavaScript">
			    function fncImprimir() {
					var url="m05bKmYConsumoPDFJsp.jsp";
					var docu= document.formSolicitud;
			        docu.action=url;
			        docu.submit();
			    }            
		    	
		</SCRIPT>
			
</head>
<BODY style="cursor: wait" 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
	var rutaCabecera;	//Camino de migas
	<% String ruta="/m05bParqueMovilWar/m05bImpSoliTagJsp.jsp" ; %>
	rutaCabecera = "<a style='text-decoration:none; font-size:8pt; color:yellow; font-family:verdana' href='<%=ruta%>'>\\Solicitud de TAG</a>";
 </SCRIPT>
 <%@ include file="/mantenimientosJSP/includes/m05Cabecera_c.jsp"%>
<script language="javascript1.2" src="<%=m05bConstantesPaginas.PATH_SCRIPTS%>/m05Pulsado.js"></script>
<%
	String situacion = "";
	String Grupo="";
%>
<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 miCombo = new m05bCombo();
		    m05bCombo miCombo2 = new m05bCombo();%>
		    
					<SCRIPT language="javascript">
    						var comboDesc=new Array();
					        <%=miCombo.joinComboArrayGrupos()%>
					</script>
					<SCRIPT language="javascript">
    						var CmbDesc=new Array();
                    <%=miCombo.joinComboArray( m05bConstantes.COL_34_SITUACION + ", '" +m05bConstantes.PARAM_NOUSADO+"'",m05bConstantes.COL_34_MATRICULA , m05bConstantes.TAB_VEHICULOS, "")%>
					</script>
								
			<TABLE class="general">
			    <tr align="right">
					  <td width="100%" 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>
					
		  <TABLE class="general">
		  	<tr> 
		      <td width="5%">
		   		  <TABLE class="general">
		   		     <tr>
		   		       	  <td align="left" colspan="2" class="searchTitle">Estado</td>
		   	              <td  colspan="3"></td>
                     </tr>
		   		     <tr>
		   	          <td></td>
                      <td align="left" colspan="4" >
<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;
       }
   }
   PulsarMultiple(document.formSolicitud.Situacion.options[document.formSolicitud.Situacion.selectedIndex].value, document.formSolicitud.CMatricula, CmbDesc, '',texto);
          }   
</script> 
                       	  <select class=inputField multiple NAME="Situacion" onblur="javascript:RecogerSelectMultiple();return false;" onchange="javascript:document.formSolicitud.CMatricula.disabled=false;">
                       	     <option value=""> </option>
                       	     	 <%=miCombo.popCombo( m05bConstantes.COL_99_CODDESC, m05bConstantes.COL_99_DESCRIPCION, m05bConstantes.TAB_DESCRIPCIONES, m05bConstantes.COL_99_CODTABLA, m05bConstantes.DESC_SITUACIONES, "" )%>
         				  </select>
					  </td>
              
					</tr>
				    <tr><td>
				    	<br>
				    	<br>
				    	</td>
				    </tr>
		   		     <tr>
    		            <td class="searchTitle" border="1"> Listado </td>
    		            <td class="searchTitle" border="1">Matrícula </td>
				    	<td align="left" colspan="3">
			  			  <select class=inputField multiple NAME="CMatricula" onchange="JavaScript:document.formSolicitud.Grupo.text='';document.formSolicitud.Rango.text='';document.formSolicitud.Rango.disabled=true;">
				    	     <option value=""> </option>	
						                <%=miCombo.ComMatricula(m05bConstantes.VEH_TODOS,"")%>
				    	  </select>
				    	 </td>
				     </tr>
				    	
		   		     <tr>
    		            <td  style="text-align: left" class="inputField" border="1">
                          <input checked type="Radio" class=inputField onclick="javascript:document.formSolicitud.Listado.value='0';return false" NAME="Tipo"   VALUE="0" width="40%"  border='0'/>Kilometros Recorridos
                       </td>
    		            <td class="searchTitle" border="1">Grupo Rango </td>
				    	<td align="left" colspan="3">
					     <select name="Grupo" class="inputField" onchange="JavaScript:Pulsado(Grupo.options[Grupo.selectedIndex].value.split('..')[0], document.formSolicitud.Rango, comboDesc, '');document.formSolicitud.CMatricula.text='';document.formSolicitud.CMatricula.disabled=true;document.formSolicitud.Rango.disabled=false;">
					          <option value="***"></option>
					                <%=miCombo.GrupoRango(Grupo)%>
					     </select>
				
				    	 </td>
				     </tr>
				     		 
				     <tr>
    		           <td style="text-align: left" class="inputField" border="1">
                          <input type="Radio" class=inputField onclick="javascript:document.formSolicitud.Listado.value='1';return false;"  NAME="Tipo"  VALUE="1" width="40%" border='0'/>Consumo de Combustible 		  
                       </td> 
    		            <td class="searchTitle" border="1">Rango </td>
				    	<td align="left" colspan="3">
				         <select class=inputField  NAME="Rango" >
				    	     <option value=""> </option>	
				    	       	<%=miCombo.popCombo( m05bConstantes.COL_99_CODDESC, m05bConstantes.COL_99_DESCRIPCION, m05bConstantes.TAB_DESCRIPCIONES, m05bConstantes.COL_99_CODTABLA, m05bConstantes.DESC_RANGOS, "")%>
				    	  </select>
				    	 </td>
                     </tr>
                     <tr>
                       <td>
                       </td>
    		           <td class="searchTitle" border="1">Fecha entre: </td>
                       <td align="left"><INPUT class="inputField" TYPE="TEXT" NAME="FEntre" VALUE="" size="10" maxlength="10" >
        				    <a href='#' name='anchorFEntre'  onClick='JavaScript:showCalendar("anchorFEntre","cast",document.all("FEntre"),true,25,10,2002);return false;' onMouseOver="top.status='Ver Calendario'; return true" onMouseOut="top.status=''; return true" ><img border="0" align="bottom" src='<%=m05bConstantesPaginas.PATH_IMAGENES%>/p01calendario.gif' name="calendario1"/>
        			   </td>
    		           <td  style="text-align: center" class="searchTitle" border="1">Y </td>
                       <td align="left"><INPUT class="inputField" TYPE="TEXT" NAME="FYEntre" VALUE="" size="10" maxlength="10" >
        			       <a href='#' name='anchorFYEntre'  onClick='JavaScript:showCalendar("anchorFYEntre","cast",document.all("FYEntre"),true,25,10,2002);return false;' onMouseOver="top.status='Ver Calendario'; return true" onMouseOut="top.status=''; return true" ><img border="0" align="bottom" src='<%=m05bConstantesPaginas.PATH_IMAGENES%>/p01calendario.gif' name="calendario2"/>
        			    </td>
        		     </tr>
        		    </table>
    		  </td>
            <tr>
    	</table>
		              <input type="hidden" name="Listado" value='0'>
</FORM>		    		
		</td>
	</tr>
	<tr>
			<td colspan="3"><%@ include file="/mantenimientosJSP/includes/m05Pie_c.jsp"%></td>
	</tr>
</table>
<SCRIPT language='javascript'>
    setTimeout('initSlide();', 1);
</SCRIPT>
</BODY>
</HTML>