summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 026e13b)
raw | patch | inline | side by side (parent: 026e13b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Jun 2009 09:23:55 +0000 (09:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Jun 2009 09:23:55 +0000 (09:23 +0000) |
- Already configured plugins will now be displayed in slightly different color, which allows the user to easily identify existing acls without expanding all plugins divs.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13794 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13794 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_acl.inc | patch | blob | history |
index 2996bc78cfb355847042bd5b92df62ab6755b9e7..136a022293f929b03847f7ded12dd7eaae2499bf 100644 (file)
$overall_acl = $currentAcl[0];
}
+ // Detect configured plugins
+ $expand = count($currentAcl) > 1 || $currentAcl[0] != "";
+
/* Object header */
$tname= preg_replace("/[^a-z0-9]/i","_",$name);
+
+ if($expand){
+ $back_color = "#C8C8FF";
+ }else{
+ $back_color = "#C8C8C8";
+ }
+
if(session::global_get('js')) {
if(isset($_SERVER['HTTP_USER_AGENT']) &&
(preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) ||
(preg_match("/presto/i",$_SERVER['HTTP_USER_AGENT']))) {
$display.= "\n<table style='width:100%;border:1px solid #A0A0A0' cellspacing=0 cellpadding=2>".
"\n <tr>".
- "\n <td style='background-color:#C8C8C8;height:1.8em;' colspan=".($cols-1)."><b>"._("Object").": $name</b></td>".
- "\n <td align='right' style='background-color:#C8C8C8;height:1.8em;'>".
+ "\n <td style='background-color:{$back_color};height:1.8em;' colspan=".($cols-1)."><b>"._("Object").": $name</b></td>".
+ "\n <td align='right' style='background-color:{$back_color};height:1.8em;'>".
"\n <input type='button' onclick='divtoggle(\"$tname\");' value='"._("Show/hide advanced settings")."' /></td>".
"\n </tr>";
} else if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/ie/i",$_SERVER['HTTP_USER_AGENT'])) {
}else{
}
}
+
+
foreach($splist as $attr => $dsc){
/* Skip pl* attributes, they are internal... */