Add first banch of JSPs
[proteocache.git] / website / ReportLength.jsp
diff --git a/website/ReportLength.jsp b/website/ReportLength.jsp
new file mode 100644 (file)
index 0000000..c7f9cff
--- /dev/null
@@ -0,0 +1,34 @@
+<%@page import="java.util.ArrayList"%>
+<%@ page trimDirectiveWhitespaces="true" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
+<c:choose>
+<c:when test="${flag == 'AllDate'}">
+<h3>Time execution for the whole period</h3>
+</c:when>
+<c:otherwise>
+<h3>Time execution for the interval: ${data1}  -  ${data2}</h3> 
+</c:otherwise>
+</c:choose>
+<table border="1" style = "border-collapse: collapse; white-space: nowrap"> 
+<thead>
+<tr>
+<th style="text-align: centre;  width: 150px">Date</th>
+<th style="text-align: centre;  width: 150px">less then 30 s</th>
+<th style="text-align: centre;  width: 150px">30 s - 60 s</th>
+<th style="text-align: centre;  width: 150px">1 min - 2 min</th>
+<th style="text-align: centre;  width: 150px">more then 2min</th>
+</tr>
+</thead>
+<tbody>
+<c:forEach items="${result}" var="res">
+<tr>
+<td>${res.date}</td>
+<c:forEach items="${res.timeRez}" var="time">
+<td style="text-align: right">${time}</td>
+</c:forEach>
+</c:forEach>
+</tbody>
+</table>