Code

Added new range selector
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 06:35:53 +0000 (06:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 06:35:53 +0000 (06:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2029 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/mailqueue/class_mailqueue.inc

index fa8aef008b061452d1349156e649e409799baea7..7cb1f85e942da50d77b18b9664fa46ec30e594aa 100644 (file)
@@ -19,7 +19,7 @@ class mailqueue extends plugin
   var $OrderBy        = "Arrival";
   var $SortType       = "up";
   var $disp_header    = false;
-
+  var $range          = 20;   
 
   function mailqueue($config, $dn= NULL)
   {
@@ -40,6 +40,11 @@ class mailqueue extends plugin
   {
     /* Call parent execute */
     plugin::execute();
+
+    if(isset($_POST['EntriesPerPage'])){
+      $this->range = $_POST['EntriesPerPage'];
+    }
+
     $smarty= get_smarty();
     $error =false;
 
@@ -223,7 +228,7 @@ class mailqueue extends plugin
         $smarty->assign("p_times"       , $this->getTimes());
         $smarty->assign("p_timeKeys"    , array_flip($this->getTimes()));
         $smarty->assign("search_for"    , $this->Search);
-        $smarty->assign("range_selector", range_selector(count($entries), $this->Page, 20)); 
+        $smarty->assign("range_selector", range_selector(count($entries), $this->Page, $this->range,"EntriesPerPage")); 
         $smarty->assign("OrderBy"       , $this->OrderBy);
 
         /* Display sort arrow */