Further work on statistics display
[jabaws.git] / statpages / MonthlySummary.jsp
1 <%--\r
2 Author: Peter Troshin\r
3 Date: May 2011\r
4 --%>\r
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>\r
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>\r
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>\r
8 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>\r
9 \r
10 <jsp:include page="header.jsp" />\r
11 \r
12 <h1>JABAWS Usage Statistics</h1>\r
13 <table class="center its" style="width: 600px "> \r
14 <thead>\r
15 <tr>\r
16 <th rowspan="2">Month</th>\r
17 <th colspan="4" style="text-align: center">Number of Jobs</th>\r
18 </tr>\r
19 <tr>\r
20 <th title="Total number of jobs received">Total</th>\r
21 <th title="The number of jobs with no result">Incomplete</th>\r
22 <th title="The number of cancelled jobs">Cancelled</th>\r
23 <th title="The number of jobs started but not collected by the user">Abandoned</th>\r
24 </tr>\r
25 </thead>\r
26 <tbody>\r
27 \r
28 <c:forEach items="${stat}" var="monthTotal" varStatus="status">\r
29 <c:choose>\r
30         <c:when test="${status.count%2==0}">\r
31                 <tr class="even">\r
32         </c:when>\r
33         <c:otherwise>\r
34                 <tr class="odd">\r
35         </c:otherwise>\r
36 </c:choose>\r
37 \r
38 <td><a title="Click to view the detailed statistics for the period" href="DisplayStat?datetime=${monthTotal.key.time}"><fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/></a></td>\r
39 <td>${monthTotal.value.total}</td>\r
40 <td>${monthTotal.value.incomplete}</td>\r
41 <td>${monthTotal.value.cancelled}</td>\r
42 <td>${monthTotal.value.abandoned}</td>\r
43 </tr>\r
44 </c:forEach>\r
45 <tr>\r
46 <td>Total:</td>\r
47 <td>${total.total}</td>\r
48 <td>${total.incomplete}</td>\r
49 <td>${total.cancelled}</td>\r
50 <td>${total.abandoned}</td>\r
51 </tr>\r
52 </tbody>\r
53 </table>\r
54 \r
55 \r
56 <jsp:include page="footer.jsp" />