diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-16 15:26:21 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-16 15:26:21 +0000 |
| commit | d76992f73658df06227395e4a79c4366294efebe (patch) | |
| tree | 20acf2af5d2155e07401c4903b9bb4cddfb4fec2 /frontends/php/triggers.php | |
| parent | f9fade8feec4ed06a5f433f87d09adc4098bb51e (diff) | |
| download | zabbix-d76992f73658df06227395e4a79c4366294efebe.tar.gz zabbix-d76992f73658df06227395e4a79c4366294efebe.tar.xz zabbix-d76992f73658df06227395e4a79c4366294efebe.zip | |
- added trigger selecton from popup (Eugene)
- improved popup selection (Eugene)
- improved "IT services" configuration (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2702 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/triggers.php')
| -rw-r--r-- | frontends/php/triggers.php | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php index d5eb36e3..9ddf81bf 100644 --- a/frontends/php/triggers.php +++ b/frontends/php/triggers.php @@ -268,14 +268,11 @@ $form->SetName('triggers'); $form->AddVar('hostid',$_REQUEST["hostid"]); - $table = new CTableInfo(); + $table = new CTableInfo(S_NO_TRIGGERS_DEFINED); $table->setHeader(array( -// array( new CCheckBox("all_items",NULL,NULL, -// "CheckAll('".$form->GetName()."','all_items');") -// ,S_ID -// ), - array( new CCheckBox("all_items",NULL,NULL, - "CheckAll('".$form->GetName()."','all_items');") + $_REQUEST["hostid"] > 0 ? NULL : S_HOST, + array( new CCheckBox("all_triggers",NULL,NULL, + "CheckAll('".$form->GetName()."','all_triggers');") ,S_NAME ), S_EXPRESSION, S_SEVERITY, S_STATUS, S_ERROR)); @@ -297,16 +294,6 @@ continue; } -// $id= array( -// new CCheckBox( -// "g_triggerid[]", /* name */ -// NULL, /* checked */ -// NULL, /* caption */ -// NULL, /* action */ -// $row["triggerid"]) /* value */ -// , $row["triggerid"] -// ); - $description = array( new CCheckBox( "g_triggerid[]", /* name */ @@ -394,7 +381,7 @@ if($row["error"]=="") $row["error"]=SPACE; $table->addRow(array( -// $id, + $_REQUEST["hostid"] > 0 ? NULL : $row["host"], $description, explode_exp($row["expression"],1), $priority, @@ -412,7 +399,7 @@ array_push($footerButtons, SPACE); array_push($footerButtons, new CButton('group_delete','Delete selected', "return Confirm('".S_DELETE_SELECTED_TRIGGERS_Q."');")); - $table->SetFooter(new CCol($footerButtons),'table_footer'); + $table->SetFooter(new CCol($footerButtons)); $form->AddItem($table); $form->Show(); |
