From 0db5010365e68d85776cc095012f95d6b2cdcd60 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 24 Jun 2001 17:14:02 +0000 Subject: Change of sysmap information became possible. git-svn-id: svn://svn.zabbix.com/trunk@107 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmaps.html | 48 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 11 deletions(-) (limited to 'frontends/php/sysmaps.html') diff --git a/frontends/php/sysmaps.html b/frontends/php/sysmaps.html index 955e3b56..69324727 100644 --- a/frontends/php/sysmaps.html +++ b/frontends/php/sysmaps.html @@ -17,6 +17,10 @@ { add_sysmap($name,$width,$height); } + if($register=="update") + { + update_sysmap($sysmapid,$name,$width,$height); + } if($register=="delete") { delete_sysmap($sysmapid); @@ -48,14 +52,14 @@ $col=1; } - $sysmapid=DBget_field($result,$i,0); - $name=DBget_field($result,$i,1); - $width=DBget_field($result,$i,2); - $height=DBget_field($result,$i,3); - echo "$name"; - echo "$width"; - echo "$height"; - echo "Change - Delete"; + $sysmapid_=DBget_field($result,$i,0); + $name_=DBget_field($result,$i,1); + $width_=DBget_field($result,$i,2); + $height_=DBget_field($result,$i,3); + echo "$name_"; + echo "$width_"; + echo "$height_"; + echo "Change - Delete"; echo ""; } echo ""; @@ -64,28 +68,50 @@ "; + if(isset($sysmapid)) + { + $result=DBselect("select s.sysmapid,s.name,s.width,s.height from sysmaps s where sysmapid=$sysmapid"); + $name=DBget_field($result,0,1); + $width=DBget_field($result,0,2); + $height=DBget_field($result,0,3); + } + else + { + $name=""; + $width=800; + $height=600; + } + echo "
"; show_table2_header_begin(); echo "New system map"; show_table2_v_delimiter(); echo "
"; + if(isset($sysmapid)) + { + echo ""; + } echo "Name"; show_table2_h_delimiter(); - echo ""; + echo ""; show_table2_v_delimiter(); echo "Width"; show_table2_h_delimiter(); - echo ""; + echo ""; show_table2_v_delimiter(); echo "Height"; show_table2_h_delimiter(); - echo ""; + echo ""; show_table2_v_delimiter2(); echo ""; + if(isset($sysmapid)) + { + echo ""; + } show_table2_header_end(); ?> -- cgit