4d84f189427e8c0b8636e90c53c46ec5d2f1c21c
[proteocache.git] / webapp / view / ReportTimeExecution.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2         pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
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 <%@ page trimDirectiveWhitespaces="true"%>
10 <%@page import="java.util.ArrayList"%>
11
12 <html>
13 <jsp:include page="fragments/header.jsp" />
14 <body>
15         <div class="container">
16                 <jsp:include page="fragments/bodyHeader.jsp" />
17
18                 <c:choose>
19                         <c:when test="${flag == 'AllDate'}">
20                                 <h3>Time execution for the whole period</h3>
21                         </c:when>
22                         <c:otherwise>
23                                 <h3>Time execution for the interval: ${data1} - ${data2}</h3>
24                         </c:otherwise>
25                 </c:choose>
26                 <h3>Time execution: ${timeExecution} ms</h3>
27
28                 <c:set var="sum" value="0" />
29                 <c:forEach items="${result}" var="res" varStatus="loop">
30                         <c:choose>
31                                 <c:when test="${loop.last}">
32                                         <c:forEach items="${res.timeTotalExec}" var="total">
33                                                 <c:set var="sum" value="${sum + total}" />
34                                         </c:forEach>
35                                 </c:when>
36                         </c:choose>
37                 </c:forEach>
38
39                 <h3>Total number of jobs: ${sum}</h3>
40
41                 <table border="1"
42                         style="border-collapse: collapse; white-space: nowrap">
43                         <thead>
44                                 <tr>
45                                         <th style="text-align: centre; width: 150px">Date</th>
46                                         <th style="text-align: centre; width: 150px">0 - 30 s</th>
47                                         <th style="text-align: centre; width: 150px">30 - 60 s</th>
48                                         <th style="text-align: centre; width: 150px">1 - 2 min</th>
49                                         <th style="text-align: centre; width: 150px">2 - 10 min</th>
50                                         <th style="text-align: centre; width: 150px">more then 10 min</th>
51                                 </tr>
52                         </thead>
53                         <tbody>
54                                 <c:forEach items="${result}" var="res" varStatus="loop">
55                                         <c:choose>
56                                                 <c:when test="${loop.last}">
57                                                         <tr style="font-weight: bolder;">
58                                                                 <td>Total:</td>
59                                                                 <c:forEach items="${res.timeTotalExec}" var="total">
60                                                                         <td style="text-align: right">${total}</td>
61                                                                 </c:forEach>
62                                                         </tr>
63                                                 </c:when>
64                                         </c:choose>
65                                 </c:forEach>
66
67                                 <c:forEach items="${result}" var="res" varStatus="loop">
68                                         <c:choose>
69                                                 <c:when test="${not loop.last}">
70                                                         <tr>
71                                                                 <td>${res.date}</td>
72                                                                 <c:forEach items="${res.timeRez}" var="time">
73                                                                         <td style="text-align: right">${time}</td>
74                                                                 </c:forEach>
75                                                         </tr>
76                                                 </c:when>
77                                         </c:choose>
78                                 </c:forEach>
79                         </tbody>
80                 </table>
81
82
83                 <jsp:include page="fragments/footer.jsp" />
84         </div>
85 </body>
86 </html>