Add first banch of JSPs
[proteocache.git] / website / ReportProt.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
8 <h3>Dundee ProteoCache query result</h3>
9 <table border="1" style = "border-collapse: collapse; white-space: nowrap"> 
10 <c:choose>
11 <c:when test="${checkbox == 'AllProtein'}">
12 <thead>
13 <tr>
14 <th style="text-align: centre">Number of jobs</th>
15 <th style="text-align: left">Protein</th>
16 </tr>
17 </thead>
18 <tbody>
19 <c:forEach items="${result}" var="res">
20 <tr>
21 <td> ${res.totalId}</td>
22 <td style=" text-align: left;  border-buttom:  dotted; font-family: monospace"><a title="Click to view predictions" href="ProtServlet?prot=${res.prot}&protein=whole&Search=Search">${res.prot}</a> </td>
23 </tr>
24 </c:forEach>
25 </c:when>
26 <c:otherwise>
27 <thead>
28 <tr>
29 <th style="text-align: centre">ID</th>
30 <th style="text-align: centre">Prediction</th>
31 </tr>
32 </thead>
33 <tbody>
34 <c:forEach items="${result}" var="res" varStatus="status">
35 <tr>
36 <td rowspan="2">${res.id}</td>
37 <c:if test ="${flag == 'whole'}">
38 <td  style=" text-align: left;  border-buttom:  dotted; font-family: monospace"><c:out value = "${res.prot}" /></td>
39 </c:if>
40 <c:if test ="${flag == 'part'}">
41 <td  style=" text-align: left;  border-buttom:  dotted; font-family: monospace">
42 <c:forEach items="${res.subProt}" var="seq">
43 <c:choose>
44 <c:when test="${fn:contains(seq, prot)}"><span style="background-color:blue">${seq}</span></c:when>
45 <c:otherwise>${seq}</c:otherwise>
46 </c:choose>
47 </c:forEach>
48 </td>
49 </c:if>
50 </tr>
51 <tr>
52 <td style="text-align: left; border-top: hidden; font-family: monospace"><c:out value = "${res.jpred}" /></td>
53 </tr>
54 </c:forEach>
55 </c:otherwise>
56 </c:choose>
57 </tbody>
58 </table>