From: hickert Date: Thu, 24 Nov 2005 06:35:53 +0000 (+0000) Subject: Added new range selector X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30e4812f3bdd7cf2b761dd1874d0f710e4dbd431;p=gosa.git Added new range selector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2029 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc index fa8aef008..7cb1f85e9 100644 --- a/plugins/addons/mailqueue/class_mailqueue.inc +++ b/plugins/addons/mailqueue/class_mailqueue.inc @@ -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 */