From b01bcb49f9b0d80308cb7724bfe3b4aecbb1c114 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 13 Aug 2001 05:53:05 +0000 Subject: Added status line to PHP froms. git-svn-id: svn://svn.zabbix.com/trunk@166 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'frontends/php/sysmap.html') 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); } } -- cgit