Code

Fixed list handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Oct 2007 08:41:06 +0000 (08:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Oct 2007 08:41:06 +0000 (08:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7626 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_divListMasses.inc
plugins/addons/gotomasses/class_gotomasses.inc

index f6c1bea9c96b3def9bbf1138130ccee2443dcda3..ff912bd290c8627ded06a77ace29f98e6c3f529a 100644 (file)
@@ -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 = "<input type='checkbox' id='select_all' name='select_all'
+               onClick='toggle_all_(\"^item_selected_[0-9]*$\",\"select_all\");' >";
+
+    /* set Page header */
+    $this->AddHeader(array("string"=> $chk,          "attach"=>"style='width:20px;'"));
+
+    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=object'>"._("Target")."</a>"));
+    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=schedule'>"._("Schedule")."</a>",
+                                      "attach"=>"style='width:100px;'"));
+    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=action'>"._("Type")."</a>",
+                                      "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 = "<input type='checkbox' id='select_all' name='select_all'
-               onClick='toggle_all_(\"^item_selected_[0-9]*$\",\"select_all\");' >";
-
-    /* set Page header */
-    $this->AddHeader(array("string"=> $chk,          "attach"=>"style='width:20px;'"));
-
-    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=object'>"._("Target")."</a>"));
-    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=schedule'>"._("Schedule")."</a>",
-                                      "attach"=>"style='width:100px;'"));
-    $this->AddHeader(array("string"=>"<a href='?plug=".$plug."&amp;sort=action'>"._("Type")."</a>",
-                                      "attach"=>"style='width:80px;'"));
-    $this->AddHeader(array("string"=>_("Action"),
-                                      "attach"=>"style='border-right:0px;width:40px;'"));
   }
 
   function execute()
index e54e70119368a01baea7a783202889f443d562e7..1dc2d9fc08ce739ee5e329f988d54173bed3d388 100644 (file)
@@ -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());
   }