2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
10 http://www.apache.org/licenses/LICENSE-2.0
17 <h2><a id="content" name="content"><%:Statistics%></a></h2>
19 <form action="" method="get">
21 <% for i, host in ipairs(hosts) do %>
22 <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
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>
31 <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
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%>&host=<%=current_host%>" />
42 <% if is_index then %></a><% end %>