Globally reduce copyright headers
[project/luci.git] / 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 <xm@leipzig.freifunk.net>
4 Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%+header%>
8
9 <h2><a id="content" name="content"><%:Statistics%></a></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 <% if is_index then %><a href="<%=pcdata(images[img])%>"><% end %>
33 <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
34 <% if is_index then %></a><% end %>
35 <br />
36 <% end %>
37 </div>
38
39 <%+footer%>
40