JWS-111 & JWS-109 Re-uploading improved ‘Service Status’ and ‘Usage Statistics’ pages...
[jabaws.git] / website / statpages / StatisticsTable.jsp
1 <%--
2 Author: Peter Troshin
3 Date: May 2011
4 --%>
5
6 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
8 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
9 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
10
11
12 <table class="its" style="width:600px ">
13         <thead>
14         <tr>
15                 <th rowspan="2">Web Service</th>
16                 <th colspan="4" style="text-align: center">Number of Jobs</th>
17         </tr>
18         <tr>
19                 <th title="Total number of jobs received">Total</th>
20                 <th title="The number of jobs with no result">Incomplete</th>
21                 <th title="The number of cancelled jobs">Cancelled</th>
22                 <th title="The number of jobs started but not collected by the user">Abandoned</th>
23         </tr>
24         </thead>
25         <tbody>
26
27         <c:forEach items="${statistics}" var="ws" varStatus="status">
28                 <c:choose>
29                         <c:when test="${status.count%2==0}">
30                                 <tr class="even">
31                         </c:when>
32                         <c:otherwise>
33                                 <tr class="odd">
34                         </c:otherwise>
35                 </c:choose>
36
37                 <td>${ws.key}</td>
38                 <td><a title="Click to view jobs" href="Joblist?ws=${ws.key}&where=${where}&type=all&from=${startDate.time}&to=${stopDate.time}">${ws.value.jobNumber}</a></td>
39                 <td><a title="Click to view jobs" href="Joblist?ws=${ws.key}&where=${where}&type=incomplete&from=${startDate.time}&to=${stopDate.time}">${fn:length(ws.value.incompleteJobs)}</a></td>
40                 <td><a title="Click to view jobs" href="Joblist?ws=${ws.key}&where=${where}&type=cancelled&from=${startDate.time}&to=${stopDate.time}">${fn:length(ws.value.cancelledJobs)}</a></td>
41                 <td><a title="Click to view jobs" href="Joblist?ws=${ws.key}&where=${where}&type=abandoned&from=${startDate.time}&to=${stopDate.time}">${fn:length(ws.value.abandonedJobs)}</a></td>
42                 </tr>
43         </c:forEach>
44
45         <tr style="font-weight: bolder;">
46                 <td>Total:</td>
47                 <td>${totals.total}</td>
48                 <td>${totals.incomplete}</td>
49                 <td>${totals.cancelled}</td>
50                 <td>${totals.abandoned}</td>
51         </tr>
52         </tbody>
53 </table>
54 <c:remove var="statistics"/>
55 <c:remove var="totals"/>