diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index f22979edf3b35b560a59bf1473eff2804813b394..b1d5d201ee34d74f7f76b6531be681bc1999395e 100644 (file)
/* Add SubSearch checkbox */
$this->AddCheckBox(SEPERATOR);
- $this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Ignore subtrees"), false);
+ $this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Display users matching"),"*" , true);
/* Multiple options */
$listhead .= " <input class='center' type='image' align='middle' src='images/edittrash.png'
title='"._("Remove selected user")."' alt='"._("Remove user")."' name='remove_multiple_users'> ";
- $listhead .= " <input class='center' type='image' align='middle' src='images/editcopy.png'
+
+ /* Add multiple copy & cut icons */
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){
+ $listhead .= " <input class='center' type='image' align='middle' src='images/editcopy.png'
title='"._("Copy selected user")."' alt='"._("Copy users")."' name='multiple_copy_users'> ";
- $listhead .= " <input class='center' type='image' align='middle' src='images/editcut.png'
+ $listhead .= " <input class='center' type='image' align='middle' src='images/editcut.png'
title='"._("cut selected user")."' alt='"._("Cut users")."' name='multiple_cut_users'> ";
+ }
$listhead .="</div>";;
$this->SetListHeader($listhead);
/********************
Variable init
********************/
+
+ $num_users = 0;
+ $num_templates = 0;
/* Variable initialation */
$enviro = $posix = $maila = $faxac = $samba = $netatalk = "";
if(in_array("gosaUserTemplate",$val['objectClass'])){
$tpl = preg_replace("/%KEY%/", "$key", $tplimg);
$s_img_create_from_template = preg_replace("/%KEY%/", "$key", $tplcreateuserimg);
+ $num_templates ++;
}else{
$s_img_create_from_template = "";
$tpl = $userimg;
+ $num_users ++;
}
/* Insert key into userimg */
/* Connect all images */
$UseImg = $usrimg2." ".$posix." ".$enviro." ".$maila." ".$fonac." ".$faxac." ".$samba." ".$netatalk;
+ /* Cutted objects should be displayed in light grey */
+ if($this->parent->CopyPasteHandler){
+ foreach($this->parent->CopyPasteHandler->queue as $queue_key => $queue_data){
+ if($queue_data['dn'] == $val['dn']) {
+ $display = "<font color='#999999'>".$display."</font>";
+ break;
+ }
+ }
+ }
+
/* Create each field */
$field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;'");
$users[strtolower( $val['sn']['0'].$val['uid']['0'])]=$add;
}
}
-
+
+
+ /* Create summary string for list footer */
+ $num_deps=0;
+ if(!$this->SubSearch){
+ $num_deps = count($this->Added_Departments);
+ }
+ $num_users = count($list);
+
+ $num_user_str = _("Number of listed users");
+ $num_dep_str = _("Number of listed departments");
+
+ $str = "<img class='center' src='images/select_user.png'
+ title='".$num_user_str."' alt='".$num_user_str."'> ".$num_users." ";
+ $str.= "<img class='center' src='images/folder.png'
+ title='".$num_dep_str."' alt='".$num_dep_str."'> ".$num_deps." ";
+
+ $this->set_List_Bottom_Info($str);
}
function Save()