From 31d9eeed8ba49cac9b2b9ebb3d1c77558df5ff0f Mon Sep 17 00:00:00 2001 From: sasha Date: Tue, 5 Aug 2008 12:01:53 +0000 Subject: - [DEV-198] Correct representation of disabled elements on the map (hosts, triggers) git-svn-id: svn://svn.zabbix.com/trunk@5870 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/map.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'frontends/php/map.php') diff --git a/frontends/php/map.php b/frontends/php/map.php index f88e7565..4a8f08a7 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -190,6 +190,12 @@ include_once "include/page_header.php"; $label_line = $el_info['name']; } + if (isset($el_info['disabled']) && $el_info['disabled'] == 1) + { + $info_line = S_DISABLED_BIG; + $label_color = $gray; + } + unset($el_info); if($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_HOST) @@ -198,9 +204,6 @@ include_once "include/page_header.php"; if( $label_type==MAP_LABEL_TYPE_IP ) $label_line=$host["ip"]; - - if( $host["status"] == HOST_STATUS_NOT_MONITORED ) - $label_color = $gray; } if($label_line=="" && $info_line=="") continue; -- cgit