diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-03 19:05:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-03 19:05:34 +0000 |
commit | 71449d76e71db089dfb158710057aecba7de8a59 (patch) | |
tree | 3ca864247b746e0dfc16ac7f873a00b2fb8a559e /applications/luci-statistics/luasrc/view | |
parent | 56a23c609c30cf6c477bf6523661a44821da1819 (diff) |
* luci/statistics: implement timespan selection in public interface
Diffstat (limited to 'applications/luci-statistics/luasrc/view')
-rw-r--r-- | applications/luci-statistics/luasrc/view/public_statistics/graph.htm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/luci-statistics/luasrc/view/public_statistics/graph.htm b/applications/luci-statistics/luasrc/view/public_statistics/graph.htm index 33678bdcb..f3be3ab8a 100644 --- a/applications/luci-statistics/luasrc/view/public_statistics/graph.htm +++ b/applications/luci-statistics/luasrc/view/public_statistics/graph.htm @@ -2,6 +2,15 @@ <h1>Statistik</h1> +<form action="" method="get"> + <select name="timespan"> + <% for i, span in ipairs(timespans) do %> + <option<% if span == current_timespan then %> selected="selected"<% end %>><%=span%></option> + <% end %> + </select> + <input type="submit" name="submit" value="<%:stat_showtimespan Display timespan »%>" /> +</form> + <% for i, img in ipairs(images) do %> <img src="/rrdimg/<%=img%>" /> <% end %> |