From d76992f73658df06227395e4a79c4366294efebe Mon Sep 17 00:00:00 2001 From: osmiy Date: Thu, 16 Mar 2006 15:26:21 +0000 Subject: - 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 --- frontends/php/triggers.php | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'frontends/php/triggers.php') 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(); -- cgit