From d4190ae8a888a441907d94a52cc9cc680a16f6a6 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 3 Sep 2015 14:37:37 +0200 Subject: [PATCH] Format code, fix link. --- main/admin/user_information.php | 51 +++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/main/admin/user_information.php b/main/admin/user_information.php index 3bd026054c..6f30b13c1f 100755 --- a/main/admin/user_information.php +++ b/main/admin/user_information.php @@ -69,10 +69,19 @@ $data = array( get_lang('Phone') => $user['phone'], get_lang('OfficialCode') => $user['official_code'], get_lang('Online') => $user['user_is_online'] ? - Display::return_icon('online.png') : Display::return_icon('offline.png'), - get_lang('Status') => $user['status'] == 1 ? get_lang('Teacher') : get_lang('Student'), - null => sprintf(get_lang('CreatedByXYOnZ'), 'user_information.php?user_id=' - .$creatorId, $creatorInfo['username'], api_get_utc_datetime($registrationDate)) + Display::return_icon('online.png') : Display::return_icon( + 'offline.png' + ), + get_lang('Status') => $user['status'] == 1 ? get_lang('Teacher') : get_lang( + 'Student' + ), + null => sprintf( + get_lang('CreatedByXYOnZ'), + 'user_information.php?user_id=' + .$creatorId, + $creatorInfo['username'], + api_get_utc_datetime($registrationDate) + ), ); $row = 1; @@ -251,12 +260,12 @@ $sql = 'SELECT * FROM '.$table_course_user.' cu, '.$table_course.' c $res = Database::query($sql); if (Database::num_rows($res) > 0) { $header = array( - array(get_lang('Code'), true), - array(get_lang('Title'), true), - array(get_lang('Status'), true), - array(get_lang('TimeSpentInTheCourse'), true), - array(get_lang('TotalPostsInAllForums'), true), - array('', false) + array(get_lang('Code')), + array(get_lang('Title')), + array(get_lang('Status')), + array(get_lang('TimeSpentInTheCourse')), + array(get_lang('TotalPostsInAllForums')), + array('') ); $headerList = array(); @@ -278,7 +287,7 @@ if (Database::num_rows($res) > 0) { Display::return_icon('synthese_view.gif', get_lang('Overview')).''. ''. Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'' . - ''. + ''. Display::return_icon('edit.gif', get_lang('Edit')).''; if ($course->status == STUDENT) { $tools .= ''. @@ -328,8 +337,7 @@ if (Database::num_rows($res) > 0) { array(), array('user_id' => intval($_GET['user_id'])) ); - $courseInformation .= $courseToolInformationTotal; - + $courseInformation .= $courseToolInformationTotal; } else { $courseInformation = '

'.get_lang('NoCoursesForThisUser').'

'; } @@ -339,7 +347,7 @@ if (Database::num_rows($res) > 0) { */ $urlInformation = null; if (api_is_multiple_url_enabled()) { - $urlList= UrlManager::get_access_url_from_user($user['user_id']); + $urlList = UrlManager::get_access_url_from_user($user['user_id']); if (count($urlList) > 0) { $header = array(); $header[] = array('URL', true); @@ -399,13 +407,13 @@ if (isset($_GET['action'])) { Display::display_header($tool_name); echo '
- '. - Display::return_icon('statistics.png', get_lang('Reporting'), '', ICON_SIZE_MEDIUM).' - - '.$login_as_icon.' - '.$editUser.' - '.$exportLink.' -
'; + '. + Display::return_icon('statistics.png', get_lang('Reporting'), '', ICON_SIZE_MEDIUM).' + + '.$login_as_icon.' + '.$editUser.' + '.$exportLink.' +'; echo Display::page_header($tool_name); @@ -420,7 +428,6 @@ $fullUrl = UserManager::getUserPicture( USER_IMAGE_SIZE_ORIGINAL ); - echo '
'; echo '
'; echo ''