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