PROT-7 add reportjobbyaday
authorNatasha Sherstneva <n.shertneva@gmail.com>
Mon, 25 Nov 2013 11:22:40 +0000 (11:22 +0000)
committerNatasha Sherstneva <n.shertneva@gmail.com>
Mon, 25 Nov 2013 11:22:40 +0000 (11:22 +0000)
website/ReportJobsByADay.jsp [new file with mode: 0644]

diff --git a/website/ReportJobsByADay.jsp b/website/ReportJobsByADay.jsp
new file mode 100644 (file)
index 0000000..a66f198
--- /dev/null
@@ -0,0 +1,33 @@
+<%@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"%>
+
+<h3>Dundee ProteoCache query result for ${date}</h3>
+
+<c:choose>
+       <c:when test="${result == null}">
+               <h3>No jobs for a day ${date} </h3>
+       </c:when>
+       <c:otherwise>
+               
+       <table border="1" style="border-collapse: collapse; white-space: nowrap">
+               <thead>
+                       <tr>
+                               <th style="text-align: centre">ID</th>
+                               <th style="text-align: left">Sequence of protein</th>
+                       </tr>
+               </thead>
+               <tbody>
+                       <c:forEach items="${result}" var="res" varStatus="status">
+                               <tr>
+                                       <td><a href="ServletLogInfo?IdJob=${res.id}">${res.id}</a></td>
+                                       <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.prot}</td>
+                               </tr>
+                       </c:forEach>
+               </tbody>
+       </table>
+       </c:otherwise>
+</c:choose>
\ No newline at end of file