1
0

graph.htm 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2 name="content"><%:Statistics%></h2>
  8. <form action="" method="get">
  9. <select name="host">
  10. <% for i, host in ipairs(hosts) do %>
  11. <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
  12. <% end %>
  13. </select>
  14. <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display Host »%>" />
  15. <select name="timespan">
  16. <% for i, span in ipairs(timespans) do %>
  17. <option<% if span == current_timespan then %> selected="selected"<% end %>><%=span%></option>
  18. <% end %>
  19. </select>
  20. <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
  21. </form>
  22. <br />
  23. <hr />
  24. <br />
  25. <div style="text-align: center">
  26. <% for i, img in ipairs(images) do %>
  27. <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
  28. <br />
  29. <% end %>
  30. </div>
  31. <%+footer%>