1 |
torben |
961 |
<%@ page language="java" contentType="text/html; charset=UTF-8" |
2 |
|
|
pageEncoding="UTF-8"%> |
3 |
torben |
964 |
|
4 |
torben |
961 |
<%@ page import="dk.thoerup.traininfoservice.SavedStatBean" %> |
5 |
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> |
6 |
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> |
7 |
torben |
1812 |
|
8 |
torben |
961 |
|
9 |
torben |
1400 |
<c-rt:set var="statbeans" value="${requestScope.stats}"/> |
10 |
torben |
2091 |
<c-rt:set var="top10beans" value="${requestScope.top10}"/> |
11 |
torben |
961 |
|
12 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
13 |
|
|
<html> |
14 |
|
|
<head> |
15 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
16 |
|
|
<title>TrainInfoService :: Saved Statistics</title> |
17 |
|
|
</head> |
18 |
|
|
<body> |
19 |
|
|
|
20 |
torben |
962 |
<h2>Average</h2> |
21 |
|
|
<table border="1"> |
22 |
torben |
963 |
<tr><th width=100>Count</th><th>Station</th><th>byLocation</th><th>byName</th><th>byFavorites</th><th>Departure</th><th>depCache</th><th>depError</th><th>Timetable</th><th>timeCache</th><th>timeError</th></tr> |
23 |
torben |
962 |
<tr> |
24 |
torben |
964 |
<td>${avg.label}</td> |
25 |
torben |
962 |
<td>${avg.station }</td> |
26 |
|
|
<td>${avg.location }</td> |
27 |
|
|
<td>${avg.name }</td> |
28 |
|
|
<td>${avg.favorites }</td> |
29 |
|
|
<td>${avg.departure }</td> |
30 |
|
|
<td>${avg.depcache }</td> |
31 |
|
|
<td>${avg.deperror }</td> |
32 |
|
|
<td>${avg.timetable }</td> |
33 |
|
|
<td>${avg.timecache }</td> |
34 |
|
|
<td>${avg.timeerror }</td> |
35 |
|
|
</tr> |
36 |
|
|
</table> |
37 |
torben |
961 |
|
38 |
torben |
962 |
<br/><br/> |
39 |
torben |
961 |
|
40 |
torben |
1812 |
<h2>Average 30 days</h2> |
41 |
|
|
<table border="1"> |
42 |
|
|
<tr><th width=100>Count</th><th>Station</th><th>byLocation</th><th>byName</th><th>byFavorites</th><th>Departure</th><th>depCache</th><th>depError</th><th>Timetable</th><th>timeCache</th><th>timeError</th></tr> |
43 |
|
|
<tr> |
44 |
|
|
<td>${avg30.label}</td> |
45 |
|
|
<td>${avg30.station }</td> |
46 |
|
|
<td>${avg30.location }</td> |
47 |
|
|
<td>${avg30.name }</td> |
48 |
|
|
<td>${avg30.favorites }</td> |
49 |
|
|
<td>${avg30.departure }</td> |
50 |
|
|
<td>${avg30.depcache }</td> |
51 |
|
|
<td>${avg30.deperror }</td> |
52 |
|
|
<td>${avg30.timetable }</td> |
53 |
|
|
<td>${avg30.timecache }</td> |
54 |
|
|
<td>${avg30.timeerror }</td> |
55 |
|
|
</tr> |
56 |
|
|
</table> |
57 |
|
|
|
58 |
|
|
<br/><br/> |
59 |
|
|
|
60 |
torben |
962 |
<h2>Latest</h2> |
61 |
torben |
961 |
<table border="1"> |
62 |
torben |
963 |
<tr><th width=100>Date</th><th>Station</th><th>byLocation</th><th>byName</th><th>byFavorites</th><th>Departure</th><th>depCache</th><th>depError</th><th>Timetable</th><th>timeCache</th><th>timeError</th></tr> |
63 |
torben |
961 |
|
64 |
|
|
<c-rt:forEach var="stat" items="${statbeans}"> |
65 |
|
|
<tr> |
66 |
torben |
964 |
<td>${stat.label}</td> |
67 |
torben |
961 |
<td>${stat.station }</td> |
68 |
|
|
<td>${stat.location }</td> |
69 |
|
|
<td>${stat.name }</td> |
70 |
|
|
<td>${stat.favorites }</td> |
71 |
|
|
<td>${stat.departure }</td> |
72 |
|
|
<td>${stat.depcache }</td> |
73 |
|
|
<td>${stat.deperror }</td> |
74 |
|
|
<td>${stat.timetable }</td> |
75 |
|
|
<td>${stat.timecache }</td> |
76 |
|
|
<td>${stat.timeerror }</td> |
77 |
|
|
</tr> |
78 |
|
|
</c-rt:forEach> |
79 |
|
|
|
80 |
torben |
1400 |
</table> |
81 |
torben |
961 |
|
82 |
torben |
2091 |
<h2>Top 10 busiest</h2> |
83 |
torben |
1400 |
<b>by non-failed departure lookups</b> |
84 |
|
|
<table border="1"> |
85 |
|
|
<tr><th width=100>Date</th><th>Station</th><th>byLocation</th><th>byName</th><th>byFavorites</th><th>Departure</th><th>depCache</th><th>depError</th><th>Timetable</th><th>timeCache</th><th>timeError</th></tr> |
86 |
|
|
|
87 |
torben |
2091 |
<c-rt:forEach var="stat" items="${top10beans}"> |
88 |
torben |
1400 |
<tr> |
89 |
|
|
<td>${stat.label}</td> |
90 |
|
|
<td>${stat.station }</td> |
91 |
|
|
<td>${stat.location }</td> |
92 |
|
|
<td>${stat.name }</td> |
93 |
|
|
<td>${stat.favorites }</td> |
94 |
|
|
<td>${stat.departure }</td> |
95 |
|
|
<td>${stat.depcache }</td> |
96 |
|
|
<td>${stat.deperror }</td> |
97 |
|
|
<td>${stat.timetable }</td> |
98 |
|
|
<td>${stat.timecache }</td> |
99 |
|
|
<td>${stat.timeerror }</td> |
100 |
|
|
</tr> |
101 |
|
|
</c-rt:forEach> |
102 |
|
|
|
103 |
|
|
|
104 |
torben |
961 |
</table> |
105 |
|
|
|
106 |
torben |
1400 |
|
107 |
torben |
961 |
</body> |
108 |
torben |
2091 |
</html> |