<%@include file="/WEB-INF/includeTemplate.inc"%>
<%@ taglib prefix="tiles" uri="/WEB-INF/tld/tiles-jsp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="com.ejie.ab04b.constantes.Constantes"%> 
 

<div class="clsCabecera"><spring:message code="seccion.buscadorCentro"/></div>
	<div id="centroj73_div" class="rup-table-container">
	<div id="centroj73_filter_div" class="rup-table-filter">	<!-- Capa contenedora del formulario de filtrado -->
			<form id="centroj73_filter_form">						<!-- Formulario de filtrado -->
			<div id="centroj73_feedback" ></div>						<!-- Feedback de la tabla -->
			<div id="centroj73_filter_toolbar" class="formulario_legend inv"></div>	<!-- Barra de herramientas del formulario de filtrado -->
			<fieldset id="centroj73_filter_fieldset" class="rup-table-filter-fieldset">
				<div class="formulario_columna_cnt">
					<%--cif/razon social --%>
					<div class="clsFila">
						<input type="hidden" id="idEmpresa_filter_table" />
						<div class="clsCampo">
							<label for="ccif001_filter_table" ><spring:message code="empresa.cif"/>:</label>		
							<input type="text" name="ccif001" class="clsPequeno mayus" id="ccif001_filter_table" maxlength="10" />
						</div>
						<div class="clsCampo">
							<label for="rsoc001" ><spring:message code="empresa.razonSocial"/>:</label>		
							<input type="text" name="rsoc001" class="clsMuyGrande" id="rsoc001" maxlength="50"/>
						</div>
					</div>
					
					<%--provincia/municipio/localidad --%>
					<div class="clsFila">
						<div class="clsCampo">
							<label for="provc001_filter_table" ><spring:message code="empresa.provincia"/>:</label>
<!-- 							<select id="provc001_filter_table" name="provc001" class="clsGrande"></select> -->
							
							<select id="provc001_filter_table" name="provc001" class="clsGrande">
								<c:forEach var="del" items="${delegaciones}">
									<c:if test="${idiomaCapitalizado eq 'Es' }">
										<option value="${del.id}"> ${del.descripcionEs}</option>
									</c:if>
	        						<c:if test="${idiomaCapitalizado eq 'Eu' }">
										<option value="${del.id}"> ${del.descripcionEu}</option>
									</c:if>
	    						</c:forEach>
							</select>
						</div>
						<div class="clsCampo">
							<label for="munic001_filter_table" ><spring:message code="empresa.municipio"/>:</label>
							<select id="munic001_filter_table" name="munic001" class="clsGrande"></select>
						</div>
						<div class="clsCampo">
						<label for="local001_filter_table" ><spring:message code="empresa.localidad"/>:</label>		
							<input type="text" name="local001" class="clsGrande" id="local001_filter_table" maxlength="40" value="${centro.direccion.localidad.descripcion}"/>
						</div>
					</div>
					
					<%--cp/direccion --%>
					<div class="clsFila">
						<div class="clsCampo">
						<label for="cposc001" ><spring:message code="empresa.cp"/>:</label>		
							<input type="text" name="cposc001" class="clsMinimo" id="cposc001" maxlength="5" value="${centro.direccion.cpostal}" />
						</div>
						<div class="clsCampo">
						<label for="domic001" ><spring:message code="empresa.direccion"/>:</label>		
							<input type="text" name="domic001" class="clsMuyGrande" id="domic001" maxlength="50"/>
						</div>
					</div>
					
					
					<!-- Fin campos del formulario de filtrado -->
				</div>
				<!-- Botonera del formulario de filtrado -->
				<div id="centroj73_filter_buttonSet" class="right_buttons">
					<!-- Botón de filtrado -->
					<input id="centroj73_filter_filterButton" type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value='<spring:message code="filter" />' />
					<!-- Enlace de limpiar -->
					<a id="centroj73_filter_cleanLink" href="javascript:void(0)" class="rup-enlaceCancelar"><spring:message code="clear" /></a>
				</div>
			</fieldset>
		</form>
	</div>


	<div id="centroj73_toolbar"></div>							<!-- Botonera de la tabla -->
	<div id="centroj73_grid_div">
		<!-- Tabla -->
		<table id="centroj73"></table>
		<!-- Barra de paginación -->
		<div id="centroj73_pager"></div>
	</div>
</div>
<div id="centroj73_div_toolbar" class="centeredToolbar"></div><!-- Botonera de la tabla -->	

<!-- Formulario de detalle -->
<%--
<div id="centroj73_detail_div" class="rup-table-formEdit-detail">
	<div id ="centroj73_detail_navigation"></div>			<!-- Barra de navegación del detalle -->
	<div class="ui-dialog-content ui-widget-content" >
		<form id="centroj73_detail_form">					<!-- Formulario -->
			<div id ="centroj73_detail_feedback"></div>		<!-- Feedback del formulario de detalle -->
			<div class="floating_left_pad_right">
			
				<!-- Campos del formulario de detalle -->
				<div class="floating_left_pad_right one-column">
					<label for="codemp001_detail_table"><spring:message code="codemp001"/>:</label>
					<input type="text" name="codemp001" class="formulario_linea_input" id="codemp001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="ccen001_detail_table"><spring:message code="ccen001"/>:</label>
					<input type="text" name="ccen001" class="formulario_linea_input" id="ccen001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="provc001_detail_table"><spring:message code="provc001"/>:</label>
					<input type="text" name="provc001" class="formulario_linea_input" id="provc001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="rsoc001_detail_table"><spring:message code="rsoc001"/>:</label>
					<input type="text" name="rsoc001" class="formulario_linea_input" id="rsoc001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="rsos001_detail_table"><spring:message code="rsos001"/>:</label>
					<input type="text" name="rsos001" class="formulario_linea_input" id="rsos001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="munic001_detail_table"><spring:message code="munic001"/>:</label>
					<input type="text" name="munic001" class="formulario_linea_input" id="munic001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="domic001_detail_table"><spring:message code="domic001"/>:</label>
					<input type="text" name="domic001" class="formulario_linea_input" id="domic001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="cposc001_detail_table"><spring:message code="cposc001"/>:</label>
					<input type="text" name="cposc001" class="formulario_linea_input" id="cposc001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="local001_detail_table"><spring:message code="local001"/>:</label>
					<input type="text" name="local001" class="formulario_linea_input" id="local001_detail_table"/>
				</div>
				<div class="floating_left_pad_right one-column">
					<label for="ccif001_detail_table"><spring:message code="ccif001"/>:</label>
					<input type="text" name="ccif001" class="formulario_linea_input" id="ccif001_detail_table"/>
				</div>
				<!-- Fin campos del formulario de detalle -->
				
			</div>
		</form>
	</div>
	<!-- Botonera del formulario de detalle -->
	<div class="rup-table-buttonpane ui-widget-content ui-helper-clearfix">
		<div class="ui-dialog-buttonset">
			<!-- Botón Guardar -->
			<button id="centroj73_detail_button_save" type="button">
				<spring:message code="save" />
			</button>
			<!-- Enlace cancelar -->
			<a href="javascript:void(0)" id="centroj73_detail_link_cancel"
				class="rup-enlaceCancelar"><spring:message code="cancel" /></a>
		</div>
	</div>
</div>
 --%>