<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<!-- query matched some document -->
<div id="subheader">
	<p>
		<bean:message key="labels.search_result_status" arg0="${f:h(displayQuery)}"
		arg1="${f:h(allRecordCount)}" arg2="${f:h(currentStartRecordNumber)}" arg3="${f:h(currentEndRecordNumber)}"/>
<c:if test="${execTime!=null}">
		<bean:message key="labels.search_result_time" arg0="${f:h(execTime)}"/>
</c:if>
	</p>
</div>

<div id="result">
	<div>
		<ol>
<c:forEach var="doc" varStatus="s" items="${documentItems}">
			<li>
				<h3 class="title">
					<a href="${doc.urlLink}">${f:h(doc.contentTitle)}</a>
				</h3>
				<div class="body">
${doc.contentDescription}				
					<br/>
					<cite>${f:h(doc.site)}</cite>
				</div>
			</li>
</c:forEach>
		</ol>
	</div>
</div>

<div id="subfooter">
	<p>
<c:if test="${existPrevPage}">
		<span><s:link href="prev?query=${f:u(query)}&pn=${f:u(currentPageNumber)}&num=${f:u(pageSize)}&labelTypeValue=${f:u(labelTypeValue)}">&lt;&lt;<bean:message key="labels.prev_page"/></s:link></span>
</c:if>
<c:forEach var="pageNumber" varStatus="s" items="${pageNumberList}">
	<c:if test="${pageNumber == currentPageNumber}">
		<span>${pageNumber}</span>
	</c:if>
	<c:if test="${pageNumber != currentPageNumber}">
		<span><s:link href="move?query=${f:u(query)}&pn=${f:u(pageNumber)}&num=${f:u(pageSize)}&labelTypeValue=${f:u(labelTypeValue)}">${f:h(pageNumber)}</s:link></span>
	</c:if>
</c:forEach>
<c:if test="${existNextPage}">
		<span><s:link href="next?query=${f:u(query)}&pn=${f:u(currentPageNumber)}&num=${f:u(pageSize)}&labelTypeValue=${f:u(labelTypeValue)}"><bean:message key="labels.next_page"/>&gt;&gt;</s:link></span>
</c:if>
	</p>
</div>
