Rev 1327 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1327 | jmachado | 1 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.CourseUnit" %> |
||
3 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
||
4 | <%@ page import="java.util.List" %> |
||
5 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
10 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
11 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
12 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
13 | <% |
||
14 | long courseId = Long.parseLong(request.getParameter("courseId")); |
||
15 | String importYear = request.getParameter("importYear"); |
||
16 | |||
17 | AbstractDao.getCurrentSession().beginTransaction(); |
||
18 | List<CourseUnit> courseUnits = DaoFactory.getCourseUnitDaoImpl().loadByCourse(courseId,importYear); |
||
19 | request.setAttribute("courseUnits",courseUnits); |
||
20 | %> |
||
21 | <table class="tablesorterfiltered"> |
||
22 | <thead> |
||
23 | <tr> |
||
24 | <th>Codigo</th> |
||
25 | <th>Nome</th> |
||
26 | <th class="filter-name filter-select">Semestre</th> |
||
27 | <th>Curso</th> |
||
28 | <th>Codigo Curso</th> |
||
29 | <th>Turmas</th> |
||
30 | </tr> |
||
31 | </thead> |
||
32 | <tbody> |
||
33 | <logic:iterate id="courseUnit" name="courseUnits" type="pt.estgp.estgweb.domain.CourseUnit"> |
||
34 | <tr> |
||
35 | <td>${courseUnit.code}</td> |
||
36 | <td><a target="_blank" href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnit.id}">${courseUnit.name}</a></td> |
||
37 | <td>${courseUnit.semestre}</td> |
||
38 | <td>${courseUnit.courseName}</td> |
||
39 | <td>${courseUnit.courseCode}</td> |
||
40 | <td> |
||
1346 | jmachado | 41 | <a class="reloadAjaxRequestModal" href="#" data-href="<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/listCunitTurmas.jsp?courseUnitId=${courseUnit.id}" data-title="Turmas da Unidade ${courseUnit.name} (${courseUnit.code}) do curso de ${courseUnit.courseName} (${courseUnit.courseCode})"> |
1327 | jmachado | 42 | <%=courseUnit.getTurmas().size()%> |
43 | </a> |
||
44 | </td> |
||
45 | </tr> |
||
46 | </logic:iterate> |
||
47 | </tbody> |
||
48 | </table> |
||
49 | <% |
||
50 | AbstractDao.getCurrentSession().getTransaction().commit(); |
||
51 | %> |