cd4249db24a56915f6a76710f509d6e5191d7977
[proteocache.git] / website / ReportLength.jsp
1 <%@page import="java.util.ArrayList"%>
2 <%@ page trimDirectiveWhitespaces="true" %>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
6 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
7 <c:choose>
8 <c:when test="${flag == 'AllDate'}">
9 <h3>Time execution for the whole period</h3>
10 </c:when>
11 <c:otherwise>
12 <h3>Time execution for the interval: ${data1}  -  ${data2}</h3> 
13 </c:otherwise>
14 </c:choose>
15 <h3>Time execution: ${timeExecution} ms</h3>
16 <table border="1" style = "border-collapse: collapse; white-space: nowrap"> 
17 <thead>
18 <tr>
19 <th style="text-align: centre;  width: 150px">Date</th>
20 <th style="text-align: centre;  width: 150px">less then 30 s</th>
21 <th style="text-align: centre;  width: 150px">30 s - 60 s</th>
22 <th style="text-align: centre;  width: 150px">1 min - 2 min</th>
23 <th style="text-align: centre;  width: 150px">2 min - 10 min</th>
24 <th style="text-align: centre;  width: 150px">more then 10 min</th>
25 </tr>
26 </thead>
27 <tbody>
28 <c:forEach items="${result}" var="res" varStatus="loop">
29         <c:choose>
30                 <c:when test="${not loop.last}">
31                         <tr>
32                         <td>${res.date}</td>
33                         <c:forEach items="${res.timeRez}" var="time">
34                                 <td style="text-align: right">${time}</td>
35                         </c:forEach>
36                 </c:when>
37                 <c:otherwise>
38                         <tr style="font-weight: bolder;">
39                         <td>Total:</td>
40                         <c:forEach items="${res.timeTotalExec}" var="total">
41                                 <td style="text-align: right">${total}</td>
42                         </c:forEach>
43                 </c:otherwise>
44         </c:choose>
45 </c:forEach>
46 </tbody>
47 </table>