summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_status.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-03 10:46:04 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-03 10:46:04 +0000
commit7d149aa95e95bd330eddf3b89b4d12a247eaea93 (patch)
tree0c2514937f4ee0957ddcdf74caab5493f1edc716 /frontends/php/tr_status.php
parent9e13643b3cfdaf32f457e6325d24bcd8094f0ffb (diff)
- merged rev. 4508:4509 of branches/1.4.2 (Eugene) [- improved item and trigger filtering]
git-svn-id: svn://svn.zabbix.com/trunk@4510 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
-rw-r--r--frontends/php/tr_status.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index 071a5d2c..249329cf 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -292,15 +292,6 @@ include_once "include/page_header.php";
default: $sort="order by t.priority desc, t.description";
}
- if(isset($_REQUEST["btnSelect"])&&($_REQUEST["btnSelect"]=="Inverse select"))
- {
- $select_cond="not like '%$txt_select%'";
- }
- else
- {
- $select_cond="like '%$txt_select%'";
- }
-
$cond="";
if($_REQUEST["hostid"] > 0) $cond=" and h.hostid=".$_REQUEST["hostid"]." ";
@@ -309,7 +300,7 @@ include_once "include/page_header.php";
$result = DBselect("select distinct t.triggerid,t.status,t.description,t.expression,t.priority,".
" t.lastchange,t.comments,t.url,t.value,h.host from triggers t,hosts h,items i,functions f".
" where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and t.status=".TRIGGER_STATUS_ENABLED.
- " and t.description $select_cond and i.status=".ITEM_STATUS_ACTIVE.
+ " and i.status=".ITEM_STATUS_ACTIVE.
" and ".DBid2nodeid("t.triggerid")."=".$ZBX_CURNODEID.
" and h.hostid not in (".get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY, PERM_MODE_LT).") ".
" and h.status=".HOST_STATUS_MONITORED." $cond $sort");
@@ -328,9 +319,10 @@ include_once "include/page_header.php";
$elements=array();
-
$description = expand_trigger_description($row["triggerid"]);
+ if(isset($_REQUEST["btnSelect"]) && '' != $txt_select && ((stristr($description, $txt_select)) == ($_REQUEST["btnSelect"]=="Inverse select"))) continue;
+
if($row["url"] != "")
{
$description = new CLink($description, $row["url"]);