summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b247480)
raw | patch | inline | side by side (parent: b247480)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 19 Nov 2005 02:06:14 +0000 (02:06 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 19 Nov 2005 02:06:14 +0000 (02:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1982 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_divlist.inc | patch | blob | history | |
plugins/admin/users/class_userManagement.inc | patch | blob | history |
index 443b8ed2e3726da42634972b3c3376da1e15e279..497b40645b629892b1008d19211edfac08584a3b 100644 (file)
// 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<td class='listheader' id='scrollbar'> </td>";
}
$s_return .= "\n</table></td></tr>";
// 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<tr><td class='scrollbody'><div style='align:left;width:600px;height:480px;overflow:auto;'>";
- // 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 .= "<table style='height:100%;width:581px;' cellspacing='0'>";
} else {
$s_return .= "<table style='height:100%;width:600px;' cellspacing='0'>";
}
}
- // 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 8641ae802615aab89ff7fb8a499c4ff47421a0c1..6a91294e96a1beafe22a41417f881c8e3ddd87bd 100644 (file)
$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;'")));
$field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='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;'");
/* 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);