From: janw Date: Sat, 19 Nov 2005 02:06:14 +0000 (+0000) Subject: fixed style X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ea30430f4761e19e694c915aafb932032831edc;p=gosa.git fixed style git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1982 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 443b8ed2e..497b40645 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -98,7 +98,7 @@ class divlist { // 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) { + if($this->_numEntries()>=20) { $s_return .= "\n "; } $s_return .= "\n"; @@ -120,8 +120,8 @@ class divlist { // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table. I assume 18px as max. $s_return .= "\n
"; - // Only reduce width if we need a scrollbar (>20 Entries) - if($this->_numEntries()>20) { + // Only reduce width if we need a scrollbar (>19 Entries) + if($this->_numEntries()>=20) { $s_return .= ""; } else { $s_return .= "
"; @@ -262,8 +262,8 @@ class divlist { } } - // if fewer than 20 Entries (list not full), print row to fill empty space - if($this->_numEntries()<20){ + // if fewer than 19 Entries (list not full), print row to fill empty space + if($this->_numEntries()<19){ $fill= ""; for ($i= 1; $i <= $this->cols; $i++){ if ($i == $this->cols){ diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 8641ae802..6a91294e9 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -687,7 +687,7 @@ class userManagement extends plugin $divlist->SetHeader(array( array("string" => " ", "attach" => "style='text-align:center;width:20px;'"), array("string" => _("Username")." / "._("Department"), "attach" => "style=''"), - array("string" => _("Properties"), "attach" => "style='width:136px;'"), + array("string" => _("Properties"), "attach" => "style='width:152px;'"), array("string" => _("Actions"), "attach" => "style='width:52px;border-right:0px;text-align:right;'"))); @@ -714,7 +714,7 @@ class userManagement extends plugin $field1 = array("string" => "department", "attach" => "style='text-align:center;width:20px;'"); $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); - $field3 = array("string" => " ", "attach" => "style='width:136px;'"); + $field3 = array("string" => " ", "attach" => "style='width:152px;'"); $field4 = array("string" => " ", "attach" => "style='width:52px;border-right:0px;text-align:right;'"); @@ -867,7 +867,7 @@ class userManagement extends plugin /* Create each field */ $field1 = array("string" => sprintf($tpl,$val['dn']), "attach" => "style='text-align:center;width:20px;'"); $field2 = array("string" => sprintf($editlink,$key,$display).$ip_port, "attach" => "style='' title='".$val['dn']."'"); - $field3 = array("string" => $usrimg2." ".$posix." ".$enviro." ".$maila." ".$fonac." ".$faxac." ".$samba." ".$s_img_create_from_template, "attach" => "style='width:136px;'"); + $field3 = array("string" => $usrimg2." ".$posix." ".$enviro." ".$maila." ".$fonac." ".$faxac." ".$samba." ".$s_img_create_from_template, "attach" => "style='width:152px;'"); $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action),"attach" => "style='width:52px;border-right:0px;text-align:right;'"); $add = array($field1,$field2,$field3,$field4);