From 7a4b3f6a57f9b063f5acb77ecded743dc139f8cf Mon Sep 17 00:00:00 2001 From: osmiy Date: Fri, 7 Apr 2006 07:47:25 +0000 Subject: - improved filter by hosts and groups (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2723 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontends/php/include/forms.inc.php') 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); -- cgit