ae06cf60798a70dfda49889ec9a5afeab9e690c8
[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
23                                                         style="text-align: left; border-buttom: dotted; font-family: monospace"><a
24                                                         title="Click to view predictions"
25                                                         href="ProtServlet?prot=${res.prot}&protein=whole&Search=Search">${res.prot}</a>
26                                                 </td>
27                                         </tr>
28                                 </c:forEach>
29                 </c:when>
30                 <c:otherwise>
31                         <thead>
32                                 <tr>
33                                         <th style="text-align: centre">ID</th>
34                                         <th style="text-align: centre">Prediction</th>
35                                 </tr>
36                         </thead>
37                         <tbody>
38                                 <c:forEach items="${result}" var="res" varStatus="status">
39                                         <tr>
40                                                 <td rowspan="2">${res.id}</td>
41                                                 <c:if test="${flag == 'whole'}">
42                                                         <td
43                                                                 style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out
44                                                                         value="${res.prot}" /></td>
45                                                 </c:if>
46                                                 <c:if test="${flag == 'part'}">
47                                                         <td
48                                                                 style="text-align: left; border-buttom: dotted; font-family: monospace">
49                                                                 <c:forEach items="${res.subProt}" var="seq">
50                                                                         <c:choose>
51                                                                                 <c:when test="${fn:contains(seq, prot)}">
52                                                                                         <span style="background-color: blue">${seq}</span>
53                                                                                 </c:when>
54                                                                                 <c:otherwise>${seq}</c:otherwise>
55                                                                         </c:choose>
56                                                                 </c:forEach>
57                                                         </td>
58                                                 </c:if>
59                                         </tr>
60                                         <tr>
61                                                 <td
62                                                         style="text-align: left; border-top: hidden; font-family: monospace"><c:out
63                                                                 value="${res.jpred}" /></td>
64                                         </tr>
65                                 </c:forEach>
66                 </c:otherwise>
67         </c:choose>
68         </tbody>
69 </table>