From: hickert Date: Thu, 25 Jun 2009 09:23:55 +0000 (+0000) Subject: Updated ACL selection dialog. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3848c9b0f0536119c27ff3da721198dbc5107e0f;p=gosa.git Updated ACL selection dialog. - 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 --- diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index 2996bc78c..136a02229 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -736,16 +736,26 @@ class acl extends plugin $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". "\n ". - "\n ". - "\n ". + "\n ". "\n "; } else if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/ie/i",$_SERVER['HTTP_USER_AGENT'])) { @@ -804,6 +814,8 @@ class acl extends plugin }else{ } } + + foreach($splist as $attr => $dsc){ /* Skip pl* attributes, they are internal... */
"._("Object").": $name". + "\n "._("Object").": $name". "\n