summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-07 07:47:25 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-07 07:47:25 +0000
commit7a4b3f6a57f9b063f5acb77ecded743dc139f8cf (patch)
tree80f1d3dbd0af363c16ab00e94f0d09dd736c1f3c /frontends/php/include/forms.inc.php
parenta3c18691bd39cd254cf8636fceae94c22c1b6a4a (diff)
downloadzabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.tar.gz
zabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.tar.xz
zabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.zip
- improved filter by hosts and groups (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2723 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 4a9b883e..078a4f95 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -447,10 +447,10 @@
$frmItem->AddRow(S_KEEP_TRENDS_IN_DAYS, new CTextBox("trends",$trends,8));
$cmbStatus = new CComboBox("status",$status);
- $cmbStatus->AddItem(0,S_MONITORED);
- $cmbStatus->AddItem(1,S_DISABLED);
+ $cmbStatus->AddItem(ITEM_STATUS_ACTIVE,S_MONITORED);
+ $cmbStatus->AddItem(ITEM_STATUS_DISABLED,S_DISABLED);
# $cmbStatus->AddItem(2,"Trapper");
- $cmbStatus->AddItem(3,S_NOT_SUPPORTED);
+ $cmbStatus->AddItem(ITEM_STATUS_NOTSUPPORTED,S_NOT_SUPPORTED);
$frmItem->AddRow(S_STATUS,$cmbStatus);
if($value_type==ITEM_VALUE_TYPE_LOG)
@@ -1592,7 +1592,7 @@
// Simple graph
$result=DBselect("select h.host,i.description,i.itemid,i.key_".
" from hosts h,items i where h.hostid=i.hostid".
- " and h.status=".HOST_STATUS_MONITORED." and i.status=0".
+ " and h.status=".HOST_STATUS_MONITORED." and i.status=".ITEM_STATUS_ACTIVE.
" order by h.host,i.description");
@@ -1623,7 +1623,7 @@
// Plain text
$result=DBselect("select h.host,i.description,i.itemid,i.key_".
" from hosts h,items i where h.hostid=i.hostid".
- " and h.status=".HOST_STATUS_MONITORED." and i.status=0".
+ " and h.status=".HOST_STATUS_MONITORED." and i.status=".ITEM_STATUS_ACTIVE.
" order by h.host,i.description");
$cmbHosts = new CComboBox("resourceid",$resourceid);