<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> 
<c:if test="${not empty param.error}">  
  <font color='red'>  
    Datos enviados con error.
  </font>
</c:if>
<h2>Buscado de plazas de aparcamiento</h2>

<form:form id="form" method="post" commandName="pPlaceSearchForm" action="searchResults"> 
	<fieldset>
		<p class="first">
			<div class="left">
				<form:label path="when_ini">Fecha inicial</form:label>
				<form:input type="text" size="10" id="when_ini" name="when_ini" path="when_ini"/>
				<form:errors path="when_ini" cssClass="campoConError"/>
			</div>
			<div class="left marginLeft10">
				<form:label path="when_fin">Fecha final</form:label>
				<form:input type="text" size="10" id="when_fin" name="when_fin" path="when_fin"/>
				<form:errors path="when_fin" cssClass="campoConError"/>
			</div>
		</p>
		<p>
			<form:label path="where">Donde</form:label>
			<form:input type="text" size="150" id="where" name="where" path="where"/>
			<form:errors path="where" cssClass="campoConError"/>
		</p>
		<p>
			<div class="left">
				<form:label path="price_ini">Precio inicial</form:label>
				<form:input type="text" size="10" id="price_ini" name="price_ini" path="price_ini"/>
				<form:errors path="price_ini" cssClass="campoConError"/>
			</div>
			<div class="left marginLeft10">
				<form:label path="price_fin">Precio final</form:label>
				<form:input type="text" size="10" id="price_fin" name="price_fin" path="price_fin"/>
				<form:errors path="price_fin" cssClass="campoConError"/>
			</div>
		</p>
	</fieldset>
	<p class="submit"><button type="submit">Enviar</button></p>		
</form:form>