move jsp for reports to a separate dir
[proteocache.git] / webapp / view / reports / SSFeatures.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2         pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
8 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
9 <%@page import="java.util.ArrayList"%>
10
11 <html>
12 <jsp:include page="../fragments/header.jsp" />
13 <body>
14         <div class="container">
15                 <jsp:include page="../fragments/mainmenu.jsp" />
16                 <spring:url value="/sequence/sequence/results" var="sequence_query" />
17                 <spring:url value="/features/results" var="the_query"/>
18                 <spring:url value="/features/results?TypeFeatures=${feature}&Percent=${percent}" var="the_query" />
19
20         <!-- reload and CSV buttons -->
21         <ul class="nav navbar-nav navbar-right">
22                 <li>
23                 <a href="${the_query}" class="btn btn-default active">Reload</a>
24                 </li>
25                 <c:choose><c:when test="${csvfile != ''}">
26                 <li>
27                 <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csvfile}" class="btn btn-default active">CSV</a>
28                 </li>
29                 </c:when></c:choose>
30         </ul>
31
32         <div class="panel panel-default">
33         <div class="panel-heading">
34                 <p style="font-weight:bold;">Protein Secondary Structure Feature Statistics</p>
35         </div>
36
37         <div class="panel-body">
38                 <c:choose>
39                 <c:when test="${njobs == 0}">
40                         <p>No proteins with feature ${feature} more then ${percent}% of the protein sequence found</p>
41                 </c:when>
42                 <c:otherwise>
43                         <p>${njobs} proteins with feature ${feature} more then ${percent}% of the protein sequence found</p>
44                         <div class="table-responsive">
45                         <table class="table table-striped table-hover table-bordered">
46                         <thead>
47                                 <tr>
48                                         <th style="text-align: centre">N</th>
49                                         <th style="text-align: left">Protein/Prediction</th>
50                                 </tr>
51                         </thead>
52                         <tbody>
53                                 <c:set var="count" value="0" scope="page" />
54                                 <c:forEach items="${results}" var="res">
55                                         <c:set var="count" value="${count + 1}" scope="page"/>
56                                         <tr>
57                                                 <td rowspan = 2>${count}
58                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
59                                                 <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.key}&searchtype=whole">
60                                                 <script>
61                                                         document.write(shorten('${res.key}', 108));
62                                                 </script>
63                                                 </a></td>
64                                         </tr>
65                                         <tr>
66                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
67                                                 <script>
68                                                         document.write(shorten('${res.value}', 108));
69                                                 </script>
70                                                 </td>
71                                         </tr>
72                                 </c:forEach>
73                         </tbody>
74                         </table>
75                         </div>
76                 </c:otherwise>
77                 </c:choose>
78         </div>
79         </div>
80
81         <jsp:include page="../fragments/footer.jsp" />
82         </div>
83 </body>
84 </html>