<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<div class="topbar">
	<div class="fill">
		<div class="container">
			<s:link styleClass="brand" href="/index">
				<bean:message key="labels.header_brand_name" />
			</s:link>
			<s:form styleClass="pull-right" action="search" method="get">
				<c:if test="${displayLabelTypeItems}">
					<html:select property="fields.label" styleId="labelType" styleClass="span2" multiple="true">
						<c:forEach var="item" items="${labelTypeItems}">
							<html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
						</c:forEach>
					</html:select>
					<span id="labelTypeNoneSelectedText" class="hide"><bean:message key="labels.search_result_noneselect_label"/></span>
					<span id="labelTypeSelectedText" class="hide"><bean:message key="labels.search_result_select_label"/></span>
				</c:if>
				<html:text styleClass="input-large" property="query"
					maxlength="1000" styleId="query" />
				<html:select property="sort" styleId="sort" styleClass="span2">
					<option value="">
						<bean:message key="labels.search_result_select_sort"/>
					</option>
					<html:option value="tstamp.asc"><bean:message key="labels.search_result_sort_tstamp_asc"/></html:option>
					<html:option value="tstamp.desc"><bean:message key="labels.search_result_sort_tstamp_desc"/></html:option>
					<html:option value="contentLength.asc"><bean:message key="labels.search_result_sort_contentLength_asc"/></html:option>
					<html:option value="contentLength.desc"><bean:message key="labels.search_result_sort_contentLength_desc"/></html:option>
					<html:option value="lastModified.asc"><bean:message key="labels.search_result_sort_lastModified_asc"/></html:option>
					<html:option value="lastModified.desc"><bean:message key="labels.search_result_sort_lastModified_desc"/></html:option>
				</html:select>
				<html:select property="num" styleId="num" styleClass="span2">
					<option value="">
						<bean:message key="labels.search_result_select_num"/>
					</option>
					<html:option value="10">10</html:option>
					<html:option value="20">20</html:option>
					<html:option value="30">30</html:option>
					<html:option value="40">40</html:option>
					<html:option value="50">50</html:option>
					<html:option value="100">100</html:option>
				</html:select>
				<button class="btn medium primary" type="submit" name="search"
					id="searchButton">
					<bean:message key="labels.search" />
				</button>
			</s:form>
		</div>
	</div>
</div>
