Rev 1412 | Rev 1423 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1412 | Rev 1413 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
16 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
17 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSessionImpl" scope="request"/> |
17 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSessionImpl" scope="request"/> |
18 | 18 | ||
19 | <% |
19 | <% |
20 | String questionarioIdStr = request.getParameter("questionarioId"); |
20 | String questionarioIdStr = request.getParameter("questionarioId"); |
- | 21 | if(questionarioIdStr == null) |
|
- | 22 | questionarioIdStr = (String) request.getAttribute("questionarioId"); |
|
- | 23 | if(questionarioIdStr == null) |
|
- | 24 | { |
|
- | 25 | if(request.getAttribute("Questionario")!=null) |
|
- | 26 | { |
|
- | 27 | Questionario quest = (Questionario) request.getAttribute("Questionario"); |
|
- | 28 | questionarioIdStr = quest.getId() + ""; |
|
- | 29 | } |
|
- | 30 | } |
|
- | 31 | ||
21 | long questionarioId = Long.parseLong(questionarioIdStr); |
32 | long questionarioId = Long.parseLong(questionarioIdStr); |
22 | 33 | ||
23 | AbstractDao.getCurrentSession().beginTransaction(); |
34 | AbstractDao.getCurrentSession().beginTransaction(); |
24 | 35 | ||
25 | QuestionarioImpl questionario = (QuestionarioImpl) DaoFactory.getQuestionarioDaoImpl().load(questionarioId); |
36 | QuestionarioImpl questionario = (QuestionarioImpl) DaoFactory.getQuestionarioDaoImpl().load(questionarioId); |
Line 41... | Line 52... | ||
41 | </div> |
52 | </div> |
42 | <div class="col-sm-6"> |
53 | <div class="col-sm-6"> |
43 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_STOP_PROCESSEMENT"> |
54 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_STOP_PROCESSEMENT"> |
44 | <button class="btn btn-danger" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="Esta operação irá parar o questionário e os alunos não poderão responder!! Tem a certeza que deseja prosseguir?" data-href="<%=request.getContextPath()%>/user/questionariosPaeYearSemestre.do?dispatch=stopProcessement&questionarioId=${Questionario.id}"><span class="icon icon-stop"> </span> Parar Questionário</button> |
55 | <button class="btn btn-danger" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="Esta operação irá parar o questionário e os alunos não poderão responder!! Tem a certeza que deseja prosseguir?" data-href="<%=request.getContextPath()%>/user/questionariosPaeYearSemestre.do?dispatch=stopProcessement&questionarioId=${Questionario.id}"><span class="icon icon-stop"> </span> Parar Questionário</button> |
45 | </baco:clearOperation> |
56 | </baco:clearOperation> |
- | 57 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_START_PROCESSEMENT"> |
|
- | 58 | <button class="btn btn-success" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="Esta operação irá abrir o questionário para os alunos!! Tem a certeza que deseja prosseguir?" data-href="<%=request.getContextPath()%>/user/questionariosPaeYearSemestre.do?dispatch=startProcessement&questionarioId=${Questionario.id}"><span class="icon icon-play"> </span> Iniciar Questionário</button> |
|
- | 59 | </baco:clearOperation> |
|
46 | </div> |
60 | </div> |
47 | <div class="col-sm-12"> |
61 | <div class="col-sm-12"> |
48 | <table class="tablesorter-blue"> |
62 | <table class="tablesorter-blue"> |
49 | <thead> |
63 | <thead> |
50 | <th>Cursos Selecionados</th> |
64 | <th>Cursos Selecionados</th> |