summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-17 14:21:22 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-17 14:21:22 +0000
commite3a9c8732564acac5c5dce55cdfd201212752716 (patch)
tree9844116112cf4f8b9cbfdc848bfe15cc40c8626a /frontends/php/sysmap.php
parentb206daa4f6b4ce7cc3236578c6124788e023ac74 (diff)
downloadzabbix-e3a9c8732564acac5c5dce55cdfd201212752716.tar.gz
zabbix-e3a9c8732564acac5c5dce55cdfd201212752716.tar.xz
zabbix-e3a9c8732564acac5c5dce55cdfd201212752716.zip
- added "Host group" element to maps (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3499 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php
index e4208e73..209d2779 100644
--- a/frontends/php/sysmap.php
+++ b/frontends/php/sysmap.php
@@ -38,7 +38,7 @@ include_once "include/page_header.php";
"selementid"=> array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, NULL),
"elementid"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, 'isset({save})'),
- "elementtype"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1,2"), 'isset({save})'),
+ "elementtype"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1,2,3"), 'isset({save})'),
"label"=> array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({save})'),
"x"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535),'isset({save})'),
"y"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535),'isset({save})'),
@@ -193,9 +193,10 @@ include_once "include/page_header.php";
while($db_element = DBfetch($db_elements))
{
- if( $db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_HOST) $type = "Host";
- elseif($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_MAP) $type = "Map";
- elseif($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_IMAGE) $type = "Image";
+ if( $db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_HOST) $type = S_HOST;
+ elseif($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_MAP) $type = S_MAP;
+ elseif($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_TRIGGER) $type = S_TRIGGER;
+ elseif($db_element["elementtype"] == SYSMAP_ELEMENT_TYPE_HOST_GROUP) $type = S_HOST_GROUP;
else $type = "Map element";
$table->addRow(array(