Update luci
[librecmc/librecmc.git] / package / luci / applications / luci-app-statistics / luasrc / view / public_statistics / graph.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8
9 <h2 name="content"><%:Statistics%></h2>
10
11 <form action="" method="get">
12         <select name="host">
13                 <% for i, host in ipairs(hosts) do %>
14                         <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
15                 <% end %>
16         </select>
17         <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display Host »%>" />
18         <select name="timespan">
19                 <% for i, span in ipairs(timespans) do %>
20                         <option<% if span == current_timespan then %> selected="selected"<% end %>><%=span%></option>
21                 <% end %>
22         </select>
23         <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
24 </form>
25
26 <br />
27 <hr />
28 <br />
29
30 <div style="text-align: center">
31         <% for i, img in ipairs(images) do %>
32                 <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
33                 <br />
34         <% end %>
35 </div>
36
37 <%+footer%>
38