From: hickert Date: Wed, 21 Apr 2010 15:34:05 +0000 (+0000) Subject: Updated reference tab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2e3919fcc28ae3ab11e938291a54b24c0a9f625;p=gosa.git Updated reference tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17785 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/references/class_aclResolver.inc b/gosa-core/plugins/generic/references/class_aclResolver.inc index 68d5ba351..dff16b794 100644 --- a/gosa-core/plugins/generic/references/class_aclResolver.inc +++ b/gosa-core/plugins/generic/references/class_aclResolver.inc @@ -83,60 +83,55 @@ class aclResolver */ function getReadableACL() { + $tpl = + "\n ". + "\n %s". + "\n %s". + "\n %s". + "\n ". + "\n ". + "\n ". + "\n "._("Group members")."". + "\n ". + "\n ". + "\n ". + "\n "._("Members")."". + "\n ". + "\n ". + "\n ". + "\n "._("Acls")."". + "\n ". + "\n ". + "\n
". + "\n "; + + $str = ""; foreach($this->affectingACLs as $dn => $acls){ foreach($acls as $acl){ - $str.=""; - if(isset($this->config->idepartments[$dn])){ - $image= image("images/select_department.png"); - }else{ - $image= image("images/lists/element.png"); - } - - $str.=""; - $str.=""; - $str.=""; - $str.=""; - - $str.=""; - $str.=""; - $str .= ""; - - $str.=""; - $str.=""; - $str .= ""; - - $str .= ""; if($acl['type']!='reset'){ - $str.=""; - $str .= ""; - }else{ - $str .= ""; } - $str .= ""; + $str.= sprintf($tpl, image($image), $dn, $aclType, $gmem, $umem, $defs); } } $str .= "
".$image."".$dn."".$this->aclTypes[$acl['type']]."
"._("Group members")."
    "; + $gmem = $umem = $defs = ""; + $image = (isset($this->config->idepartments[$dn]))? "images/select_department.png":"images/lists/element.png"; + $aclType = $this->aclTypes[$acl['type']]; + foreach($acl['members'] as $type => $name){ if(preg_match("/^G/", $type)) - $str .= "
  • ".$name."
  • "; + $gmem .= "\n
  • ".$name."
  • "; } - $str .= "
"; - $str .= "
"._("Members")."
    "; foreach($acl['members'] as $type => $name){ if(!preg_match("/^G/", $type)) - $str .= "
  • ".$name."
  • "; + $umem .= "\n
  • ".$name."
  • "; } - $str .= "
"; - $str .= "
"._("Acls")."
    "; foreach($acl['acl'] as $type => $acl){ - if(isset($this->classMapping[$type])){ - $str .= "
  • ".$this->classMapping[$type].": ".$this->aclToString($acl)."
  • "; + $defs .= "
  • ".$this->classMapping[$type].": ".$this->aclToString($acl)."
  • "; }else{ - $str .= "
  • ".$type.": ".$this->aclToString($acl)."
  • "; + $defs .= "
  • ".$type.": ".$this->aclToString($acl)."
  • "; } } - $str .= "
"; - $str .= "

";