fix for MDL-7483, add table header to user picture on participants listing

This commit is contained in:
toyomoyo 2006-11-13 03:43:12 +00:00
parent 9fbccd3907
commit 1d40c70b43
3 changed files with 8 additions and 3 deletions

View file

@ -1401,6 +1401,7 @@ $string['usernameemailmatch'] = 'The username and email address do not relate to
$string['usernameexists'] = 'This username already exists, choose another';
$string['usernamenotfound'] = 'The username was not found in the database';
$string['usernotconfirmed'] = 'Could not confirm $a';
$string['userpic'] = 'User picture';
$string['userprofilefor'] = 'User profile for $a';
$string['users'] = 'Users';
$string['usersnew'] = 'New users';

View file

@ -487,6 +487,10 @@ class flexible_table {
}
break;
case 'userpic':
// do nothing, do not display sortable links
break;
default:
if($this->is_sortable) {
if($primary_sort_column == $column) {

View file

@ -274,8 +274,8 @@
/// Define a table showing a list of users in the current role selection
$tablecolumns = array('picture', 'fullname');
$tableheaders = array('', get_string('fullname'));
$tablecolumns = array('userpic', 'fullname');
$tableheaders = array(get_string('userpic'), get_string('fullname'));
if (!isset($hiddenfields['city'])) {
$tablecolumns[] = 'city';
$tableheaders[] = get_string('city');
@ -304,7 +304,7 @@
$table->define_columns($tablecolumns);
$table->define_headers($tableheaders);
$table->define_baseurl($baseurl);
$table->sortable(true, 'lastaccess', SORT_DESC);
$table->set_attribute('cellspacing', '0');