Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
96 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.web.form.commons.SearchForm" %> |
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
8 | |||
9 | <html:errors/> |
||
10 | <% |
||
11 | String query = request.getParameter("query"); |
||
12 | String searchType = request.getParameter("searchType"); |
||
13 | SearchForm searchForm = new SearchForm(); |
||
14 | searchForm.setQuery(query); |
||
15 | searchForm.setSearchType(searchType); |
||
16 | request.setAttribute("SearchForm", searchForm); |
||
17 | |||
18 | %> |
||
19 | |||
20 | <html:form action="/search"> |
||
21 | <input type="hidden" name="dispatch" value="search"> |
||
22 | <table> |
||
23 | |||
24 | <tr> |
||
25 | <td> |
||
26 | <bean:message key="search"/> |
||
27 | </td> |
||
28 | <td> |
||
482 | jmachado | 29 | <html:text size="100%" styleClass="small" property="query" value=""/> |
96 | jmachado | 30 | </td> |
31 | <td> |
||
32 | <input type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>"> |
||
33 | </td> |
||
34 | |||
35 | </tr> |
||
36 | <tr> |
||
37 | <td nowrap="nowrap" colspan="3"> |
||
38 | <table> |
||
39 | <tr> |
||
40 | <td><html:radio property="searchType" value="search.type.all"/></td> |
||
41 | <td><bean:message key="search.type.all"/></td> |
||
42 | <td><html:radio property="searchType" value="search.type.any"/></td> |
||
43 | <td><bean:message key="search.type.any"/></td> |
||
44 | <td><html:radio property="searchType" value="search.type.phrase"/></td> |
||
45 | <td><bean:message key="search.type.phrase"/></td> |
||
46 | </tr> |
||
47 | </table> |
||
48 | </td> |
||
49 | </tr> |
||
50 | </table> |
||
51 | </html:form> |