Rev 562 | Rev 787 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
204 | jmachado | 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
9 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/> |
||
10 | <div class="portal"> |
||
432 | jmachado | 11 | <logic:notMatch value="TeacherImpl" name="UserSession" property="user.class.name"> |
301 | jmachado | 12 | <ul> |
13 | <li class="WARNING"> |
||
432 | jmachado | 14 | <bean:message key="profile.bad.profile.teacher.iregular.user.class"/> |
301 | jmachado | 15 | </li> |
16 | </ul> |
||
432 | jmachado | 17 | </logic:notMatch> |
204 | jmachado | 18 | <table class="columnTable" width="100%"> |
19 | <tbody> |
||
20 | <tr> |
||
215 | jmachado | 21 | <baco:isModuleOn module="courseunits"> |
22 | <td class="column"> |
||
23 | <div class="block"> |
||
24 | <p><bean:message key="intranet.course.units"/></p> |
||
25 | <ul> |
||
262 | jmachado | 26 | <li> |
27 | <p><bean:message key="courseunit.semestre"/> 1</p> |
||
266 | jmachado | 28 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewS1"> |
301 | jmachado | 29 | <logic:empty name="UserSession" property="user.teachedUnitsCurrentYearViewS1"> |
30 | <bean:message key="courseunit.zero.units"/> |
||
31 | </logic:empty> |
||
32 | </logic:present> |
||
33 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewS1"> |
||
266 | jmachado | 34 | <logic:notEmpty name="UserSession" property="user.teachedUnitsCurrentYearViewS1"> |
35 | <ul> |
||
36 | <logic:iterate id="unit" name="UserSession" property="user.teachedUnitsCurrentYearViewS1" type="pt.estgp.estgweb.domain.CourseUnit"> |
||
37 | <li> |
||
550 | jmachado | 38 | <% |
39 | String courseCode = ""; |
||
40 | if(unit.getCourse() != null) |
||
41 | { |
||
42 | String courseName = unit.getCourse().getName(); |
||
43 | String[] words = courseName.split(" "); |
||
44 | for(String word: words) |
||
45 | { |
||
46 | if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' ) |
||
47 | { |
||
48 | courseCode += word.charAt(0); |
||
49 | } |
||
50 | } |
||
51 | } |
||
52 | |||
53 | %> |
||
562 | jmachado | 54 | <html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link> |
55 | <html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"><img border="0" alt="Pastas" src="<%=request.getContextPath()%>/imgs/folder.gif"></html:link> |
||
266 | jmachado | 56 | </li> |
262 | jmachado | 57 | </logic:iterate> |
266 | jmachado | 58 | </ul> |
59 | </logic:notEmpty> |
||
60 | </logic:present> |
||
262 | jmachado | 61 | </li> |
62 | <li> |
||
63 | <p><bean:message key="courseunit.semestre"/> 2</p> |
||
266 | jmachado | 64 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewS2"> |
301 | jmachado | 65 | <logic:empty name="UserSession" property="user.teachedUnitsCurrentYearViewS2"> |
66 | <bean:message key="courseunit.zero.units"/> |
||
67 | </logic:empty> |
||
68 | </logic:present> |
||
69 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewS2"> |
||
266 | jmachado | 70 | <logic:notEmpty name="UserSession" property="user.teachedUnitsCurrentYearViewS2"> |
71 | <ul> |
||
72 | <logic:iterate id="unit" name="UserSession" property="user.teachedUnitsCurrentYearViewS2" type="pt.estgp.estgweb.domain.CourseUnit"> |
||
73 | <li> |
||
550 | jmachado | 74 | <% |
75 | String courseCode = ""; |
||
76 | if(unit.getCourse() != null) |
||
77 | { |
||
78 | String courseName = unit.getCourse().getName(); |
||
79 | String[] words = courseName.split(" "); |
||
80 | for(String word: words) |
||
81 | { |
||
82 | if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' ) |
||
83 | { |
||
84 | courseCode += word.charAt(0); |
||
85 | } |
||
86 | } |
||
87 | } |
||
88 | |||
89 | %> |
||
562 | jmachado | 90 | <html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link> |
91 | <html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"><img border="0" alt="Pastas" src="<%=request.getContextPath()%>/imgs/folder.gif"></html:link> |
||
266 | jmachado | 92 | </li> |
262 | jmachado | 93 | </logic:iterate> |
266 | jmachado | 94 | </ul> |
95 | </logic:notEmpty> |
||
96 | </logic:present> |
||
262 | jmachado | 97 | </li> |
728 | jmachado | 98 | <li> |
99 | <p><bean:message key="courseunit.semestre"/> (Anual)</p> |
||
100 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewA"> |
||
101 | <logic:empty name="UserSession" property="user.teachedUnitsCurrentYearViewA"> |
||
102 | <bean:message key="courseunit.zero.units"/> |
||
103 | </logic:empty> |
||
104 | </logic:present> |
||
105 | <logic:present name="UserSession" property="user.teachedUnitsCurrentYearViewA"> |
||
106 | <logic:notEmpty name="UserSession" property="user.teachedUnitsCurrentYearViewA"> |
||
107 | <ul> |
||
108 | <logic:iterate id="unit" name="UserSession" property="user.teachedUnitsCurrentYearViewA" type="pt.estgp.estgweb.domain.CourseUnit"> |
||
109 | <li> |
||
110 | <% |
||
111 | String courseCode = ""; |
||
112 | if(unit.getCourse() != null) |
||
113 | { |
||
114 | String courseName = unit.getCourse().getName(); |
||
115 | String[] words = courseName.split(" "); |
||
116 | for(String word: words) |
||
117 | { |
||
118 | if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' ) |
||
119 | { |
||
120 | courseCode += word.charAt(0); |
||
121 | } |
||
122 | } |
||
123 | } |
||
124 | |||
125 | %> |
||
126 | <html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link> |
||
127 | <html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"><img border="0" alt="Pastas" src="<%=request.getContextPath()%>/imgs/folder.gif"></html:link> |
||
128 | </li> |
||
129 | </logic:iterate> |
||
130 | </ul> |
||
131 | </logic:notEmpty> |
||
132 | </logic:present> |
||
133 | </li> |
||
215 | jmachado | 134 | </ul> |
135 | </div> |
||
376 | jmachado | 136 | <div class="block"> |
137 | <p><bean:message key="intranet.home.curricular"/></p> |
||
138 | <ul> |
||
139 | <li> |
||
140 | <html:link action="/user/startLoadCoursesProgramsFromHome"><bean:message key="courseunit.programs"/></html:link> |
||
141 | </li> |
||
142 | </ul> |
||
143 | </div> |
||
215 | jmachado | 144 | </td> |
145 | </baco:isModuleOn> |
||
204 | jmachado | 146 | <td class="column"> |
215 | jmachado | 147 | <baco:isModuleOn module="courseunits"> |
148 | <jsp:include page="/user/home/courseUnitsAnnouncements.jsp"/> |
||
149 | </baco:isModuleOn> |
||
150 | <baco:isModuleOn module="todos"> |
||
151 | <jsp:include page="/user/home/todos.jsp"/> |
||
152 | </baco:isModuleOn> |
||
204 | jmachado | 153 | </td> |
154 | </tr> |
||
155 | </tbody> |
||
156 | </table> |
||
157 | </div> |