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