Rev 1353 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="pt.estgp.estgweb.domain.CourseUnit" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.web.utils.DatesUtils" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<jsp:useBean id="CourseUnitView" type="pt.estgp.estgweb.domain.views.CourseUnitView" scope="request"/>
<baco:clearOperation name="CourseUnitView" property="courseUnit" op="STATISTICS_CAN_VIEW">
<%
long courseUnitId = CourseUnitView.getId();
AbstractDao.getCurrentSession().beginTransaction();
CourseUnit cu = DaoFactory.getCourseUnitDaoImpl().load(courseUnitId);
request.setAttribute("cu",cu);
%>
<div class="panel panel-default">
<div class="panel-heading"><span class="glyphicon glyphicon-stats"></span> <bean:message key="course.unit.stats"/> Visiveis apenas aos Docentes da unidade e à Comissão de Curso</div>
<div class="panel-body">
(dados atualizados a cada 24 horas)
<h3>Gerais</h3>
<table class="tablesorter-blue">
<tbody>
<tr>
<th>Anúncios</th>
<td>${cu.statanuncios}</td>
</tr>
<tr>
<th>Posts no Blog</th>
<td>${cu.statblogPosts}</td>
</tr>
<tr>
<th>Estudantes</th>
<td>${cu.statstudentsCount}</td>
</tr>
<tr>
<th>Docentes</th>
<td>${cu.statteachersCount}</td>
</tr>
<tr>
<th>Trabalhos</th>
<td>${cu.statworks}</td>
</tr>
</tbody>
</table>
<h3>Ficheiros</h3>
<table class="tablesorter-blue">
<tbody>
<tr>
<th>Ficheiros de Conteúdos</th>
<td>${cu.statcontentsFiles}</td>
</tr>
<tr>
<th>Pastas de Conteúdos</th>
<td>${cu.statcontentsFolders}</td>
</tr>
<tr>
<th>Tamanho Total</th>
<td><%=cu.getStatcontentsSize()/1024/1024%> MB</td>
</tr>
<tr>
<th>Última atualização</th>
<td><%=DatesUtils.getStringFromDateWithMinutesAndSeconds(cu.getStatcontentsLastUpdate())%></td>
</tr>
</tbody>
</table>
<h3>Dossier Técnico Pedagógico</h3>
<table class="tablesorter-blue">
<tbody>
<tr>
<th>Planeamento</th>
<td>${cu.statdtpPlaneamentoFiles}</td>
<td> (alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpPlaneamentoLastUpdate())%>)</td>
</tr>
<tr>
<th>Ficha de Avaliação</th>
<td><%=cu.isStatdtpFichaCurricularValid()?"Válido":"Inválido"%></td>
<td> (alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpFichaCurricularLastUpdate())%>)</td>
</tr>
<tr>
<th>Sumários Lançados</th>
<td>${cu.statdtpSumaries}</td>
<td></td>
</tr>
<tr>
<th>Sumários Pre-Lançados</th>
<td>${cu.statdtpSumariesPrelancados}</td>
<td></td>
</tr>
<tr>
<th>Sumários em falta</th>
<td>${cu.statdtpSumariesMissing}</td>
<td></td>
</tr>
<tr>
<th>Pautas de Avaliação</th>
<td>${cu.statdtpAvaliacaoPautasFiles} </td>
<td>(alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpAvaliacaoPautasLastUpdate())%>)</td>
</tr>
<tr>
<th>Enunciados de Avaliação</th>
<td>${cu.statdtpAvaliacaoEnunciadosFiles} </td>
<td>(alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpAvaliacaoEnunciadosLastUpdate())%></td>
</tr>
<tr>
<th>Relatório de Avaliação</th>
<td>${cu.statdtpEvaluationReportState}</td>
<td> ( alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpEvaluationReportLastUpdate())%></td>
</tr>
<tr>
<th>Inquerito Pedagógico Ficheiros</th>
<td>${cu.statdtpInqueritoPedagogicoFiles}</td>
<td> ( alterado a <%=DatesUtils.getStringFromDate(cu.getStatdtpInqueritoPedagogicoFilesLastUpdate())%></td>
</tr>
</tbody>
</table>
</div>
</div>
<%
AbstractDao.getCurrentSession().getTransaction().commit();
%>
</baco:clearOperation>
Generated by GNU Enscript 1.6.5.2.