Subversion Repositories bacoAlunos

Rev

Rev 1312 | Rev 1464 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1312 Rev 1463
Line 28... Line 28...
28
    IServiceManager sm = ServiceManager.getInstance();
28
    IServiceManager sm = ServiceManager.getInstance();
29
    String[] names = new String[]{};
29
    String[] names = new String[]{};
30
    Object[] args = new Object[]{};
30
    Object[] args = new Object[]{};
31
 
31
 
32
    List<IToDoCat> todos = (List<IToDoCat>) sm.execute(RequestUtils.getRequester(request, response), "CommonServicesGetAllTodosCat", args, names);
32
    List<IToDoCat> todos = (List<IToDoCat>) sm.execute(RequestUtils.getRequester(request, response), "CommonServicesGetAllTodosCat", args, names);
-
 
33
    if (todos == null || todos.size() == 0)
-
 
34
    {
33
%>
35
%>
34
 
36
 
35
 
37
 
36
<div class="panel panel-primary">
38
<div class="panel panel-primary">
37
    <div class="panel-heading"><bean:message key="intranet.todo"/></div>
39
    <div class="panel-heading"><bean:message key="intranet.todo"/></div>
38
    <div class="panel-body">
40
    <div class="panel-body">
39
 
41
 
40
 
42
 
41
 
43
 
42
    <%
-
 
43
        if (todos == null || todos.size() == 0)
-
 
44
        {
-
 
45
    %>
-
 
46
    <div class="zerofound">
-
 
47
        <bean:message key="todo.zero.todos"/>
-
 
48
    </div>
-
 
49
    <%
-
 
50
    }
44
 
51
    else
-
 
52
    {
-
 
53
    %>
-
 
54
 
45
 
55
        <%
46
        <%
56
            for (IToDoCat toDoCat : todos)
47
            for (IToDoCat toDoCat : todos)
57
            {
48
            {
58
                String imgClose;
49
                String imgClose;
Line 97... Line 88...
97
                    imgClose = "/imgs/closedbox.gif";
88
                    imgClose = "/imgs/closedbox.gif";
98
                    imgOpen = "/imgs/openedbox.gif";
89
                    imgOpen = "/imgs/openedbox.gif";
99
                }
90
                }
100
        %>
91
        %>
101
 
92
 
102
            <div class="panel-body-h1 <%=styleClass%>">
93
            <div class="list-group">
103
                <%=MessageResources.getMessage(request, toDoCat.getDescription())%> (<%=toDoCat.getTotalToDo()%>) <img alt="abrir" src="<%=request.getContextPath() + img%>" onclick="this.src=showOrHide('<%=toDoCat.getDescription()%>','<%=request.getContextPath() + imgClose%>','<%=request.getContextPath() + imgOpen%>')" >
94
                <div class="list-group-item-heading"><%=MessageResources.getMessage(request, toDoCat.getDescription())%> (<%=toDoCat.getTotalToDo()%>) <img alt="abrir" src="<%=request.getContextPath() + img%>" onclick="this.src=showOrHide('<%=toDoCat.getDescription()%>','<%=request.getContextPath() + imgClose%>','<%=request.getContextPath() + imgOpen%>')" ></div>
104
            </div>
95
            </div>
105
 
96
 
-
 
97
 
106
 
98
 
107
 
99
 
108
            <ul id="<%=toDoCat.getDescription()%>" style="<%=style%>">
100
            <%--<ul id="<%=toDoCat.getDescription()%>" style="<%=style%>">--%>
109
	       <%
101
	       <%
110
                    for (IToDo todo : toDoCat.getAllToDos())
102
                    for (IToDo todo : toDoCat.getAllToDos())
111
                    {
103
                    {
112
 
104
 
113
                        if (todo.getUrl() != null)
105
                        if (todo.getUrl() != null)
114
                        {
106
                        {
115
                %>
107
                %>
116
                <li>
108
                <div class="list-group-item">
-
 
109
 
117
                    <a href="<%=request.getContextPath() + todo.getUrl()%>">
110
                    <a href="<%=request.getContextPath() + todo.getUrl()%>">
118
                        <font class="<%=styleClass%>">
-
 
-
 
111
 
119
                            <%
112
                            <%
120
                                if(todo.getCatArg0() == null && todo.getCatKey() != null)
113
                                if(todo.getCatArg0() == null && todo.getCatKey() != null)
121
                                {
114
                                {
122
                                    out.print(MessageResources.getMessage(request,todo.getCatKey()) + ":");
115
                                    out.print(MessageResources.getMessage(request,todo.getCatKey()) + ":");
123
                                }
116
                                }
Line 126... Line 119...
126
                                    out.print(MessageResources.getMessage(request,todo.getCatKey(),todo.getCatArg0()) + ":");
119
                                    out.print(MessageResources.getMessage(request,todo.getCatKey(),todo.getCatArg0()) + ":");
127
                                }
120
                                }
128
 
121
 
129
                            %>
122
                            %>
130
                            <%=todo.getLabelInsideCat(request)%>
123
                            <%=todo.getLabelInsideCat(request)%>
131
                        </font>
-
 
-
 
124
 
132
                    </a>
125
                    </a>
133
 
126
 
134
                </li>
127
                </div>
135
                <%
128
                <%
136
                }
129
                }
137
                else
130
                else
138
                {
131
                {
139
                %>
132
                %>
140
                <li>
133
                <div class="list-group-item">
141
                    <%=todo.getLabelInsideCat(request)%>
134
                    <%=todo.getLabelInsideCat(request)%>
142
                </li>
135
                </div>
143
                <%
136
                <%
144
                        }
137
                        }
145
                    }
138
                    }
146
                %>
139
                %>
-
 
140
 
-
 
141
 
147
            </ul>
142
            </div>
148
 
143
 
149
        <%
144
        <%
150
            }
145
            }
151
        %>
146
        %>
152
 
147
 
153
    <%
-
 
154
        }
-
 
155
    %>
-
 
156
    </div>
148
    </div>
157
</div>
149
</div>
-
 
150
<%
-
 
151
    }
-
 
152
%>
158
153