diff --git a/gosa-core/plugins/admin/users/class_divListUsers.inc b/gosa-core/plugins/admin/users/class_divListUsers.inc
index 8a7c5570fbed64d7317400a5091b9ef8d785a0a7..33bb37809a471fe3d6050c7a30c45520b5022ef6 100644 (file)
<?php
+/*
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id$$
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
class divListUsers extends MultiSelectWindow
{
/* Result page will look like a headpage */
$this->SetHeadpageMode();
- $this->SetInformation(_("This menu allows you to create, edit and delete selected users. Having a great number of users, you may want to use the range selectors on top of the user list."));
$this->EnableAplhabet (true);
$this->AddHeader(array("string"=>_("Properties"), "attach" => "style='width:166px;'"));
$this->AddHeader(array("string"=>_("Actions"), "attach" => "style='width:".$action_col_size."px;border-right:0px;text-align:right;'"));
- $this->AddCheckBox("ShowTemplates" ,_("Select to see template pseudo users") ,_("Show templates") , false);
- $this->AddCheckBox("ShowFunctionalUsers",_("Select to see users that have only a GOsa object"),_("Show functional users") , true);
- $this->AddCheckBox("ShowUnixUsers" ,_("Select to see users that have posix settings") ,_("Show unix users") , true);
- $this->AddCheckBox("ShowMailUsers" ,_("Select to see users that have mail settings") ,_("Show mail users") , true);
- $this->AddCheckBox("ShowSambaUsers" ,_("Select to see users that have samba settings") ,_("Show samba users") , true);
- $this->AddCheckBox("ShowProxyUsers" ,_("Select to see users that have proxy settings") ,_("Show proxy users") , true);
+ $this->AddCheckBox("ShowTemplates" ,msgPool::selectToView(_("Template")) ,sprintf(_("Show %s"),_("templates")), false);
+ $this->AddCheckBox("ShowFunctionalUsers",msgPool::selectToView(_("GOsa object"),"enabled"),sprintf(_("Show %s"),_("functional users")), true);
+ $this->AddCheckBox("ShowUnixUsers" ,msgPool::selectToView(_("Posix"),"enabled") ,sprintf(_("Show %s"),_("POSIX users")), true);
+ $this->AddCheckBox("ShowMailUsers" ,msgPool::selectToView(_("Mail"),"enabled") ,sprintf(_("Show %s"),_("mail users")), true);
+ $this->AddCheckBox("ShowSambaUsers" ,msgPool::selectToView(_("Samba"),"enabled") ,sprintf(_("Show %s"),_("samba users")), true);
+ $this->AddCheckBox("ShowProxyUsers" ,msgPool::selectToView(_("Proxy"),"enabled") ,sprintf(_("Show %s"),_("proxy users")), true);
/* Add SubSearch checkbox */
$this->AddCheckBox(SEPERATOR);
- $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", _("Display users matching"),"*" , true);
" "._("Change password")."|"."multiple_password_change|\n";
$s.= "..|<img src='images/edittrash.png' alt='' border='0' class='center'>".
" "._("Remove")."|"."remove_multiple|\n";
-
- 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";
+ $s.= "..|<img src='images/wizard.png' alt='' border='0' class='center'>".
+ " "._("Apply template")."|"."templatize_multiple|\n";
+
+ /* Add event tag */
+ 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(isset($val['userPassword'][0]) && preg_match("/^\{[^\}]/",$val['userPassword'][0])){
if(preg_match("/^[^\}]*+\}!/",$val['userPassword'][0])){
$lock_status = "<input class='center' type='image' src='images/closedlock.png'
- alt='"._("Deactivated")."' name='toggle_lock_status_%KEY%'>";
+ alt='"._("inactive")."' name='toggle_lock_status_%KEY%'>";
}else{
$lock_status = "<input class='center' type='image' src='images/openlock.png'
- alt='"._("Active")."' name='toggle_lock_status_%KEY%'>";
+ alt='"._("active")."' name='toggle_lock_status_%KEY%'>";
}
}else{
$lock_status = "<img src='images/empty.png' alt=' ' class='center'>";
/* Generate edit icon */
$action.= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
- name='user_edit_%KEY%' title='"._("Edit user")."'>";
+ name='user_edit_%KEY%' title='".msgPool::editButton(_("user"))."'>";
/* Add deactivate status if we are allowed to */
if (preg_match("/w/",$acl_all)){
name='user_chgpw_%KEY%' title='"._("Change password")."'>";
}else{
$action.= "<img class='center' src='images/empty.png' alt=' '
- title='"._("You are not allowed to change the password for this user.")."'>";
+ title='"._("Not allowed")."'>";
}
/* Add snapshot icon */
name='user_del_%KEY%' title='"._("Delete user")."'>";
}else{
$action.= "<img class='center' src='images/empty.png' alt=' '
- title='"._("You are not allowed to remove this user.")."'>";
+ title='"._("Not allowed")."'>";
}
/* Create phonaccopunt informationm, if conencted && is phoneAccount */