$objs = array();
$objs[] =& $mform->createElement('submit', 'addone', get_string('addsel', 'bulkusers'));
$objs[] =& $mform->createElement('submit', 'addall', get_string('addall', 'bulkusers'));
- $objs[] =& $mform->createElement('submit', 'removesel', get_string('removesel', 'bulkusers'));
- $objs[] =& $mform->createElement('submit', 'removeall', get_string('removeall', 'bulkusers'));
$objs[] =& $mform->createElement('submit', 'deletesel', get_string('deletesel', 'bulkusers'));
$objs[] =& $mform->createElement('submit', 'deleteall', get_string('deleteall', 'bulkusers'));
$grp =& $mform->addElement('group', 'buttonsgrp', get_string('selectedlist', 'bulkusers'), $objs, array(' ', '<br />'), false);
if(!empty($data->ausers)) {
$SESSION->bulk_susers = array_merge($SESSION->bulk_susers, array_values($data->ausers));
}
- } else if(@$data->removeall) {
- if(!empty($SESSION->bulk_ausers)) {
- $SESSION->bulk_susers = array_diff($SESSION->bulk_susers, $SESSION->bulk_ausers);
- }
- } else if(@$data->removesel) {
- if(!empty($data->susers)) {
- $SESSION->bulk_susers = array_diff($SESSION->bulk_susers, array_values($data->susers));
- }
} else if(@$data->deletesel) {
if(!empty($data->susers)) {
$SESSION->bulk_susers = array_diff($SESSION->bulk_susers, array_values($data->susers));
<?php //$Id$
$string['usersinlist'] = 'Users in list';
-$string['addall'] = 'Add all available users';
-$string['addsel'] = 'Add selected available users';
-$string['removeall'] = 'Remove all available users';
-$string['removesel'] = 'Remove selected users';
+$string['addall'] = 'Add all to selection';
+$string['addsel'] = 'Add to selection';
$string['deleteall'] = 'Clear all users';
$string['deletesel'] = 'Clear selected users';
$string['available'] = 'Available';
<h2>Selected user list...</h2>
<ul>
-<li>Add selected available users - adds selected users from the Available list (on the left) to the Selected list (on the right).</li>
-<li>Add all available users - adds all users from the Available list (on the left) to the Selected list (on the right).</li>
-<li>Remove selected users - removes selected users from the Selected list (on the right).</li>
-<li>Remove all available users - removes all users from the Available list (on the left) from the Selected list (on the right).</li>
-<li>Clear selected users - removes selected users from the Selected list (on the right).</li>
-<li>Clear all users - removes all users from the Selected list (on the right).</li>
-
+<li>Add to selection - adds selected users from the Available list to the Selected list. Multiple users can be selected by holding down the Apple or Ctrl key whilst clicking on the users' names.</li>
+<li>Add all to selection - adds all users from the Available list to the Selected list.</li>
+<li>Clear selected users - removes selected users from the Selected list.</li>
+<li>Clear all users - removes all users from the Selected list.</li>
</ul>