Rev 1315 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
206 | jmachado | 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
7 | <jomm:messages/> |
||
1317 | jmachado | 8 | <html:errors/> |
9 | <div class="container-fluid"> |
||
10 | <div class="panel"> |
||
11 | <div class="panel-body"> |
||
12 | <html:form styleClass="form-horizontal" action="/user/courseUnitControllerAdminFromServiceZone?dispatch=search&from=ServiceZone"> |
||
13 | <input type="hidden" name="dispatch" value="search"> |
||
14 | <form class="form-horizontal" role="form"> |
||
15 | <div class="form-group"> |
||
16 | <label class="control-label col-md-2" for="search"><bean:message key="courseunit.search"/></label> |
||
17 | <div class="col-md-8"> |
||
18 | <html:text styleClass="form-control" styleId="search" property="textToSearch"/> |
||
19 | </div> |
||
20 | <div class="col-md-2"> |
||
21 | <button type="button" class="btn btn-sm btn-default" onclick="set(this.form,'search');this.form.submit()"><bean:message key="search"/></button> |
||
22 | </div> |
||
23 | </div> |
||
24 | |||
25 | <div class="form-group"> |
||
26 | <label class="control-label col-md-2">Tipo de Pesquisa</label> |
||
27 | <div class="col-md-3"> |
||
28 | <label class="radio inline"> |
||
29 | <html:radio property="searchType" value="search.type.all"/> |
||
30 | <bean:message key="search.type.all"/> |
||
31 | </label> |
||
32 | </div> |
||
33 | <div class="col-md-3"> |
||
34 | <label class="radio inline"> |
||
35 | <html:radio property="searchType" value="search.type.any"/> |
||
36 | <bean:message key="search.type.any"/> |
||
37 | </label> |
||
38 | </div> |
||
39 | <div class="col-md-3"> |
||
40 | <label class="radio inline"> |
||
41 | <html:radio property="searchType" value="search.type.phrase"/> |
||
42 | <bean:message key="search.type.phrase"/> |
||
43 | </label> |
||
44 | </div> |
||
45 | </div> |
||
46 | |||
47 | </html:form> |
||
48 | |||
49 | |||
206 | jmachado | 50 | <logic:present name="ISearchResults" property="results"> |
1147 | jmachado | 51 | <table class="tablesorter tablesorterfiltered"> |
52 | <thead> |
||
206 | jmachado | 53 | <tr> |
54 | <th><bean:message key="courseunit.code"/> </th> |
||
55 | <th><bean:message key="courseunit.name"/> </th> |
||
1147 | jmachado | 56 | <th class="filter-name filter-select"><bean:message key="courseunit.semestre"/></th> |
57 | <th class="filter-name filter-select"><bean:message key="courseunit.importYear"/></th> |
||
58 | <th class="filter-name filter-select"><bean:message key="courseunit.course"/></th> |
||
1315 | jmachado | 59 | <th class="filter-name filter-select"><bean:message key="course.code"/></th> |
206 | jmachado | 60 | <th></th> |
61 | <th></th> |
||
62 | </tr> |
||
1147 | jmachado | 63 | </thead> |
64 | <tbody> |
||
206 | jmachado | 65 | <logic:iterate id="courseunitresult" name="ISearchResults" property="results" type="pt.estgp.estgweb.services.courseunits.impl.CourseUnitViewResult" > |
66 | <tr> |
||
1147 | jmachado | 67 | <td style="text-align: right">${courseunitresult.object.code}</td> |
68 | <td><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseunitresult.object.id}">${courseunitresult.object.name}</a></td> |
||
69 | <td><bean:message key="courseunit.${courseunitresult.object.semestre}"/></td> |
||
206 | jmachado | 70 | <td>${courseunitresult.object.importYear}</td> |
1147 | jmachado | 71 | <td><a href="<%=request.getContextPath()%>/user/courseControllerFromServiceZone.do?dispatch=edit&courseView.id=${courseunitresult.object.courseId}">${courseunitresult.object.courseName}</a></td> |
1315 | jmachado | 72 | <td>${courseunitresult.object.courseCode}</td> |
1147 | jmachado | 73 | <td><html:link styleClass="btn btn-warning" action="/user/startEditCourseUnitAdminFromServiceZone?id=${courseunitresult.object.id}"><bean:message key="edit"/><span class="glyphicon glyphicon-pencil"></span></html:link></td> |
74 | <td><html:link styleClass="btn btn-danger" action="/user/startDeleteCourseUnitAdminFromServiceZone?id=${courseunitresult.object.id}"><bean:message key="delete"/><span class="glyphicon glyphicon-remove"></span></html:link></td> |
||
206 | jmachado | 75 | </tr> |
76 | </logic:iterate> |
||
1147 | jmachado | 77 | </tbody> |
206 | jmachado | 78 | </table> |
79 | <p class="pages"> |
||
80 | <bean:message key="search.pages"/>: |
||
81 | <logic:equal value="true" name="ISearchResults" property="hasPreviousPage"> |
||
82 | <a href="<%=request.getContextPath()%>/user/startSearchCourseUnitAdminFromServiceZone.do?page=${ISearchResults.previousPage}&textToSearch=${ISearchResults.query}&searchType=${ISearchResults.searchType}"> |
||
83 | < |
||
84 | <bean:message key="result.previous"/> |
||
85 | </a> |
||
86 | </logic:equal> |
||
87 | ${ISearchResults.page2Screen} |
||
88 | <logic:equal value="true" name="ISearchResults" property="hasNextPage"> |
||
89 | <a href="<%=request.getContextPath()%>/user/startSearchCourseUnitAdminFromServiceZone.do?page=${ISearchResults.nextPage}&textToSearch=${ISearchResults.query}&searchType=${ISearchResults.searchType}"> |
||
90 | <bean:message key="result.next"/> |
||
91 | ></a> |
||
92 | </logic:equal> |
||
93 | </p> |
||
1317 | jmachado | 94 | </logic:present> |
95 | </div> |
||
96 | </div> |
||
97 | </div> |