From 86125112db2dcd406bad955e500a8afd8c8fe55c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Oct 2007 08:41:06 +0000 Subject: [PATCH] Fixed list handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7626 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addons/gotomasses/class_divListMasses.inc | 33 +++++++++---------- .../addons/gotomasses/class_gotomasses.inc | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/plugins/addons/gotomasses/class_divListMasses.inc b/plugins/addons/gotomasses/class_divListMasses.inc index f6c1bea9c..ff912bd29 100644 --- a/plugins/addons/gotomasses/class_divListMasses.inc +++ b/plugins/addons/gotomasses/class_divListMasses.inc @@ -28,7 +28,22 @@ class divListMasses extends MultiSelectWindow $this->$name = TRUE; $this->AddCheckBox($name,$desc,$desc,TRUE); } - $this->GenHeader(); + $plug = $_GET['plug']; + + /* Toggle all selected / deselected */ + $chk = ""; + + /* set Page header */ + $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); + + $this->AddHeader(array("string"=>""._("Target")."")); + $this->AddHeader(array("string"=>""._("Schedule")."", + "attach"=>"style='width:100px;'")); + $this->AddHeader(array("string"=>""._("Type")."", + "attach"=>"style='width:80px;'")); + $this->AddHeader(array("string"=>_("Action"), + "attach"=>"style='border-right:0px;width:40px;'")); } function GenHeader() @@ -49,22 +64,6 @@ class divListMasses extends MultiSelectWindow /* Create divlist */ $this->SetListHeader($header); - $plug = $_GET['plug']; - - /* Toggle all selected / deselected */ - $chk = ""; - - /* set Page header */ - $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); - - $this->AddHeader(array("string"=>""._("Target")."")); - $this->AddHeader(array("string"=>""._("Schedule")."", - "attach"=>"style='width:100px;'")); - $this->AddHeader(array("string"=>""._("Type")."", - "attach"=>"style='width:80px;'")); - $this->AddHeader(array("string"=>_("Action"), - "attach"=>"style='border-right:0px;width:40px;'")); } function execute() diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index e54e70119..1dc2d9fc0 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -176,7 +176,7 @@ class gotomasses extends plugin * Handle Divlist ************/ - $this->divlist->ClearElementsList(); + $this->divlist->execute(); $this->divlist->SetEntries($this->tasks); return($this->divlist->Draw()); } -- 2.30.2