diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-06 12:36:19 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-06 12:36:19 +0000 |
commit | d31ab2fdc7a4e1629c62480005e7df1e9c412944 (patch) | |
tree | a256fc701506ed857cf429dccf2fa166babc5afb /frontends/php/sysmap.php | |
parent | 9ef27a42a050c16a0e76757507d922b5798eb2ef (diff) | |
download | zabbix-d31ab2fdc7a4e1629c62480005e7df1e9c412944.tar.gz zabbix-d31ab2fdc7a4e1629c62480005e7df1e9c412944.tar.xz zabbix-d31ab2fdc7a4e1629c62480005e7df1e9c412944.zip |
- added 'UNKNOWN' status for elements of map (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3871 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r-- | frontends/php/sysmap.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index 209d2779..703fdd8d 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -44,6 +44,7 @@ include_once "include/page_header.php"; "y"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535),'isset({save})'), "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})'), "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})'), @@ -82,8 +83,8 @@ include_once "include/page_header.php"; $result=update_sysmap_element($_REQUEST["selementid"], $_REQUEST["sysmapid"],$_REQUEST["elementid"],$_REQUEST["elementtype"], $_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"], - $_REQUEST["iconid_off"],$_REQUEST["url"],$_REQUEST["iconid_on"], - $_REQUEST["label_location"]); + $_REQUEST["iconid_off"],$_REQUEST["iconid_unknown"],$_REQUEST["iconid_on"], + $_REQUEST["url"],$_REQUEST["label_location"]); $selementid = $_REQUEST["selementid"]; show_messages($result,"Element updated","Cannot update element"); @@ -92,8 +93,8 @@ include_once "include/page_header.php"; { // add element $result=add_element_to_sysmap($_REQUEST["sysmapid"],$_REQUEST["elementid"], $_REQUEST["elementtype"],$_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"], - $_REQUEST["iconid_off"],$_REQUEST["url"],$_REQUEST["iconid_on"], - $_REQUEST["label_location"]); + $_REQUEST["iconid_off"],$_REQUEST["iconid_unknown"],$_REQUEST["iconid_on"], + $_REQUEST["url"],$_REQUEST["label_location"]); $selementid = $result; show_messages($result,"Element added","Cannot add element"); @@ -186,7 +187,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_ON,S_ICON_OFF)); + $table->SetHeader(array(S_LABEL,S_TYPE,S_X,S_Y,S_ICON_OFF,S_ICON_ON,S_ICON_UNKNOWN)); $db_elements = DBselect("select * from sysmaps_elements where sysmapid=".$_REQUEST["sysmapid"]. " order by label"); @@ -208,8 +209,9 @@ include_once "include/page_header.php"; nbsp($type), $db_element["x"], $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_off"],"no image",NULL) + new CImg("image.php?height=24&imageid=".$db_element["iconid_unknown"],"no image",NULL) )); } $table->show(); |