summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-08-13 05:53:05 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-08-13 05:53:05 +0000
commitb01bcb49f9b0d80308cb7724bfe3b4aecbb1c114 (patch)
tree75cc311c7f3364ce1a72cf458c388c5077b3585b /frontends/php/sysmap.html
parent2d42de62ddd7faf462a1f5850fa80bedeb8d48d1 (diff)
downloadzabbix-b01bcb49f9b0d80308cb7724bfe3b4aecbb1c114.tar.gz
zabbix-b01bcb49f9b0d80308cb7724bfe3b4aecbb1c114.tar.xz
zabbix-b01bcb49f9b0d80308cb7724bfe3b4aecbb1c114.zip
Added status line to PHP froms.
git-svn-id: svn://svn.zabbix.com/trunk@166 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.html')
-rw-r--r--frontends/php/sysmap.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/frontends/php/sysmap.html b/frontends/php/sysmap.html
index 6e3a178d..873a8bec 100644
--- a/frontends/php/sysmap.html
+++ b/frontends/php/sysmap.html
@@ -15,24 +15,29 @@
{
if($register=="add")
{
- add_host_to_sysmap($sysmapid,$hostid,$label,$x,$y,$icon);
+ $result=add_host_to_sysmap($sysmapid,$hostid,$label,$x,$y,$icon);
+ show_messages($result,"Host added","Cannot add host");
}
if($register=="update")
{
- update_sysmap_host($shostid,$sysmapid,$hostid,$label,$x,$y,$icon);
+ $result=update_sysmap_host($shostid,$sysmapid,$hostid,$label,$x,$y,$icon);
+ show_messages($result,"Host updated","Cannot update host");
}
if($register=="add link")
{
- add_link($sysmapid,$shostid1,$shostid2);
+ $result=add_link($sysmapid,$shostid1,$shostid2);
+ show_messages($result,"Link added","Cannot add link");
}
if($register=="delete_link")
{
- delete_link($linkid);
+ $result=delete_link($linkid);
+ show_messages($result,"Link deleted","Cannot delete link");
unset($linkid);
}
if($register=="delete")
{
- delete_sysmaps_host($shostid);
+ $result=delete_sysmaps_host($shostid);
+ show_messages($result,"Host deleted","Cannot delete host");
unset($shostid);
}
}