From: janw Date: Mon, 12 Dec 2005 09:54:00 +0000 (+0000) Subject: Removed problems with repository divlist. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e79f4732a40165b04e96f49163082da8d800f7c1;p=gosa.git Removed problems with repository divlist. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2290 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_divlist.inc b/include/class_divlist.inc index e9c74ba00..debbfd9b1 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -103,14 +103,16 @@ class divlist { } $s_return.= "\n".$s_value['string'].""; + + // Increment column counter + $this->cols++; + } // Attach a 18px-wide column (used as scrollbar space in body-table), // but do this only if we are really using scrolltables. if($this->i_entriesPerPage == 0) { - // if($this->_numEntries()>=20) { - $s_return .= "\n "; - // } + $s_return .= "\n "; $s_return .= "\n"; } @@ -128,17 +130,14 @@ class divlist { $s_key = ""; $s_return = ""; - // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table. - $s_return .= "\n
"; + 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
"; - // Only reduce width if we need a scrollbar (>19 Entries) - //if($this->_numEntries()>=20) { $s_return .= ""; - //} else { - // $s_return .= "
"; - //} - $i_alternate=0; - + } + + $i_alternate=0; if(isset($_GET['start'])){ $_SESSION['start'.$this->pageid]=$_GET['start']; $start = $_GET['start']; @@ -153,10 +152,11 @@ class divlist { /* If divlist is empty, append a single white entry */ if(count($this->a_entries)==0){ $str = $s_return.""; - //for($i = 0 ; $i < count($this->a_header[0]); $i++){ - $str.=""; - //} - $str.="
 
"; + $str.=" "; + $str.=""; + if($this->i_entriesPerPage == 0) { + $str.="
"; + } return($str); } else { @@ -184,7 +184,6 @@ class divlist { foreach($s_value as $s_key2 => $s_value2 ){ - $this->cols = count($s_value) ; $cnt++; if(!isset($s_value2['class'])){ @@ -285,7 +284,10 @@ class divlist { } $s_return.="\n$fill"; } - $s_return .= "\n"; + if($this->i_entriesPerPage == 0) { + $s_return .= "\n"; + } + $s_return .= ""; return $s_return; } }