MDL-11553, reducing the number of bulk user selection buttons and lang changes

This commit is contained in:
toyomoyo
2007-10-17 04:29:16 +00:00
parent c470dada5b
commit bdd77c8326
3 changed files with 6 additions and 21 deletions
-10
View File
@@ -34,8 +34,6 @@ class user_bulk_form extends moodleform {
$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);
@@ -92,14 +90,6 @@ class user_bulk_form extends moodleform {
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));
+2 -4
View File
@@ -1,9 +1,7 @@
<?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';
@@ -1,11 +1,8 @@
<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>