diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-29 04:24:45 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-29 04:24:45 +0000 |
| commit | c79f8f2fa32a24fb2d5ae2b2e5e8cbad8b3fdf82 (patch) | |
| tree | 0933b84b72e82503e92afba4628a153d40049e36 /frontends/php/hosts.php | |
| parent | d6979e8ed003b82e31e7bd7402efa5264b4a8430 (diff) | |
| download | zabbix-c79f8f2fa32a24fb2d5ae2b2e5e8cbad8b3fdf82.tar.gz zabbix-c79f8f2fa32a24fb2d5ae2b2e5e8cbad8b3fdf82.tar.xz zabbix-c79f8f2fa32a24fb2d5ae2b2e5e8cbad8b3fdf82.zip | |
Changes in forms.
git-svn-id: svn://svn.zabbix.com/trunk@471 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index 980a5b32..10eb2f09 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -22,16 +22,19 @@ { $result=add_host($HTTP_GET_VARS["host"],$HTTP_GET_VARS["port"],$HTTP_GET_VARS["status"],$HTTP_GET_VARS["template"],$HTTP_GET_VARS["useip"],$HTTP_GET_VARS["ip"],$HTTP_GET_VARS["host_templateid"]); show_messages($result,"Host added","Cannot add host"); + unset($HTTP_GET_VARS["hostid"]); } if($HTTP_GET_VARS["register"]=="update") { $result=update_host($HTTP_GET_VARS["hostid"],$HTTP_GET_VARS["host"],$HTTP_GET_VARS["port"],$HTTP_GET_VARS["status"],$HTTP_GET_VARS["useip"],$HTTP_GET_VARS["ip"]); show_messages($result,"Host details updated","Cannot update host details"); + unset($HTTP_GET_VARS["hostid"]); } if($HTTP_GET_VARS["register"]=="changestatus") { $result=update_host_status($HTTP_GET_VARS["hostid"],$HTTP_GET_VARS["status"]); show_messages($result,"Host status updated","Cannot update host status"); + unset($HTTP_GET_VARS["hostid"]); } if($HTTP_GET_VARS["register"]=="delete") { @@ -47,6 +50,8 @@ ?> <? + if(!isset($HTTP_GET_VARS["hostid"])) +{ echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>"; echo "<TR>"; echo "<TD WIDTH=3% NOSAVE><B>Id</B></TD>"; @@ -105,6 +110,7 @@ echo "</TR>"; } echo "</TABLE>"; +} ?> <? |
