Fix problem with different date formats
[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         <div class="panel panel-default">
19         <div class="panel-heading">
20                 <div style="font-weight:bold;">Jobs Statistics</div>
21         </div>
22         <div class="panel-body">
23
24                 <c:choose>
25                 <c:when test="${njobs == 0}">
26                         <p>No IP with at least ${counter} jobs ever launched found</p>
27                 </c:when>
28                 <c:otherwise>
29                         <p>${njobs} IP with at least ${counter} jobs ever launched</p>
30                         <div class="table-responsive">
31                         <table class="table table-striped table-hover table-bordered">
32                         <thead>
33                                 <tr>
34                                         <th style="text-align: centre">Number of jobs</th>
35                                         <th style="text-align: left">IP</th>
36                                 </tr>
37                         </thead>
38                         <tbody>
39                                 <c:forEach items="${results}" var="res">
40                                         <tr>
41                                                 <td>${res.totalId}</td>
42                                                 <td><a title="Click to view other jobs" href="${ipquery}?ip=${res.ip}&Search=Search">${res.ip}</a></td>
43                                         </tr>
44                                 </c:forEach>
45                         </tbody>
46                         </table>
47                         </div>
48                 </c:otherwise>
49                 </c:choose>
50
51         </div>
52         </div>
53
54                 <jsp:include page="fragments/footer.jsp" />
55         </div>
56 </body>
57 </html>