fixed Execution time report
[proteocache.git] / webapp / view / reports / TimeExecution.jsp
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
7
8 <html>
9 <jsp:include page="../fragments/header.jsp" />
10 <body>
11         <div class="container">
12                 <jsp:include page="../fragments/mainmenu.jsp" />
13                 <spring:url value="/stat/exectime/results?date1=${date1}&date2=${date2}&option=${option}" var="the_query" />
14
15         <!-- reload and CSV buttons -->
16         <ul class="nav navbar-nav navbar-right">
17                 <li>
18                 <a href="${the_query}" class="btn btn-default active">Reload</a>
19                 </li>
20                 <c:choose><c:when test="${csvfile != ''}">
21                 <li>
22                 <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csvfile}" class="btn btn-default active">CVS</a>
23                 </li>
24                 </c:when></c:choose>
25         </ul>
26
27         <!-- main data loop  -->
28         <div class="panel panel-default">
29         <div class="panel-heading">
30                 <c:choose>
31                         <c:when test="${option == 'AllDates,off'}">
32                                 <p style="font-weight:bold;">Time execution for the whole period (${ndays} days)</p>
33                         </c:when>
34                         <c:otherwise>
35                                 <p style="font-weight:bold;">Time execution for the interval: ${date1} - ${date2} (${ndays} days)</p>
36                         </c:otherwise>
37                 </c:choose>
38         </div>
39         
40         <div class="panel-body">
41                 <c:choose>
42                         <c:when test="${result == null}">
43                                 <p>No jobs for this period</p>
44                         </c:when>
45                 <c:otherwise>
46                         <div class="table-responsive">
47                         <table class="table table-striped table-hover table-bordered">
48                                 <thead>
49                                 <tr>
50                                         <th style="text-align: center; width: 150px">Date</th>
51                                         <th style="text-align: center; width: 150px">Total</th>
52                                         <th style="text-align: center; width: 150px">0 - 30 s</th>
53                                         <th style="text-align: center; width: 150px">30 - 60 s</th>
54                                         <th style="text-align: center; width: 150px">1 - 2 min</th>
55                                         <th style="text-align: center; width: 150px">2 - 10 min</th>
56                                         <th style="text-align: center; width: 150px">more then 10 min</th>
57                                 </tr>
58                         </thead>
59                         <tbody>
60                                 <tr style="font-weight: bolder;">
61                                                         <td style="text-align: center">Total:</td>
62                                                         <c:set var="total" value="${result.wholeTotal}"/>
63                                                         <td style="text-align: right">${total.total}</td>
64                                                         <td style="text-align: right">${total.total0_30s}</td>
65                                                         <td style="text-align: right">${total.total30_60s}</td>
66                                                         <td style="text-align: right">${total.total1_2m}</td>
67                                                         <td style="text-align: right">${total.total2_10m}</td>
68                                                         <td style="text-align: right">${total.total10m}</td>
69                                 </tr>
70
71                                 <c:forEach items="${result.dateTotal}" var="res">
72                                                         <tr>
73                                                                 <td style="text-align: center">${res.key}</td>
74                                                                 <c:set var="value" value="${res.value}"/>
75                                                                 <td style="text-align: right">${value.total}</td>
76                                                                 <td style="text-align: right">${value.total0_30s}</td>
77                                                                 <td style="text-align: right">${value.total30_60s}</td>
78                                                                 <td style="text-align: right">${value.total1_2m}</td>
79                                                                 <td style="text-align: right">${value.total2_10m}</td>
80                                                                 <td style="text-align: right">${value.total10m}</td>
81                                                         </tr>
82                                                 </c:forEach>
83                         </tbody>
84                 </table>
85                 </div>
86                 </c:otherwise>
87                 </c:choose>
88         </div>
89         </div>
90
91         <jsp:include page="../fragments/footer.jsp" />
92         </div>
93 </body>
94 </html>