1 <%@ page language="java" contentType="text/html; charset=UTF-8"
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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"%>
12 <jsp:include page="fragments/header.jsp" />
14 <div class="container">
15 <jsp:include page="fragments/bodyHeader.jsp" />
16 <spring:url value="/sequence/query" var="searchquery" />
17 <spring:url value="/joblog/query" var="jobquery" />
20 <c:when test="${search == 'SearchCounter'}">
21 <h3>${njobs} proteins with at least ${counter} jobs</h3>
24 <h3>Jobs with the given protein sequences:</h3>
27 <h3>Time execution: ${timeExecution} ms</h3>
30 <c:when test="${results == null}">
31 <h3>No jobs for sequence ${prot}</h3>
34 <table border="1" style="border-collapse: collapse; white-space: nowrap">
36 <c:when test="${search == 'SearchCounter'}">
39 <th style="text-align: centre">Number of jobs</th>
40 <th style="text-align: left">Protein</th>
44 <c:forEach items="${results}" var="res">
46 <td>${res.totalId}</td>
48 style="text-align: left; border-buttom: dotted; font-family: monospace">
50 <a title="Click to view all jobs"
51 href="${searchquery}?prot=${res.prot}&protein=whole&Search=SearchSequence&counterJob=${counter}">${res.prot}</a>
58 <tr style="text-align: centre">
65 <c:forEach items="${results}" var="res" varStatus="status">
66 <c:set var="ann" value="${res.predictions}" />
67 <tr style="border-bottom: double">
68 <th rowspan="${ann.mapsize + 2}">
69 <a title="Click to view the job log" href="${jobquery}?IdJob=${res.id}">${res.id}</a></th>
71 <tr style="border-bottom: double">
73 style="text-align: center; font-weight: bold; font-family: monospace">Protein
75 <c:if test="${flag == 'whole'}">
77 style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out
78 value="${res.prot}" /></td>
80 <c:if test="${flag == 'part'}">
82 style="text-align: left; border-buttom: dotted; font-family: monospace">
83 <c:forEach items="${res.subProt}" var="seq">
85 <c:when test="${fn:contains(seq, prot)}">
86 <span style="background-color: blue">${seq}</span>
88 <c:otherwise>${seq}</c:otherwise>
94 <c:forEach items="${ann.predictions}" var="seq"
98 style="text-align: center; font-weight: bold; font-family: monospace"><c:out
99 value="${seq.key}" /></td>
101 style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out
102 value="${seq.value}" /></td>
113 <jsp:include page="fragments/footer.jsp" />