From: hickert Date: Thu, 24 Nov 2005 07:51:38 +0000 (+0000) Subject: Added rangeselector X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b18eacbec1cb3dc6d092ec70ae486851df286b5b;p=gosa.git Added rangeselector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2037 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/logview/class_logview.inc b/plugins/addons/logview/class_logview.inc index e97f68b7e..f1ebe0518 100644 --- a/plugins/addons/logview/class_logview.inc +++ b/plugins/addons/logview/class_logview.inc @@ -16,6 +16,7 @@ class logview extends plugin var $loglevellist= array(); var $tilist= array(); var $fields= array("log_level", "host", "time_stamp", "message"); + var $range = 25; function logview ($config, $dn= NULL) { @@ -93,6 +94,10 @@ class logview extends plugin /* Call parent execute */ plugin::execute(); + if(isset($_POST['EntriesPerPage'])){ + $this->range = $_POST['EntriesPerPage']; + } + /* Ignore if not defined */ if (!isset($this->config->data['SERVERS']['LOG'])){ return; @@ -158,7 +163,7 @@ class logview extends plugin $line= mysql_fetch_array($result, MYSQL_ASSOC); $count= $line['COUNT(*)']; if ($count > 25){ - $smarty->assign("range_selector", range_selector($count, $this->start, 25)); + $smarty->assign("range_selector", range_selector($count, $this->start, $this->range,"EntriesPerPage")); } /* Assemble time query */