From b18eacbec1cb3dc6d092ec70ae486851df286b5b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Nov 2005 07:51:38 +0000 Subject: [PATCH] Added rangeselector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2037 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/logview/class_logview.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */ -- 2.30.2