<!-- $Id: result.jsp,v 1.8 2005/12/04 10:07:28 rampil Exp $ -->
<!-- WWW full text search engine example implementation 'kinako' $Revision: 1.8 $ -->
<%@ page contentType="text/html; charset=Windows-31J" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/kinako" prefix="k"%>
<c:set var="range"><%=org.logical_paradox.kinako.constant.ApConstant.PAGE_LINK_RANGE%></c:set>
<c:set var="num"><bean:message key="system.default.page_size"/></c:set>
<c:set var="encodedKeyword"><k:urlencode><c:out value="${searchForm.keyword}"/></k:urlencode></c:set>
<html:html>
<head>
<title>
<bean:message key="app.title"/>
</title>
<style type="text/css">
body, input { font-size: 10pt; font-family: sans-serif,monospace,Helvatica,Ariel; }
h3.error { font-size: 10pt; color: #ff0000; font-weight:bold; }
input { border: 1px solid black; }
input.submit {border: 1px solid #602000; font-size: 8pt; width: 48px; background-color: #ffa060; color: #602000;}
span.summary { font-size: 8pt; }
span.site { font-size: 8pt; color: #999999; }
span.url { font-size: 8pt; color: #602000; }
span.hits { font-size: 8pt; font-weight: bold; color: #602000; }
span.hitcount { font-size: 8pt; font-weight: bold; color: #602000; }
span.strong01 { background-color: #aaeeff; font-weight: bold; }
span.strong02 { background-color: #f8f877; font-weight: bold; }
span.strong03 { background-color: #aaffaa; font-weight: bold; }
span.strong04 { background-color: #ffaaaa; font-weight: bold; }
span.strong05 { background-color: #ee77ee; font-weight: bold; }
hr { color: #602000; border-style: dotted; }
a { color: #ff8040; font-weight: bold; }
a:hover { color: #602000; font-weight: bold; }
</style>
<meta http-equiv="Content-Type" content="text/html;charset=<bean:message key="app.page.encoding"/>">
</head>
<body>
<html:form method="get" action="search.do">
<table border="0">
<tr>
	<td><a href="./"><img src="img/kinako_s.png" border="0"></a></td>
	<td><bean:message key="text.query_input_form_rp"/><br>
		<html:errors/>
		<input type="text" size="65" maxlength="128" name="keyword" value="<c:out value="${searchForm.keyword}"/>">
		&nbsp;
		<input type="submit" class="submit" name="btn" value="<bean:message key="btn.search"/>">
	</td>
</tr>
</table>
<div align="right"><span class="hits"><bean:message key="text.hits.prefix"/></span><span class="hitcount"><bean:write name="searchForm" property="hits"/></span><span class="hits"><bean:message key="text.hits.suffix"/></span></div>
<hr>
<c:choose>
<c:when test="${searchForm.hits == 0}">
<div align="center"><h3 class="error"><bean:message key="text.notfound"/></h3></div>
</c:when>
<c:otherwise>
<bean:write name="searchForm" property="result" filter="false"/>
<br>
<div align="center">
<k:pageLink hits="${searchForm.hits}" num="${num}" page="${searchForm.page}" range="${range}" href="search.do?startIndex={0}&num=${searchForm.num}&keyword=${encodedKeyword}"/>
</div>
</c:otherwise>
</c:choose>
<hr>
<div align="center">
<bean:message key="text.copyright"/>
</div>
</html:form>
</body>
</html:html>