X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fclass_divListGroup.inc;h=4459ee926dbc890682aed4023c5c424b68c92fd6;hb=cf072aa1522578f398a10c523ae5bb628f174d9b;hp=1e39361333c0445653d13a6ea182ca83e2eaf433;hpb=e8f534808a971667bb73d66d62990df4f064e6c3;p=gosa.git diff --git a/gosa-core/plugins/admin/groups/class_divListGroup.inc b/gosa-core/plugins/admin/groups/class_divListGroup.inc index 1e3936133..4459ee926 100644 --- a/gosa-core/plugins/admin/groups/class_divListGroup.inc +++ b/gosa-core/plugins/admin/groups/class_divListGroup.inc @@ -1,4 +1,24 @@ SetHeadpageMode(); - $this->SetInformation(_("This menu allows you to add, edit and remove selected groups. You may want to use the range selector on top of the group listbox, when working with a large number of groups.")); /* Disable buttonsm */ $this->EnableCloseButton(false); @@ -57,20 +76,25 @@ class divListGroup extends MultiSelectWindow /* set Page header */ $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); $this->AddHeader(array("string"=>" ","attach"=>"style='width:20px;'")); - $this->AddHeader(array("string"=>_("Groupname / Department"))); + $this->AddHeader(array("string"=>_("Name")." / "._("Department"))); $this->AddHeader(array("string"=>_("Properties"),"attach"=>"style='width:136px;'")); $this->AddHeader(array("string"=>_("Actions"),"attach"=>"style='width:".$action_col_size."px;border-right:0px;'")); /* Text ,Value ,Name ,Is selected */ - $this->AddCheckBox("ShowPrimaryGroups", _("Select to see groups that are primary groups of users"), _("Show primary groups"), true); - $this->AddCheckBox("ShowSambaGroups", _("Select to see groups that have samba groups mappings"), _("Show samba groups"), true); - $this->AddCheckBox("ShowApplicationGroups", _("Select to see groups that have applications configured"), _("Show application groups"),true); - $this->AddCheckBox("ShowMailGroups", _("Select to see groups that have mail settings"), _("Show mail groups"), true); - $this->AddCheckBox("ShowFunctionalGroups", _("Select to see normal groups that have only functional aspects"), _("Show functional groups"), true); + $this->AddCheckBox("ShowPrimaryGroups", _("Select to see groups that are primary groups of users"), + sprintf(_("Show %s"),_("primary groups")), true); + $this->AddCheckBox("ShowSambaGroups", msgPool::selectToView(_("samba groups mappings"),"enabled"), + sprintf(_("Show %s"),_("samba groups")), true); + $this->AddCheckBox("ShowApplicationGroups", msgPool::selectToView(_("application settings"),"enabled"), + sprintf(_("Show %s"),_("application groups")), true); + $this->AddCheckBox("ShowMailGroups", msgPool::selectToView(_("mail settings"),"enabled"), + sprintf(_("Show %s"),_("mail groups")), true); + $this->AddCheckBox("ShowFunctionalGroups", _("Select to see normal groups that have only functional aspects"), + sprintf(_("Show %s"),_("functional groups")), true); $this->AddCheckBox(SEPERATOR); /* Add SubSearch checkbox */ - $this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false); + $this->AddCheckBox("SubSearch", msgPool::selectToView("","subsearch"),msgPool::selectToView("","subsearch_small"), false); /* Name ,Text ,Default , Connect with alphabet */ $this->AddRegex ("Regex", _("Regular expression for matching group names"), "*" , true); @@ -149,51 +173,53 @@ class divListGroup extends MultiSelectWindow /* Add department selection */ $listhead .= _("Base")." ". - "  "; /* Create Layers menu */ $s = ".|"._("Actions")."|\n"; - $s .= "..|". + $s .= "..|". " "._("Create")."|\n"; /* Append create options */ if(preg_match("/c/",$acl_all)) { - $s.= "...|". + $s.= "...|". " "._("Group")."|group_new|\n"; } /* Multiple options */ $s.= "..|---|\n"; - $s.= "..|". + $s.= "..|". " "._("Edit")."|"."multiple_edit|\n"; - $s.= "..|". + $s.= "..|". " "._("Remove")."|"."remove_multiple|\n"; /* Add event tag */ - if(class_available("DaemonEvent_notify")){ - $events = DaemonEvent::get_event_types(); - $event = $events['BY_CLASS']['DaemonEvent_notify']; - $s.= "..|---|\n"; - $s.= "..|".$event['MenuImage']." ".$event['s_Menu_Name']."|trigger_event_DaemonEvent_notify\n"; + if(class_available("DaemonEvent")){ + $events = DaemonEvent::get_event_types(USER_EVENT); + if(count($events['BY_CLASS'])){ + $s.= "..|---|\n"; + foreach($events['BY_CLASS'] as $name => $event){ + $s.= "..|".$event['MenuImage']." ".$event['s_Menu_Name']."|event_".$name."\n"; + } + } } - /* Add multiple copy & cut icons */ if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){ $s.= "..|---|\n"; - $s.= "..|". + $s.= "..|". " "._("Copy")."|"."multiple_copy_systems|\n"; - $s.= "..|". + $s.= "..|". " "._("Cut")."|"."multiple_cut_systems|\n"; if($this->parent->CopyPasteHandler->entries_queued()){ - $img = ""; + $img = ""; $s.="..|".$img." "._("Paste")."|editPaste|\n"; }else{ - $img = ""; + $img = ""; $s.="..|".$img." "._("Paste")."\n"; } } @@ -222,7 +248,7 @@ class divListGroup extends MultiSelectWindow // image Buttons $editlink = "%s"; - $userimg = "User"; + $userimg = "User"; /* Dynamic action col, depending on snapshot icons */ $action_col_size = 80; @@ -231,7 +257,7 @@ class divListGroup extends MultiSelectWindow } /* Assign extension images */ - $posiximg = ""; $mailimg = ""; @@ -262,14 +288,14 @@ class divListGroup extends MultiSelectWindow $actions= ""; if(($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){ $actions.= " "; + src='images/lists/cut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> "; $actions.= " "; + src='images/lists/copy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> "; } /* Add edit icon */ $actions.= ""; + src='images/lists/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>"; /* Add snapshot functionality */ if(preg_match("/(c.*w|w.*c)/", $acl_all)){ @@ -278,7 +304,7 @@ class divListGroup extends MultiSelectWindow if(preg_match("/d/",$acl)){ $actions.= ""; + src='images/lists/trash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>"; } @@ -338,9 +364,9 @@ class divListGroup extends MultiSelectWindow $num_grp_str = _("Number of listed groups"); $num_dep_str = _("Number of listed departments"); - $str = "".$num_grp_str." ".$num_grps."    "; - $str.= "".$num_dep_str." ".$num_deps."    "; $this->set_List_Bottom_Info($str);