diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index c854ab2d1b6cb97115879aa223d6080026516361..7e600b6bbb9ca3b5f23ef022d6bcfa7606bfd45c 100644 (file)
class groupManagement extends management
{
var $plHeadline = "Groups";
class groupManagement extends management
{
var $plHeadline = "Groups";
- var $plDescription = "Group administration";
+ var $plDescription = "Manage aspects of groups like members, posix, desktop, samba and mail settings";
var $plIcon = "plugins/groups/images/plugin.png";
// Tab definition
var $plIcon = "plugins/groups/images/plugin.png";
// Tab definition
parent::__construct($config, $ui, "groups", $headpage);
$this->registerAction("edit_group","editEntry");
parent::__construct($config, $ui, "groups", $headpage);
$this->registerAction("edit_group","editEntry");
+ $this->registerAction("edit_group_","editEntry");
+ $this->registerAction("edit_group__","editEntry");
$this->registerAction("edit_environment","editEntry");
$this->registerAction("edit_appgroup","editEntry");
$this->registerAction("edit_mailgroup","editEntry");
$this->registerAction("edit_environment","editEntry");
$this->registerAction("edit_appgroup","editEntry");
$this->registerAction("edit_mailgroup","editEntry");
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$str = management::editEntry($action,$target);
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$str = management::editEntry($action,$target);
-
if(preg_match("/^edit_/",$action)){
if(preg_match("/^edit_/",$action)){
- $tab = preg_replace("/^edit_/","",$action);
+ $tab = preg_replace("/^edit_([^_]*).*$/","\\1",$action);
if(isset($this->tabObject->by_object[$tab])){
$this->tabObject->current = $tab;
}else{
if(isset($this->tabObject->by_object[$tab])){
$this->tabObject->current = $tab;
}else{
$map = array(
"posixGroup" =>
array(
$map = array(
"posixGroup" =>
array(
- "image" => "plugins/groups/images/groups.png",
+ "image" => "plugins/groups/images/select_group.png",
"plugin" => "group",
"alt" => _("Posix"),
"title" => _("Edit posix properties")
"plugin" => "group",
"alt" => _("Posix"),
"title" => _("Edit posix properties")
"sambaGroupMapping" =>
array(
"image" => "plugins/groups/images/samba.png",
"sambaGroupMapping" =>
array(
"image" => "plugins/groups/images/samba.png",
- "plugin" => "group",
+ "plugin" => "group_",
"alt" => _("Samba"),
"title" => _("Edit samba properties")
),
"alt" => _("Samba"),
"title" => _("Edit samba properties")
),
"goFonPickupGroup" =>
array(
"image" => "plugins/groups/images/asterisk.png",
"goFonPickupGroup" =>
array(
"image" => "plugins/groups/images/asterisk.png",
- "plugin" => "group",
+ "plugin" => "group__",
"alt" => _("Phone"),
"title" => _("Edit phone properties")
),
"alt" => _("Phone"),
"title" => _("Edit phone properties")
),
// Walk thru map
foreach ($map as $oc => $properties) {
if (in_array_ics($oc, $classes)) {
// Walk thru map
foreach ($map as $oc => $properties) {
if (in_array_ics($oc, $classes)) {
- $result.="<input class='center' type='image' src='".$properties['image']."' ".
- "alt='".$properties['alt']."' title='".$properties['title'].
- "' name='listing_edit_".$properties['plugin']."_$row' style='padding:1px'>";
+ $result.= image($properties['image'], 'listing_edit_'.$properties['plugin'].'_'.$row, $properties['title']);
} else {
} else {
- $result.="<img src='images/empty.png' alt=' ' class='center' style='padding:1px'>";
+ $result.= image('images/empty.png');
}
}
return $result;
}
}
return $result;