summaryrefslogtreecommitdiffstats
path: root/frontends/php/screenedit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-15 08:21:02 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-15 08:21:02 +0000
commit15b84090305640db312b39c8be647669eb0b5265 (patch)
tree2cefea49bb302b18f946f415c4e89a2b8f72e74e /frontends/php/screenedit.php
parent2497838d3b5277b74caa07247315019475c063a1 (diff)
downloadzabbix-15b84090305640db312b39c8be647669eb0b5265.tar.gz
zabbix-15b84090305640db312b39c8be647669eb0b5265.tar.xz
zabbix-15b84090305640db312b39c8be647669eb0b5265.zip
Finished changed related to host.available
git-svn-id: svn://svn.zabbix.com/trunk@1608 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screenedit.php')
-rw-r--r--frontends/php/screenedit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php
index ba7d399e..f1e37685 100644
--- a/frontends/php/screenedit.php
+++ b/frontends/php/screenedit.php
@@ -139,7 +139,7 @@
show_table2_v_delimiter();
echo nbsp(S_PARAMETER);
show_table2_h_delimiter();
- $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status in (0,2) and i.status=0 order by h.host,i.description");
+ $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status=".HOST_STATUS_MONITORED." and i.status=0 order by h.host,i.description");
echo "<select name=\"resourceid\" size=1>";
echo "<OPTION VALUE='0'>(none)";
for($i=0;$i<DBnum_rows($result);$i++)
@@ -157,7 +157,7 @@
show_table2_v_delimiter();
echo nbsp(S_PARAMETER);
show_table2_h_delimiter();
- $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status in (0,2) and i.status=0 order by h.host,i.description");
+ $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status=".HOST_STATUS_MONITORED." and i.status=0 order by h.host,i.description");
echo "<select name=\"resourceid\" size=1>";
echo "<OPTION VALUE='0'>(none)";
for($i=0;$i<DBnum_rows($result);$i++)