summaryrefslogtreecommitdiffstats
path: root/rrdtool-listgraphs-html.lsp
blob: 4cfe2b18d70f6c9751d47a41058582e8f92478ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<% local data, viewlibrary, page_info, session = ... 
require("viewfunctions")
%>

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=800,height=600,scrollbars=no,resizable=yes');
return false;
}
//-->
</SCRIPT>


<% icon="/skins/static/tango/16x16/apps/utilities-system-monitor.png" %>

<H1>Graphs</H1>
<% 
for grp,v in pairs(data) do
%>
<H2><% io.write(grp) %></H2>
	<% for k,graph in pairs(v) do %>
		<DL><DT>
		<A HREF="viewgraph?group=<%= grp %>&id=<%= k %>" onClick="return popup(this,'notes')"><IMG SRC='<%= icon %>' width='16' height='16'> <% io.write(graph.label or "Unknown") %></A></DT>
		<DD><% io.write(graph.descr or "") %></DD>
		</DL>
	<% end %>
<% end %>