/[projects]/android/TrainInfoService/WebContent/savedstatistics.jsp
ViewVC logotype

Diff of /android/TrainInfoService/WebContent/savedstatistics.jsp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 961 by torben, Wed Jul 7 09:12:32 2010 UTC revision 1400 by torben, Thu Apr 28 18:50:24 2011 UTC
# Line 1  Line 1 
1  <%@ page language="java" contentType="text/html; charset=UTF-8"  <%@ page language="java" contentType="text/html; charset=UTF-8"
2      pageEncoding="UTF-8"%>      pageEncoding="UTF-8"%>
3  <%@ page import="java.util.List" %>  
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  <c-rt:set var="statbeans" value="${requestScope.stats}"/>      <c-rt:set var="statbeans" value="${requestScope.stats}"/>
9    <c-rt:set var="top5beans" value="${requestScope.top5}"/>    
10            
11  <!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">
12  <html>  <html>
# Line 15  Line 16 
16  </head>  </head>
17  <body>  <body>
18    
19    <h2>Average</h2>
20    <table border="1">
21      <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>
22      <tr>
23            <td>${avg.label}</td>
24            <td>${avg.station }</td>
25            <td>${avg.location }</td>
26            <td>${avg.name }</td>
27            <td>${avg.favorites }</td>
28            <td>${avg.departure }</td>
29            <td>${avg.depcache }</td>
30            <td>${avg.deperror }</td>
31            <td>${avg.timetable }</td>
32            <td>${avg.timecache }</td>
33            <td>${avg.timeerror }</td>
34      </tr>
35    </table>
36    
37    <br/><br/>
38    
39    <h2>Latest</h2>
40  <table border="1">  <table border="1">
41  <tr><th>&nbsp;</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>
42    
43  <c-rt:forEach var="stat" items="${statbeans}">  <c-rt:forEach var="stat" items="${statbeans}">
44    <tr>    <tr>
45          <td>${stat.statisticsdate}</td>          <td>${stat.label}</td>
46            <td>${stat.station }</td>
47            <td>${stat.location }</td>
48            <td>${stat.name }</td>
49            <td>${stat.favorites }</td>
50            <td>${stat.departure }</td>
51            <td>${stat.depcache }</td>
52            <td>${stat.deperror }</td>
53            <td>${stat.timetable }</td>
54            <td>${stat.timecache }</td>
55            <td>${stat.timeerror }</td>
56      </tr>
57    </c-rt:forEach>
58    
59    </table>
60    
61    <h2>Top 5 busiest</h2>
62    <b>by non-failed departure lookups</b>
63    <table border="1">
64    <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>
65    
66    <c-rt:forEach var="stat" items="${top5beans}">
67      <tr>
68            <td>${stat.label}</td>
69          <td>${stat.station }</td>          <td>${stat.station }</td>
70          <td>${stat.location }</td>          <td>${stat.location }</td>
71          <td>${stat.name }</td>          <td>${stat.name }</td>
# Line 40  Line 82 
82    
83  </table>  </table>
84    
85    
86  </body>  </body>
87  </html>  </html>

Legend:
Removed from v.961  
changed lines
  Added in v.1400

  ViewVC Help
Powered by ViewVC 1.1.20