Rev 1312 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1255 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.services.common.IToDoCat" %> |
2 | <%@ page import="java.util.List" %> |
||
3 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
||
4 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
||
5 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
||
6 | <%@ page import="jomm.utils.MessageResources" %> |
||
7 | <%@ page import="pt.estgp.estgweb.services.common.IToDo" %> |
||
8 | <%@ page import="pt.estgp.estgweb.services.common.ModuleEnum" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
10 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
11 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
12 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
13 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
14 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
15 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
16 | <%-- |
||
17 | Created by IntelliJ IDEA. |
||
18 | User: Jorge |
||
19 | Date: 2/Jun/2008 |
||
20 | Time: 16:01:47 |
||
21 | To change this template use File | Settings | File Templates. |
||
22 | --%> |
||
23 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
24 | |||
25 | <% |
||
26 | |||
27 | IServiceManager sm = ServiceManager.getInstance(); |
||
28 | String[] names = new String[]{}; |
||
29 | Object[] args = new Object[]{}; |
||
30 | |||
31 | List<IToDoCat> todos = (List<IToDoCat>) sm.execute(RequestUtils.getRequester(request, response), "CommonServicesGetAllTodosCat", args, names); |
||
32 | %> |
||
33 | |||
34 | |||
35 | |||
1312 | jmachado | 36 | <% |
1255 | jmachado | 37 | for (IToDoCat toDoCat : todos) |
38 | { |
||
1312 | jmachado | 39 | if (toDoCat.getDescription().equals(ModuleEnum.TodoAnnouncements.getMessageKey()) || toDoCat.getDescription().equals(ModuleEnum.Assessments.getMessageKey())) |
1255 | jmachado | 40 | { |
41 | |||
42 | %> |
||
43 | <div class="row"> |
||
1256 | jmachado | 44 | <div class="col-md-12 col-sm-12 col-xs-12"> |
1255 | jmachado | 45 | <div class="panel panel-primary"> |
46 | <div class="panel-heading"><bean:message key="intranet.todo"/></div> |
||
47 | <div class="panel-body"> |
||
48 | |||
49 | <div class="list-group"> |
||
1312 | jmachado | 50 | <div class="list-group-item list-group-item-warning"> |
51 | <strong><%=MessageResources.getMessage(request, toDoCat.getDescription())%> (<%=toDoCat.getTotalToDo()%>)</strong> |
||
1255 | jmachado | 52 | </div> |
53 | |||
54 | <% |
||
55 | for (IToDo todo : toDoCat.getAllToDos()) |
||
56 | { |
||
57 | %> |
||
58 | <div class="list-group-item"> |
||
59 | <% |
||
60 | if (todo.getUrl() != null) |
||
61 | { |
||
62 | %> |
||
63 | |||
64 | <a href="<%=request.getContextPath() + todo.getUrl()%>"> |
||
65 | <% |
||
66 | if(todo.getCatArg0() == null && todo.getCatKey() != null) |
||
67 | { |
||
68 | out.print(MessageResources.getMessage(request,todo.getCatKey()) + ":"); |
||
69 | } |
||
70 | else if(todo.getCatArg0() != null && todo.getCatKey() != null) |
||
71 | { |
||
72 | out.print(MessageResources.getMessage(request,todo.getCatKey(),todo.getCatArg0()) + ":"); |
||
73 | } |
||
74 | %> |
||
1465 | jmachado | 75 | <%=todo.getDescription()%> |
1255 | jmachado | 76 | </a> |
1256 | jmachado | 77 | <img src="<%=request.getContextPath()%>/imgs/preencher.gif" width="35px"/> |
1255 | jmachado | 78 | <% |
79 | } |
||
80 | else |
||
81 | { |
||
1256 | jmachado | 82 | %> |
83 | <%=todo.getLabelInsideCat(request)%> |
||
84 | <% |
||
1255 | jmachado | 85 | } |
86 | %> |
||
1256 | jmachado | 87 | </div> |
88 | <% |
||
89 | } |
||
90 | %> |
||
1255 | jmachado | 91 | </div> |
92 | </div> |
||
93 | </div> |
||
94 | </div> |
||
1256 | jmachado | 95 | </div> |
1255 | jmachado | 96 | |
97 | <% |
||
98 | } |
||
99 | } |
||
100 | %> |