From 8b8593067340fbb933009c1b0797feec8055ea3c Mon Sep 17 00:00:00 2001 From: Hubert Borderiou Date: Thu, 19 Jan 2012 10:39:54 +0100 Subject: [PATCH] display username as tooltip for class_information - ref #4226 --- main/admin/class_information.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main/admin/class_information.php b/main/admin/class_information.php index cfee15bd0b..b8d796ce67 100644 --- a/main/admin/class_information.php +++ b/main/admin/class_information.php @@ -50,22 +50,21 @@ if (count($users) > 0) { $table_header[] = array (get_lang('LastName'), true); $table_header[] = array (get_lang('FirstName'), true); } - $table_header[] = array (get_lang('LoginName'), true); $table_header[] = array (get_lang('Email'), true); $table_header[] = array (get_lang('Status'), true); $table_header[] = array ('', false); $data = array(); foreach($users as $index => $user) { + $username = sprintf(get_lang('LoginX'), $user['username']); $row = array (); $row[] = $user['official_code']; if ($is_western_name_order) { $row[] = $user['firstname']; - $row[] = $user['lastname']; + $row[] = "".$user['lastname'].""; } else { - $row[] = $user['lastname']; + $row[] = "".$user['lastname'].""; $row[] = $user['firstname']; } - $row[] = $user['username']; $row[] = Display :: encrypted_mailto_link($user['email'], $user['email']); $row[] = $user['status'] == 5 ? get_lang('Student') : get_lang('Teacher'); $row[] = ''.Display::return_icon('synthese_view.gif').'';