From 054a546ff167d60bb13d0ecfc79dc1c1bce2cff0 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 24 Jun 2001 14:05:36 +0000 Subject: Several changes: - added map.html maps.html sysmap.html - support for system (network) maps git-svn-id: svn://svn.zabbix.com/trunk@105 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.html | 226 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 frontends/php/sysmap.html (limited to 'frontends/php/sysmap.html') diff --git a/frontends/php/sysmap.html b/frontends/php/sysmap.html new file mode 100644 index 00000000..cebe1de5 --- /dev/null +++ b/frontends/php/sysmap.html @@ -0,0 +1,226 @@ + + +"; +?> + + + +"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + show_table_header("DISPLAYED HOSTS"); + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y from sysmaps_hosts sh,hosts h where sh.sysmapid=$sysmapid and h.hostid=sh.hostid"); + echo "
"; + $col=0; + for($i=0;$i"; + $col=0; + } else + { + echo "
"; + $col=1; + } + + $host=DBget_field($result,$i,0); + $shostid=DBget_field($result,$i,1); + $sysmapid=DBget_field($result,$i,2); + $hostid=DBget_field($result,$i,3); + $label=DBget_field($result,$i,4); + $x=DBget_field($result,$i,5); + $y=DBget_field($result,$i,6); + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo "
HostLabelXYActions
$host$label$x$yDelete
"; +?> + +"; + echo "ID"; + echo "Host 1"; + echo "Host 2"; + echo "Actions"; + echo ""; + + $result=DBselect("select linkid,shostid1,shostid2 from sysmaps_links order by linkid"); + echo "
"; + $col=0; + for($i=0;$i"; + $col=0; + } else + { + echo ""; + $col=1; + } + + $linkid=DBget_field($result,$i,0); + $shostid1=DBget_field($result,$i,1); + $shostid2=DBget_field($result,$i,2); + + $result1=DBselect("select label from sysmaps_hosts where shostid=$shostid1"); + $label1=DBget_field($result1,0,0); + $result1=DBselect("select label from sysmaps_hosts where shostid=$shostid2"); + $label2=DBget_field($result1,0,0); + + echo "$linkid"; + echo "$label1"; + echo "$label2"; + echo "Delete"; + echo ""; + } + echo ""; +?> + + + + + + + + +"; + show_table2_header_begin(); + echo "New host to display"; + + show_table2_v_delimiter(); + echo "
"; + echo "Host"; + show_table2_h_delimiter(); + $result=DBselect("select hostid,host from hosts order by host"); + echo ""; + + show_table2_v_delimiter(); + echo "Label"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter(); + echo "Coordinate X"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter(); + echo "Coordinate Y"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter2(); + echo ""; + + show_table2_header_end(); +?> + + + + + + + + + + + + +"; + show_table2_header_begin(); + echo "New connector"; + + show_table2_v_delimiter(); + echo ""; + echo "Host 1"; + show_table2_h_delimiter(); + $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=$sysmapid order by label"); + echo ""; + + show_table2_v_delimiter(); + echo ""; + echo "Host 2"; + show_table2_h_delimiter(); + $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=$sysmapid order by label"); + echo ""; + + show_table2_v_delimiter2(); + echo ""; + + show_table2_header_end(); +?> + + -- cgit