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