4 |
<%@ page import="dk.thoerup.traininfoservice.SavedStatBean" %> |
<%@ page import="dk.thoerup.traininfoservice.SavedStatBean" %> |
5 |
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> |
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> |
6 |
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> |
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> |
7 |
|
|
8 |
|
|
9 |
<c-rt:set var="statbeans" value="${requestScope.stats}"/> |
<c-rt:set var="statbeans" value="${requestScope.stats}"/> |
10 |
<c-rt:set var="top5beans" value="${requestScope.top5}"/> |
<c-rt:set var="top10beans" value="${requestScope.top10}"/> |
11 |
|
|
12 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
13 |
<html> |
<html> |
37 |
|
|
38 |
<br/><br/> |
<br/><br/> |
39 |
|
|
40 |
|
<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 |
<h2>Latest</h2> |
<h2>Latest</h2> |
61 |
<table border="1"> |
<table border="1"> |
62 |
<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> |
<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> |
79 |
|
|
80 |
</table> |
</table> |
81 |
|
|
82 |
<h2>Top 5 busiest</h2> |
<h2>Top 10 busiest</h2> |
83 |
<b>by non-failed departure lookups</b> |
<b>by non-failed departure lookups</b> |
84 |
<table border="1"> |
<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> |
<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 |
<c-rt:forEach var="stat" items="${top5beans}"> |
<c-rt:forEach var="stat" items="${top10beans}"> |
88 |
<tr> |
<tr> |
89 |
<td>${stat.label}</td> |
<td>${stat.label}</td> |
90 |
<td>${stat.station }</td> |
<td>${stat.station }</td> |
105 |
|
|
106 |
|
|
107 |
</body> |
</body> |
|
</html> |
|
108 |
|
</html> |