A bug fix, help text for stat jsp pages and style improvements
[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 <div style="margin: 20px ">  \r
13 \r
14 <h1>JABAWS Usage Statistics</h1>\r
15 <table class="center its" style="width: 600px "> \r
16 <thead>\r
17 <tr>\r
18 <th rowspan="2">Month</th>\r
19 <th colspan="4" style="text-align: center">Number of Jobs</th>\r
20 </tr>\r
21 <tr>\r
22 <th title="Total number of jobs received">Total</th>\r
23 <th title="The number of jobs with no result">Incomplete</th>\r
24 <th title="The number of cancelled jobs">Cancelled</th>\r
25 <th title="The number of jobs started but not collected by the user">Abandoned</th>\r
26 </tr>\r
27 </thead>\r
28 <tbody>\r
29 \r
30 <c:forEach items="${stat}" var="monthTotal" varStatus="status">\r
31 <c:choose>\r
32         <c:when test="${status.count%2==0}">\r
33                 <tr class="even">\r
34         </c:when>\r
35         <c:otherwise>\r
36                 <tr class="odd">\r
37         </c:otherwise>\r
38 </c:choose>\r
39 \r
40 <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
41 <td>${monthTotal.value.total}</td>\r
42 <td>${monthTotal.value.incomplete}</td>\r
43 <td>${monthTotal.value.cancelled}</td>\r
44 <td>${monthTotal.value.abandoned}</td>\r
45 </tr>\r
46 </c:forEach>\r
47 <tr style="font-weight: bolder;">\r
48 <td>Total:</td>\r
49 <td>${total.total}</td>\r
50 <td>${total.incomplete}</td>\r
51 <td>${total.cancelled}</td>\r
52 <td>${total.abandoned}</td>\r
53 </tr>\r
54 </tbody>\r
55 </table>\r
56 \r
57 <div style="width: 600px">\r
58 <h3>Help</h3>\r
59 <p>\r
60 The table contains the number of jobs processed by JABAWS per month, for the whole \r
61 period when the statistics was collected</p> \r
62 For each month the table contains the following information.  \r
63 <ul>\r
64         <li>The period of time for which statistics is displayed. For example Jan 2011 means period of time from the first of \r
65         January to the 31 of January.</li>\r
66         <li>Total - the total number of jobs accepted by JABAWS</li>\r
67         <li>Incomplete - the number of jobs for which the result file was not found or was empty</li>\r
68         <li>Cancelled - the number of jobs cancelled by the user</li>\r
69         <li>Abandoned - the number of jobs which result(s) were not collected</li>\r
70 </ul>\r
71 The summary for each column is displayed in the last row of the table.\r
72 </div> <!-- Help text enclosing dev end -->\r
73 </div> <!-- page enclosing div end -->\r
74 <jsp:include page="footer.jsp" />