Add first banch of JSPs
[proteocache.git] / website / ReportNew.jsp
1 <%@page import="java.util.ArrayList"%>
2 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
5 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
6 <c:choose>
7 <c:when test="${flag == 'AllDate'}">
8 <h3>Jobs statistics for the whole period</h3>
9 </c:when>
10 <c:otherwise>
11 <h3>Jobs statistics for the Period: 
12 <c:out value = "${data1}"/> to <c:out value = "${data2}"/> </h3>
13 </c:otherwise>
14 </c:choose>
15 <table border="1" style = "border-collapse: collapse; white-space: nowrap"> 
16 <thead>
17 <tr>
18 <th rowspan="2"style="text-align: centre">Date</th>
19 <th colspan="4" style="text-align: centre">Number of Proteins</th>
20 </tr>
21 <tr>
22 <th style="text-align: centre">Total</th>
23 <th style="text-align: centre">Failed</th>
24 <th style="text-align: centre">Cancelled</th>
25 <th style="text-align: centre">Abandoned</th>
26 </tr>
27 </thead>
28 <tbody>
29 <c:set var="sum"  value="0" />
30 <c:forEach items="${result}" var="res">
31 <tr>
32 <td>${res.date}</td>
33 <c:set var="tot"  value="${res.total}" />
34 <c:set var="sum"  value="${sum + tot}" />
35 <td style="text-align: right"><c:out value = "${res.total}" /></td>
36 <td style="text-align: right">0</td>
37 <td style="text-align: right">0</td>
38 <td style="text-align: right">0</td>
39 </tr>
40 </c:forEach>
41 <tr style="font-weight: bolder;">
42 <td>Total:</td>
43 <td style="text-align: right">${sum}</td>
44 <td style="text-align: right">0</td>
45 <td style="text-align: right">0</td>
46 <td style="text-align: right">0</td>
47 </tr>
48 </tbody>
49 </table>