Still not-working system for reading cassandra
[proteocache.git] / website / ReportSequenceProtein.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 <c:choose>
8         <c:when test="${search == 'Search counter'}">
9                 <h3>Dundee ProteoCache query result for jobs more than ${counter} </h3>
10         </c:when>
11         <c:otherwise>
12                 <h3>Dundee ProteoCache query result</h3>
13         </c:otherwise>
14 </c:choose>
15 <h3>Time execution: ${timeExecution} ms</h3>
16 <table border="1" style="border-collapse: collapse; white-space: nowrap">
17         <c:choose>
18                 <c:when test="${search == 'Search counter'}">
19                         <thead>
20                                 <tr>
21                                         <th style="text-align: centre">Number of jobs</th>
22                                         <th style="text-align: left">Protein</th>
23                                 </tr>
24                         </thead>
25                         <tbody>
26                                 <c:forEach items="${result}" var="res">
27                                         <tr>
28                                                 <td>${res.totalId}</td>
29                                                 <td
30                                                         style="text-align: left; border-buttom: dotted; font-family: monospace"><a
31                                                         title="Click to view predictions"
32                                                         href="ProtServlet?prot=${res.prot}&protein=whole&Search=Search+sequence&counterJob=${counter}">${res.prot}</a>
33                                                 </td>
34                                         </tr>
35                                 </c:forEach>
36                 </c:when>
37                 <c:otherwise>
38                         <thead>
39                                 <tr>
40                                         <th style="text-align: centre">ID</th>
41                                         <th style="text-align: centre">Prediction</th>
42                                 </tr>
43                         </thead>
44                         <tbody>
45                                 <c:forEach items="${result}" var="res" varStatus="status">
46                                         <tr>
47                                                 <td rowspan="2">${res.id}</td>
48                                                 <c:if test="${flag == 'whole'}">
49                                                         <td
50                                                                 style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out
51                                                                         value="${res.prot}" /></td>
52                                                 </c:if>
53                                                 <c:if test="${flag == 'part'}">
54                                                         <td
55                                                                 style="text-align: left; border-buttom: dotted; font-family: monospace">
56                                                                 <c:forEach items="${res.subProt}" var="seq">
57                                                                         <c:choose>
58                                                                                 <c:when test="${fn:contains(seq, prot)}">
59                                                                                         <span style="background-color: blue">${seq}</span>
60                                                                                 </c:when>
61                                                                                 <c:otherwise>${seq}</c:otherwise>
62                                                                         </c:choose>
63                                                                 </c:forEach>
64                                                         </td>
65                                                 </c:if>
66                                         </tr>
67                                         <tr>
68                                                 <td
69                                                         style="text-align: left; border-top: hidden; font-family: monospace"><c:out
70                                                                 value="${res.jpred}" /></td>
71                                         </tr>
72                                 </c:forEach>
73                 </c:otherwise>
74         </c:choose>
75         </tbody>
76 </table>