summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec35297)
raw | patch | inline | side by side (parent: ec35297)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 05:58:09 +0000 (05:58 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jul 2006 05:58:09 +0000 (05:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4145 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_acl.inc | patch | blob | history |
diff --git a/include/class_acl.inc b/include/class_acl.inc
index 89d443ab571b659e60fc4eacc69a5a36f01d85a0..8cdfe5430da85d16415c86fc2f59024e9b62af70 100644 (file)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
$currentAcl= $this->aclContents[$key];
/* Object header */
- $display.= "<table style='width:100%;border:1px solid #A0A0A0' cellspacing=0 cellpadding=2><tr><td style='background-color:#C8C8C8;height:1.8em' colspan=$cols><b>"._("Object").":</b> $name</td></tr>";
+ $display.= "<table style='width:100%;border:1px solid #A0A0A0' cellspacing=0 cellpadding=2><tr><td style='background-color:#C8C8C8;height:1.8em' colspan=$cols><b>"._("Object").": $name</b></td></tr>";
/* Generate options */
$spc= " ";
}
}
- $display.= "<tr><td style='background-color:#E0E0E0' colspan=$cols>$options</td></tr>";
+ /* Global options */
+ $more_options= $this->mkchkbx($key."_0_r", _("read"), preg_match('/r/', $currentAcl[0])).$spc;
+ $more_options.= $this->mkchkbx($key."_0_w", _("write"), preg_match('/w/', $currentAcl[0])).$spc;
+
+ $display.= "<tr><td style='background-color:#E0E0E0' colspan=".($cols-1).">$options</td><td style='background-color:#C8C8C8'> ".("Complete object:")." $more_options</td></tr>";
/* Walk through the list of attributes */
$cnt= 1;
}
/* Fill missing td's if needed */
- if (--$cnt != $cols){
- $display.= str_repeat("<td style='border-top:1px solid #A0A0A0'> </td>", $cols-$cnt);
+ if (--$cnt != $cols && $cnt != 0){
+ $display.= str_repeat("<td style='border-top:1px solid #A0A0A0; width:".(int)(100/$cols)."%'> </td>", $cols-$cnt);
}
$display.= "</table><br>";
function remove_from_parent()
{
- echo "remove_from_parent() called";
}
}