diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-18 13:48:30 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-18 13:48:30 +0000 |
commit | 0c41b372231806c3dbd75a7f1c2042b56b910a5b (patch) | |
tree | 55e9e0522fb7158c09934a925c180d8f9dcca363 /frontends/php/triggers.php | |
parent | 5da5f464180147ff1c28db495dc13149c79f4060 (diff) | |
download | zabbix-0c41b372231806c3dbd75a7f1c2042b56b910a5b.tar.gz zabbix-0c41b372231806c3dbd75a7f1c2042b56b910a5b.tar.xz zabbix-0c41b372231806c3dbd75a7f1c2042b56b910a5b.zip |
- [DEV-89] added more comfortable Triggers view (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5192 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/triggers.php')
-rw-r--r-- | frontends/php/triggers.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php index a8f68013..6bdd0c47 100644 --- a/frontends/php/triggers.php +++ b/frontends/php/triggers.php @@ -377,14 +377,15 @@ include_once "include/page_header.php"; $table = new CTableInfo(S_NO_TRIGGERS_DEFINED); $table->setHeader(array( + make_sorting_link(S_SEVERITY,'t.priority'), + make_sorting_link(S_STATUS,'t.status'), + $_REQUEST["hostid"] > 0 ? NULL : make_sorting_link(S_HOST,'h.host'), array( new CCheckBox("all_triggers",NULL, "CheckAll('".$form->GetName()."','all_triggers');") ,make_sorting_link(S_NAME,'t.description'), ), S_EXPRESSION, - make_sorting_link(S_SEVERITY,'t.priority'), - make_sorting_link(S_STATUS,'t.status'), S_ERROR)); $sql = 'SELECT DISTINCT h.hostid,h.host,t.*'. @@ -481,11 +482,11 @@ include_once "include/page_header.php"; if($row["error"]=="") $row["error"]=SPACE; $table->addRow(array( + $priority, + $status, $_REQUEST["hostid"] > 0 ? NULL : $row["host"], $description, explode_exp($row["expression"],1), - $priority, - $status, $row["error"] )); } |