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.
9 <h2><a id="content" name="content"><%:Statistics%></a></h2>
11 <form action="" method="get">
13 <% for i, host in ipairs(hosts) do %>
14 <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
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>
23 <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
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%>&host=<%=current_host%>" />
34 <% if is_index then %></a><% end %>