diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-31 19:36:26 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-31 19:36:26 +0000 |
| commit | 35f1bf4df0d9c6fa1c9efdba17b5c13b4a5f6d4c (patch) | |
| tree | 0e14514e261e126b08eabe5e18a7f8bd0a5d8121 /frontends/php/include | |
| parent | 2c1ad02156a29d5de41601f967b440aabeacb742 (diff) | |
Improvements for action form.
git-svn-id: svn://svn.zabbix.com/trunk@1228 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 9de998a3..f47ca730 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -30,6 +30,20 @@ return str_replace(" "," ",$str);; } + function url1_param($parameter) + { + global $HTTP_GET_VARS; + + if(isset($HTTP_GET_VARS[$parameter])) + { + return "$parameter=".$HTTP_GET_VARS[$parameter]; + } + else + { + return ""; + } + } + function url_param($parameter) { global $HTTP_GET_VARS; @@ -489,6 +503,24 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; return $ok; } + function get_scope_description($scope) + { + $desc="Unknown"; + if($scope==2) + { + $desc="All"; + } + elseif($scope==1) + { + $desc="Host"; + } + elseif($scope==0) + { + $desc="Trigger"; + } + return $desc; + } + function get_service_status_description($status) { $desc="<font color=\"#00AA00\">OK</a>"; |
