1 <%@page import="java.util.ArrayList"%>
2 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 <%@ taglib uri="http://displaytag.sf.net" prefix="dt"%>
7 <c:when test="${flag == 'AllDate'}">
8 <h3>Jobs statistics for the whole period</h3>
12 Jobs statistics for the Period:
13 <c:out value="${data1}" />
15 <c:out value="${data2}" />
19 <h3>Time execution: ${timeExecution} ms</h3>
22 <c:when test="${result == null}">
23 <h3>No jobs for this period </h3>
27 <c:set var="sum" value="0" />
28 <c:set var="sumOK" value="0" />
29 <c:set var="sumStopped" value="0" />
30 <c:set var="sumError" value="0" />
31 <c:set var="sumTimeOut" value="0" />
32 <c:forEach items="${result}" var="res">
33 <c:set var="tot" value="${res.total}" />
34 <c:set var="sum" value="${sum + tot}" />
35 <c:set var="totOK" value="${res.totalOK}" />
36 <c:set var="sumOK" value="${sumOK + totOK}" />
37 <c:set var="totStopped" value="${res.totalStopped}" />
38 <c:set var="sumStopped" value="${sumStopped + totStopped}" />
39 <c:set var="totError" value="${res.totalError}" />
40 <c:set var="sumError" value="${sumError + totError}" />
41 <c:set var="totTimeOut" value="${res.totalTimeOut}" />
42 <c:set var="sumTimeOut" value="${sumTimeOut + totTimeOut}" />
46 <table border="1" style="border-collapse: collapse; white-space: nowrap">
49 <th rowspan="2" style="text-align: centre">Date</th>
50 <th rowspan="2" style="text-align: centre">Total jobs</th>
51 <th colspan="5" style="text-align: centre">Number of jobs</th>
54 <th style="text-align: centre">Status "OK"</th>
55 <th style="text-align: centre">Status "Stopped"</th>
56 <th style="text-align: centre">Status "Error"</th>
57 <th style="text-align: centre">Status "Time out"</th>
62 <tr style="font-weight: bolder;">
64 <td style="text-align: right">${sum}</td>
65 <td style="text-align: right">${sumOK}</td>
66 <td style="text-align: right">${sumStopped}</td>
67 <td style="text-align: right">${sumError}</td>
68 <td style="text-align: right">${sumTimeOut}</td>
71 <c:forEach items="${result}" var="res">
74 <td style="text-align: right">${res.total}</td>
75 <td style="text-align: right">${res.totalOK}</td>
76 <td style="text-align: right">${res.totalStopped}</td>
77 <td style="text-align: right">${res.totalError}</td>
78 <td style="text-align: right">${res.totalTimeOut}</td>