Rev 1310 | 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 | |||
1312 | jmachado | 20 | <div class="row"> |
21 | <div class="col-sm-6"> |
||
22 | <html:form action="/search" styleId="searchFormAdv"> |
||
23 | <input type="hidden" name="dispatch" value="search"> |
||
96 | jmachado | 24 | |
1312 | jmachado | 25 | <div class="form-group"> |
26 | <label><bean:message key="search"/></label> |
||
27 | <div class="input-group"> |
||
28 | <input type="text" class="form-control" name="query" value="<%=query.replace("\"",""")%>"/> |
||
29 | <span class="input-group-addon cursorLink" onclick="$('#searchFormAdv').submit()"> |
||
30 | <span class="glyphicon glyphicon-search"></span> |
||
31 | </span> |
||
32 | </div> |
||
33 | </div> |
||
96 | jmachado | 34 | |
1312 | jmachado | 35 | <label class="radio-inline"><html:radio property="searchType" value="search.type.all"/><bean:message key="search.type.all"/></label> |
36 | <label class="radio-inline"><html:radio property="searchType" value="search.type.any"/><bean:message key="search.type.any"/></label> |
||
37 | <label class="radio-inline"><html:radio property="searchType" value="search.type.phrase"/><bean:message key="search.type.phrase"/></label> |
||
38 | |||
39 | </html:form> |
||
40 | </div> |
||
41 | </div> |