X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divlist.inc;h=cd12a5ebdf206bce265b25f4900e6dc206bd33eb;hb=b868e20368d036501ec2c97c67bc8362e00753cb;hp=69d43a1fb1b97005c0c3ba17f11d575cf1a41168;hpb=3665e2ce16701da340dcbc6a2b4a167344785aa6;p=gosa.git diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 69d43a1fb..cd12a5ebd 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -16,8 +16,8 @@ class divlist { var $i_currentPage; var $i_entriesPerPage; - var $height_forced = false; - + var $force_height = false; + // Added php 4 constructor function divlist($pageid){ @@ -51,7 +51,7 @@ class divlist { function SetHeight($s_height) { $this->s_height= $s_height; - $this->height_forced =true; + $this->force_height = true; } function SetWidth($s_width) { @@ -64,9 +64,15 @@ class divlist { function DrawList(){ $s_return = ""; - $s_return.= ""; + if(!$this->force_height){ + $s_return.= "
"; + } else { + $s_return.= "
"; + } $s_return.= $this->_generateHeader(); $s_return.=$this->_generatePage(); @@ -98,7 +104,11 @@ class divlist { // Using scrolltable? if($this->i_entriesPerPage == 0) { - $s_return.= "\n
"; + if(!$this->force_height) { + $s_return.= "\n
"; + } else { + $s_return.= "\n
"; + } } $s_return.= "\n"; @@ -138,8 +148,13 @@ class divlist { if($this->i_entriesPerPage == 0) { // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table. - $s_return .= "\n
"; - $s_return .= ""; + if(!$this->force_height) { + $s_return .= "\n
"; + $s_return .= ""; + } else { + $s_return .= "\n
"; + $s_return .= ""; + } } $i_alternate=0; @@ -181,7 +196,7 @@ class divlist { $s_value = $this->a_entries[$i]; - + // Alternation of background color if($i_alternate) $i_alternate=0; else $i_alternate=1; $s_return .= "\n";