diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-18 11:51:04 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-18 11:51:04 +0000 |
| commit | f4902ced5d3d853ad2c3e67f270d456e4b7071bf (patch) | |
| tree | 935974ca6219ab744771078295c672ec65609b9e /frontends/php/popup.php | |
| parent | f9d1dc16f4be4db410cb9aeced999aeb68d35409 (diff) | |
| download | zabbix-f4902ced5d3d853ad2c3e67f270d456e4b7071bf.tar.gz zabbix-f4902ced5d3d853ad2c3e67f270d456e4b7071bf.tar.xz zabbix-f4902ced5d3d853ad2c3e67f270d456e4b7071bf.zip | |
- added selection button for item keys (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2854 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
| -rw-r--r-- | frontends/php/popup.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php index ba8c4228..d79fa962 100644 --- a/frontends/php/popup.php +++ b/frontends/php/popup.php @@ -89,7 +89,16 @@ update_profile("web.popup.groupid",$groupid); if($groupid == 0) unset($groupid); } - + if(in_array($srctbl,array("help_items"))) + { + $itemtype = get_request("itemtype",get_profile("web.popup.itemtype",0)); + $cmbTypes = new CComboBox("itemtype",$itemtype,"submit()"); + $cmbTypes->AddItem(ITEM_TYPE_ZABBIX,S_ZABBIX_AGENT); + $cmbTypes->AddItem(ITEM_TYPE_SIMPLE,S_SIMPLE_CHECK); + $cmbTypes->AddItem(ITEM_TYPE_INTERNAL,S_ZABBIX_INTERNAL); + $cmbTypes->AddItem(ITEM_TYPE_AGGREGATE,S_ZABBIX_AGGREGATE); + $frmTitle->AddItem(array(S_TYPE,SPACE,$cmbTypes)); + } if(in_array($srctbl,array("triggers","logitems"))) { $hostid = get_request("hostid",get_profile("web.popup.hostid",0)); @@ -183,7 +192,7 @@ $table = new CTableInfo(S_NO_ITEMS); $table->SetHeader(array(S_KEY,S_DESCRIPTION)); - $sql = "select key_,key_ from items limit 10"; + $sql = "select * from help_items where itemtype=$itemtype order by key_"; $result = DBselect($sql); while($row = DBfetch($result)) @@ -196,7 +205,7 @@ $table->addRow(array( $name, - $row["key_"] + $row["description"] )); } $table->show(); |
