From 570a78f23ea42fe930518d1b272a275e3e0032ab Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 28 Aug 2009 13:48:42 +0000 Subject: [PATCH] Height configuration git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14162 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 28d2165ed..911c904f0 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -50,6 +50,7 @@ class listing { var $exporter= array(); var $exportColumns= array(); var $useSpan= false; + var $height= 0; function listing($filename) @@ -102,6 +103,12 @@ class listing { } + function setHeight($height) + { + $this->height= $height; + } + + function setSnapshotHandler($handler) { $this->snapshotHandler= &$handler; @@ -257,8 +264,14 @@ class listing { // Initialize list $result= "\n"; + $height= 450; + if ($this->height != 0) { + $result= "\n"; + $height= $this->height; + } + $result.= "
\n"; - $result.= " + $result.= "
\n"; // New table for the real list contents - $result.= "
\n"; $this->numColumns= count($this->colprops) + ($this->multiSelect?1:0); @@ -275,7 +288,7 @@ class listing { $result.= "
 
\n"; + $result.= "
\n"; // No results? Just take an empty colspanned row if (count($this->entries) + count($this->departments) == 0) { -- 2.30.2