X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divlist.inc;h=a3ecfb8d5ed2f5f7ef04e1afe34b04e43a008166;hb=c71ce4ba7b5e4492c62bf2f1af27e202f28ed299;hp=52eaecce87fb642fae430ec7c3afbf368377b0d6;hpb=1f56f14cf6e1b6cac9f04e167201814a4795bcb6;p=gosa.git diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 52eaecce8..a3ecfb8d5 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; @@ -277,7 +295,7 @@ class divlist { // if fewer than 22 Entries (list not full), print row to fill empty space //FIXME: Why 22? Isn't the size dynamic - if($this->_numEntries()<=22){ +# if($this->_numEntries()<=22){ $fill= ""; for ($i= 1; $i <= $this->cols; $i++){ if ($i == $this->cols){ @@ -285,9 +303,9 @@ class divlist { } else { $fill.= ""; } - } + } $s_return.="\n$fill"; - } +# } if($this->i_entriesPerPage == 0) { $s_return .= "\n