X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_listing.inc;h=911c904f06dc254c12121b74081c25d0b17e3bc8;hb=570a78f23ea42fe930518d1b272a275e3e0032ab;hp=28d2165ed565d53d1a6946037754394408e1039f;hpb=26e6b3fb3fe3965db81a8316de7026d59f9df792;p=gosa.git 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) {