the new query jobs by ip
[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
8 <c:choose>
9         <c:when test="${search == 'Search counter'}">
10                 <h3>Dundee ProteoCache query results for jobs more than ${counter} </h3>
11         </c:when>
12         <c:otherwise>
13                 <h3>Dundee ProteoCache query results</h3>
14         </c:otherwise>
15 </c:choose>
16 <h3>Time execution: ${timeExecution} ms</h3>
17 <c:choose>
18
19 <c:when test="${results == null}">
20         <h3>No jobs for sequence ${prot} </h3>
21 </c:when>
22 <c:otherwise>
23
24 <table border="1" style="border-collapse: collapse; white-space: nowrap">
25         <c:choose>
26
27                 <c:when test="${search == 'Search counter'}">
28                         <thead>
29                                 <tr>
30                                         <th style="text-align: centre">Number of jobs</th>
31                                         <th style="text-align: left">Protein</th>
32                                 </tr>
33                         </thead>
34                         <tbody>
35                                 <c:forEach items="${results}" var="res">
36                                         <tr>
37                                                 <td>${res.totalId}</td>
38                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
39                                                         <a title="Click to view all jobs" href="ServletSequenceProtein?prot=${res.prot}&protein=whole&Search=Search+sequence&counterJob=${counter}">${res.prot}</a>
40                                                 </td>
41                                         </tr>
42                                 </c:forEach>
43                 </c:when>
44
45                 <c:otherwise>
46                         <thead>
47                                 <tr style="text-align: centre">
48                                         <th>Job ID</th>
49                                         <th>annotation</th>
50                                         <th>Sequence</th>
51                                 </tr>
52                         </thead>
53                         <tbody>
54                                 <c:forEach items="${results}" var="res" varStatus="status">
55                                         <c:set var="ann" value="${res.predictions}"/>
56                                         <tr style="border-bottom: double">
57                                                 <th rowspan="${ann.mapsize + 2}"><a title="Click to view the job log" href="ServletLogInfo?IdJob=${res.id}">${res.id}</a></th>
58                                         </tr>
59                                         <tr style="border-bottom: double ">
60                                                 <td style="text-align: center; font-weight: bold; font-family: monospace" >Protein Sequence</td>
61                                                 <c:if test="${flag == 'whole'}">
62                                                         <td style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out value="${res.prot}" /></td>
63                                                 </c:if>
64                                                 <c:if test="${flag == 'part'}">
65                                                         <td
66                                                                 style="text-align: left; border-buttom: dotted; font-family: monospace">
67                                                                 <c:forEach items="${res.subProt}" var="seq">
68                                                                         <c:choose>
69                                                                                 <c:when test="${fn:contains(seq, prot)}">
70                                                                                         <span style="background-color: blue">${seq}</span></c:when><c:otherwise>${seq}</c:otherwise>
71                                                                         </c:choose>
72                                                                 </c:forEach>
73                                                         </td>
74                                                 </c:if>
75                                         </tr>
76                                         <c:forEach items="${ann.predictions}" var="seq" varStatus="status">
77                                                 <tr>
78                                                         <td style="text-align: center; font-weight: bold; font-family: monospace"><c:out value="${seq.key}"/></td>
79                                                         <td style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out value="${seq.value}"/></td>
80                                                 </tr>
81                                         </c:forEach>
82                                 </c:forEach>
83                 </c:otherwise>
84         </c:choose>
85         </tbody>
86 </table>
87 </c:otherwise>
88
89 </c:choose>