Rework LuCI build system
[project/luci.git] / applications / luci-app-statistics / luasrc / view / public_statistics / graph.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16
17 <h2><a id="content" name="content"><%:Statistics%></a></h2>
18
19 <form action="" method="get">
20         <select name="host">
21                 <% for i, host in ipairs(hosts) do %>
22                         <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
23                 <% end %>
24         </select>
25         <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display Host »%>" />
26         <select name="timespan">
27                 <% for i, span in ipairs(timespans) do %>
28                         <option<% if span == current_timespan then %> selected="selected"<% end %>><%=span%></option>
29                 <% end %>
30         </select>
31         <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
32 </form>
33
34 <br />
35 <hr />
36 <br />
37
38 <div style="text-align: center">
39         <% for i, img in ipairs(images) do %>
40                 <% if is_index then %><a href="<%=pcdata(images[img])%>"><% end %>
41                 <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
42                 <% if is_index then %></a><% end %>
43                 <br />
44         <% end %>
45 </div>
46
47 <%+footer%>
48