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="/exectime/query?date1=${date1}&date2=${date2}&option=${option}" var="thequery" />
15 <!-- reload button -->
16 <ul class="nav navbar-nav navbar-right">
18 <a href="${thequery}" class="btn btn-default active">Reload</a>
22 <div class="panel panel-default">
23 <div class="panel-heading">
25 <c:when test="${option == 'AllDates,off'}">
26 <p style="font-weight:bold;">Time execution for the whole period (${ndays} days)</p>
29 <p style="font-weight:bold;">Time execution for the interval: ${date1} - ${date2} (${ndays} days)</p>
34 <div class="panel-body">
35 <c:set var="sum" value="0" />
36 <c:forEach items="${result}" var="res" varStatus="loop">
38 <c:when test="${loop.last}">
39 <c:forEach items="${res.timeTotalExec}" var="total">
40 <c:set var="sum" value="${sum + total}" />
46 <p>There are ${sum} jobs in total</p>
48 <table class="table table-striped table-hover table-bordered">
51 <th style="text-align: center; width: 150px">Date</th>
52 <th style="text-align: center; width: 150px">Total</th>
53 <th style="text-align: center; width: 150px">0 - 30 s</th>
54 <th style="text-align: center; width: 150px">30 - 60 s</th>
55 <th style="text-align: center; width: 150px">1 - 2 min</th>
56 <th style="text-align: center; width: 150px">2 - 10 min</th>
57 <th style="text-align: center; width: 150px">more then 10 min</th>
61 <c:forEach items="${result}" var="res" varStatus="loop">
63 <c:when test="${loop.last}">
64 <tr style="font-weight: bolder;">
65 <td style="text-align: right">Total numbers:</td>
66 <c:set var="alldaytotal" value="0"/>
67 <c:forEach items="${res.timeTotalExec}" var="total">
68 <c:set var="alldaytotal" value="${alldaytotal + total}"/>
70 <td style="text-align: right">${alldaytotal}</td>
71 <c:forEach items="${res.timeTotalExec}" var="total">
72 <td style="text-align: right">${total}</td>
79 <c:forEach items="${result}" var="res" varStatus="loop">
81 <c:when test="${not loop.last}">
83 <td style="text-align: center">${res.date}</td>
84 <c:set var="daytotal" value="0"/>
85 <c:forEach items="${res.timeRez}" var="time">
86 <c:set var="daytotal" value="${daytotal + time}"/>
88 <td style="text-align: right">${daytotal}</td>
89 <c:forEach items="${res.timeRez}" var="time">
90 <td style="text-align: right">${time}</td>
101 <jsp:include page="fragments/footer.jsp" />