JWS-96 - first working version of the crawler
[jabaws.git] / statpages / MonthlySummary.jsp
1 <%--\r
2 Author: Peter Troshin\r
3 Date: May 2011\r
4 --%>\r
5 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>\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 <c:import url="header.jsp" >\r
11         <c:param name="title">JABAWS Usage Statistics</c:param>\r
12 </c:import>  \r
13 \r
14 <div style="margin: 20px ">  \r
15 \r
16 <h1>JABAWS Usage Statistics</h1>\r
17 \r
18 <ul style="font-weight: bold;">\r
19         <li>Server: <a href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}">\r
20         ${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}\r
21         </a> </li>\r
22         <li>Time of execusion: ${timeexec} msec</li>\r
23 </ul>\r
24 \r
25 <table class="center its" style="width: 600px "> \r
26 <thead>\r
27 <tr>\r
28 <th rowspan="2">Month</th>\r
29 <th colspan="4" style="text-align: center">Number of Jobs</th>\r
30 </tr>\r
31 <tr>\r
32 <th title="Total number of jobs received">Total</th>\r
33 <th title="The number of jobs with no result">Incomplete</th>\r
34 <th title="The number of cancelled jobs">Cancelled</th>\r
35 <th title="The number of jobs started but not collected by the user">Abandoned</th>\r
36 </tr>\r
37 </thead>\r
38 <tbody>\r
39 \r
40 <c:forEach items="${stat}" var="monthTotal" varStatus="status">\r
41 <c:choose>\r
42         <c:when test="${status.count%2==0}">\r
43                 <tr class="even">\r
44         </c:when>\r
45         <c:otherwise>\r
46                 <tr class="odd">\r
47         </c:otherwise>\r
48 </c:choose>\r
49 \r
50 <td>\r
51 <c:choose>\r
52 <c:when test="${isAdmin}">\r
53   <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>\r
54 </c:when>\r
55 <c:otherwise>\r
56    <fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/>\r
57 </c:otherwise>\r
58 </c:choose>\r
59 \r
60 </td>\r
61 <td>${monthTotal.value.total}</td>\r
62 <td>${monthTotal.value.incomplete}</td>\r
63 <td>${monthTotal.value.cancelled}</td>\r
64 <td>${monthTotal.value.abandoned}</td>\r
65 </tr>\r
66 </c:forEach>\r
67 <tr style="font-weight: bolder;">\r
68 <td>Total:</td>\r
69 <td>${total.total}</td>\r
70 <td>${total.incomplete}</td>\r
71 <td>${total.cancelled}</td>\r
72 <td>${total.abandoned}</td>\r
73 </tr>\r
74 </tbody>\r
75 </table>\r
76 \r
77 <div style="width: 600px">\r
78 <h3>Help</h3>\r
79 <p>\r
80 The table contains the number of jobs processed by JABAWS per month, for the whole \r
81 period when the statistics was collected</p> \r
82 For each month the table contains the following information.  \r
83 <ul>\r
84         <li>The period of time for which statistics is displayed. For example Jan 2011 means period of time from the first of \r
85         January to the 31 of January.</li>\r
86         <li>Total - the total number of jobs accepted by JABAWS</li>\r
87         <li>Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled</li>\r
88         <li>Cancelled - the number of jobs cancelled by the user</li>\r
89         <li>Abandoned - the number of jobs which result(s) were not collected</li>\r
90 </ul>\r
91 The summary for each column is displayed in the last row of the table.\r
92 </div> <!-- Help text enclosing dev end -->\r
93 <c:if test="${!isAdmin}">\r
94 <br/><p><a href="AnnualStat">Please login as administrator</a> to view the detailed statistics (<a href=man_stats.html#helpUsageStats>help</a>)</p>\r
95 </c:if>\r
96 \r
97 </div> <!-- page enclosing div end -->\r
98 <jsp:include page="footer.jsp" />