1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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"%>
9 <jsp:include page="fragments/header.jsp" />
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" />
15 <!-- reload and CSV buttons -->
16 <ul class="nav navbar-nav navbar-right">
18 <a href="${the_query}" class="btn btn-default active">Reload</a>
20 <c:choose><c:when test="${csvfile != ''}">
22 <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csvfile}" class="btn btn-default active">CVS</a>
27 <!-- main data loop -->
28 <div class="panel panel-default">
29 <div class="panel-heading">
31 <c:when test="${option == 'AllDates,off'}">
32 <p style="font-weight:bold;">Time execution for the whole period (${ndays} days)</p>
35 <p style="font-weight:bold;">Time execution for the interval: ${date1} - ${date2} (${ndays} days)</p>
40 <div class="panel-body">
41 <c:set var="sum" value="0" />
42 <c:forEach items="${result}" var="res" varStatus="loop">
44 <c:when test="${loop.last}">
45 <c:forEach items="${res.timeTotalExec}" var="total">
46 <c:set var="sum" value="${sum + total}" />
52 <p>There are ${sum} jobs in total</p>
54 <table class="table table-striped table-hover table-bordered">
57 <th style="text-align: center; width: 150px">Date</th>
58 <th style="text-align: center; width: 150px">Total</th>
59 <th style="text-align: center; width: 150px">0 - 30 s</th>
60 <th style="text-align: center; width: 150px">30 - 60 s</th>
61 <th style="text-align: center; width: 150px">1 - 2 min</th>
62 <th style="text-align: center; width: 150px">2 - 10 min</th>
63 <th style="text-align: center; width: 150px">more then 10 min</th>
67 <c:forEach items="${result}" var="res" varStatus="loop">
69 <c:when test="${loop.last}">
70 <tr style="font-weight: bolder;">
71 <td style="text-align: right">Total numbers:</td>
72 <c:set var="alldaytotal" value="0"/>
73 <c:forEach items="${res.timeTotalExec}" var="total">
74 <c:set var="alldaytotal" value="${alldaytotal + total}"/>
76 <td style="text-align: right">${alldaytotal}</td>
77 <c:forEach items="${res.timeTotalExec}" var="total">
78 <td style="text-align: right">${total}</td>
85 <c:forEach items="${result}" var="res" varStatus="loop">
87 <c:when test="${not loop.last}">
89 <td style="text-align: center">${res.date}</td>
90 <c:set var="daytotal" value="0"/>
91 <c:forEach items="${res.timeRez}" var="time">
92 <c:set var="daytotal" value="${daytotal + time}"/>
94 <td style="text-align: right">${daytotal}</td>
95 <c:forEach items="${res.timeRez}" var="time">
96 <td style="text-align: right">${time}</td>
107 <jsp:include page="fragments/footer.jsp" />