X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divlist.inc;h=cd12a5ebdf206bce265b25f4900e6dc206bd33eb;hb=b868e20368d036501ec2c97c67bc8362e00753cb;hp=52eaecce87fb642fae430ec7c3afbf368377b0d6;hpb=1f56f14cf6e1b6cac9f04e167201814a4795bcb6;p=gosa.git diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 52eaecce8..cd12a5ebd 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -16,6 +16,8 @@ class divlist { var $i_currentPage; var $i_entriesPerPage; + var $force_height = false; + // Added php 4 constructor function divlist($pageid){ @@ -49,6 +51,7 @@ class divlist { function SetHeight($s_height) { $this->s_height= $s_height; + $this->force_height = true; } function SetWidth($s_width) { @@ -61,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(); @@ -95,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"; @@ -135,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; @@ -178,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";