Add servlets for queries with IP
[proteocache.git] / webapp / view / reportIPstatistics.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="/ip/query" var="ipquery" />
17
18                 <!-- <h3>Time execution: ${timeExecution} ms</h3>-->
19                 <c:choose>
20                 <c:when test="${njobs == 0}">
21                         <p>No IP with at least ${counter} jobs found</p>
22                 </c:when>
23                 <c:otherwise>
24                         <p>${njobs} IP with at least ${counter} jobs found</p>
25                         <div class="table-responsive">
26                         <table class="table table-striped table-hover table-bordered">
27                         <thead>
28                                 <tr>
29                                         <th style="text-align: centre">Number of jobs</th>
30                                         <th style="text-align: left">IP</th>
31                                 </tr>
32                         </thead>
33                         <tbody>
34                                 <c:forEach items="${results}" var="res">
35                                         <tr>
36                                                 <td>${res.totalId}</td>
37                                                 <td><a title="Click to view other jobs" href="${ipquery}?ip=${res.ip}&Search=Search">${res.ip}</a></td>
38                                         </tr>
39                                 </c:forEach>
40                         </tbody>
41                         </table>
42                         </div>
43                 </c:otherwise>
44                 </c:choose>
45
46                 <jsp:include page="fragments/footer.jsp" />
47         </div>
48 </body>
49 </html>