summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
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(