summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-01 15:22:18 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-01 15:22:18 +0000
commit952a05bef085325923c141e15b0fb88aaf5262ee (patch)
tree5719968dc76637180f36b2bc4d1c67ef490d9f67 /frontends/php/sysmap.php
parente040ad4ad0dbec022158c000590ee7eb5b412a66 (diff)
downloadzabbix-952a05bef085325923c141e15b0fb88aaf5262ee.tar.gz
zabbix-952a05bef085325923c141e15b0fb88aaf5262ee.tar.xz
zabbix-952a05bef085325923c141e15b0fb88aaf5262ee.zip
- [DEV-195] added support of source ip address
git-svn-id: svn://svn.zabbix.com/trunk@5864 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php
index e963cfed..f4d3cbf5 100644
--- a/frontends/php/sysmap.php
+++ b/frontends/php/sysmap.php
@@ -45,6 +45,7 @@ include_once "include/page_header.php";
"iconid_off"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, 'isset({save})'),
"iconid_on"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, 'isset({save})'),
"iconid_unknown"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, 'isset({save})'),
+ "iconid_disabled"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, 'isset({save})'),
"url"=> array(T_ZBX_STR, O_OPT, NULL, NULL, 'isset({save})'),
"label_location"=>array(T_ZBX_INT, O_OPT, NULL, IN("-1,0,1,2,3"),'isset({save})'),
@@ -81,7 +82,7 @@ include_once "include/page_header.php";
$_REQUEST["sysmapid"],$_REQUEST["elementid"],$_REQUEST["elementtype"],
$_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"],
$_REQUEST["iconid_off"],$_REQUEST["iconid_unknown"],$_REQUEST["iconid_on"],
- $_REQUEST["url"],$_REQUEST["label_location"]);
+ $_REQUEST["iconid_disabled"],$_REQUEST["url"],$_REQUEST["label_location"]);
$selementid = $_REQUEST["selementid"];
show_messages($result,"Element updated","Cannot update element");
@@ -91,7 +92,7 @@ include_once "include/page_header.php";
$result=add_element_to_sysmap($_REQUEST["sysmapid"],$_REQUEST["elementid"],
$_REQUEST["elementtype"],$_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"],
$_REQUEST["iconid_off"],$_REQUEST["iconid_unknown"],$_REQUEST["iconid_on"],
- $_REQUEST["url"],$_REQUEST["label_location"]);
+ $_REQUEST["iconid_disabled"],$_REQUEST["url"],$_REQUEST["label_location"]);
$selementid = $result;
show_messages($result,"Element added","Cannot add element");
@@ -173,7 +174,7 @@ include_once "include/page_header.php";
"return redirect('".$page["file"]."?form=add_element".url_param("sysmapid")."');"));
$table = new CTableInfo();
- $table->SetHeader(array(S_LABEL,S_TYPE,S_X,S_Y,S_ICON_OFF,S_ICON_ON,S_ICON_UNKNOWN));
+ $table->SetHeader(array(S_LABEL,S_TYPE,S_X,S_Y,S_ICON_OFF,S_ICON_ON,S_ICON_UNKNOWN,S_ICON_DISABLED));
$db_elements = DBselect("select * from sysmaps_elements where sysmapid=".$_REQUEST["sysmapid"].
" order by label");
@@ -196,7 +197,8 @@ include_once "include/page_header.php";
$db_element["y"],
new CImg("image.php?height=24&imageid=".$db_element["iconid_off"],"no image",NULL),
new CImg("image.php?height=24&imageid=".$db_element["iconid_on"],"no image",NULL),
- new CImg("image.php?height=24&imageid=".$db_element["iconid_unknown"],"no image",NULL)
+ new CImg("image.php?height=24&imageid=".$db_element["iconid_unknown"],"no image",NULL),
+ new CImg("image.php?height=24&imageid=".$db_element["iconid_disabled"],"no image",NULL)
));
}
$table->show();