Rev 1310 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
206 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.domain.StudentImpl" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.TeacherImpl" %> |
||
3 | <%@ page import="pt.estgp.estgweb.domain.UserImpl" %> |
||
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
10 | <jomm:messages/> |
||
11 | <html:form action="/user/courseUnitControllerAdminFromServiceZone?dispatch=search&from=ServiceZone"> |
||
12 | <input type="hidden" name="dispatch" value="search"> |
||
13 | <table class="form"> |
||
14 | <tr> |
||
15 | <th> |
||
16 | <bean:message key="courseunit.search"/> |
||
17 | </th> |
||
18 | <td> |
||
19 | <html:text property="textToSearch" maxlength="50"/> |
||
20 | </td> |
||
21 | <td> |
||
22 | <input type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>"> |
||
23 | </td> |
||
24 | </tr> |
||
25 | <tr> |
||
26 | <td nowrap="nowrap" colspan="3"> |
||
27 | <table> |
||
28 | <tr> |
||
29 | <td><html:radio property="searchType" value="search.type.all"/></td> |
||
30 | <td><bean:message key="search.type.all"/></td> |
||
31 | <td><html:radio property="searchType" value="search.type.any"/></td> |
||
32 | <td><bean:message key="search.type.any"/></td> |
||
33 | <td><html:radio property="searchType" value="search.type.phrase"/></td> |
||
34 | <td><bean:message key="search.type.phrase"/></td> |
||
35 | </tr> |
||
36 | </table> |
||
37 | </td> |
||
38 | </tr> |
||
39 | </table> |
||
40 | </html:form> |
||
41 | <logic:present name="ISearchResults" property="results"> |
||
1147 | jmachado | 42 | <table class="tablesorter tablesorterfiltered"> |
43 | <thead> |
||
206 | jmachado | 44 | <tr> |
45 | <th><bean:message key="courseunit.code"/> </th> |
||
46 | <th><bean:message key="courseunit.name"/> </th> |
||
1147 | jmachado | 47 | <th class="filter-name filter-select"><bean:message key="courseunit.semestre"/></th> |
48 | <th class="filter-name filter-select"><bean:message key="courseunit.importYear"/></th> |
||
49 | <th class="filter-name filter-select"><bean:message key="courseunit.course"/></th> |
||
1315 | jmachado | 50 | <th class="filter-name filter-select"><bean:message key="course.code"/></th> |
206 | jmachado | 51 | <th></th> |
52 | <th></th> |
||
53 | </tr> |
||
1147 | jmachado | 54 | </thead> |
55 | <tbody> |
||
56 | /user/startLoadCourseUnitFromHome.do?id=421 |
||
206 | jmachado | 57 | <logic:iterate id="courseunitresult" name="ISearchResults" property="results" type="pt.estgp.estgweb.services.courseunits.impl.CourseUnitViewResult" > |
58 | <tr> |
||
1147 | jmachado | 59 | <td style="text-align: right">${courseunitresult.object.code}</td> |
60 | <td><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseunitresult.object.id}">${courseunitresult.object.name}</a></td> |
||
61 | <td><bean:message key="courseunit.${courseunitresult.object.semestre}"/></td> |
||
206 | jmachado | 62 | <td>${courseunitresult.object.importYear}</td> |
1147 | jmachado | 63 | <td><a href="<%=request.getContextPath()%>/user/courseControllerFromServiceZone.do?dispatch=edit&courseView.id=${courseunitresult.object.courseId}">${courseunitresult.object.courseName}</a></td> |
1315 | jmachado | 64 | <td>${courseunitresult.object.courseCode}</td> |
1147 | jmachado | 65 | <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> |
66 | <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 | 67 | <td></td> |
68 | </tr> |
||
69 | </logic:iterate> |
||
1147 | jmachado | 70 | </tbody> |
206 | jmachado | 71 | </table> |
72 | <p class="pages"> |
||
73 | <bean:message key="search.pages"/>: |
||
74 | <logic:equal value="true" name="ISearchResults" property="hasPreviousPage"> |
||
75 | <a href="<%=request.getContextPath()%>/user/startSearchCourseUnitAdminFromServiceZone.do?page=${ISearchResults.previousPage}&textToSearch=${ISearchResults.query}&searchType=${ISearchResults.searchType}"> |
||
76 | < |
||
77 | <bean:message key="result.previous"/> |
||
78 | </a> |
||
79 | </logic:equal> |
||
80 | ${ISearchResults.page2Screen} |
||
81 | <logic:equal value="true" name="ISearchResults" property="hasNextPage"> |
||
82 | <a href="<%=request.getContextPath()%>/user/startSearchCourseUnitAdminFromServiceZone.do?page=${ISearchResults.nextPage}&textToSearch=${ISearchResults.query}&searchType=${ISearchResults.searchType}"> |
||
83 | <bean:message key="result.next"/> |
||
84 | ></a> |
||
85 | </logic:equal> |
||
86 | </p> |
||
87 | </logic:present> |