diff --git a/main/admin/dashboard_add_courses_to_user.php b/main/admin/dashboard_add_courses_to_user.php index 2dcc3e9aca..9689234384 100755 --- a/main/admin/dashboard_add_courses_to_user.php +++ b/main/admin/dashboard_add_courses_to_user.php @@ -171,12 +171,18 @@ Display::display_header($tool_name); // actions -$actionsLeft = ''.Display::return_icon('add-user.png', get_lang('AssignUsers'), null, ICON_SIZE_MEDIUM).''; -$actionsLeft .= ''.Display::return_icon('session-add.png', get_lang('AssignSessions'), null, ICON_SIZE_MEDIUM).''; +$actionsLeft = ''. + Display::return_icon('add-user.png', get_lang('AssignUsers'), null, ICON_SIZE_MEDIUM).''; +$actionsLeft .= ''. + Display::return_icon('session-add.png', get_lang('AssignSessions'), null, ICON_SIZE_MEDIUM).''; echo $html = Display::toolbarAction('toolbar-dashboard', array($actionsLeft)); -echo Display::page_header(sprintf(get_lang('AssignCoursesToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])), null, 'h3'); +echo Display::page_header( + sprintf(get_lang('AssignCoursesToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])), + null, + 'h3' +); $assigned_courses_to_hrm = CourseManager::get_courses_followed_by_drh($user_id); $assigned_courses_code = array_keys($assigned_courses_to_hrm); diff --git a/main/admin/dashboard_add_sessions_to_user.php b/main/admin/dashboard_add_sessions_to_user.php index fb00feb260..b16d514646 100755 --- a/main/admin/dashboard_add_sessions_to_user.php +++ b/main/admin/dashboard_add_sessions_to_user.php @@ -165,17 +165,20 @@ if (isset($_POST['formSent']) && intval($_POST['formSent']) == 1) { // display header Display::display_header($tool_name); -// actions - +// Actions if ($user_info['status'] != SESSIONADMIN) { - $actionsLeft = '' . Display::return_icon('add-user.png', get_lang('AssignUsers'), null, ICON_SIZE_MEDIUM ) . ''; - $actionsLeft .= '' . Display::return_icon('course-add.png', get_lang('AssignCourses'), null, ICON_SIZE_MEDIUM) . ''; + $actionsLeft = '' . + Display::return_icon('add-user.png', get_lang('AssignUsers'), null, ICON_SIZE_MEDIUM ) . ''; + $actionsLeft .= '' . + Display::return_icon('course-add.png', get_lang('AssignCourses'), null, ICON_SIZE_MEDIUM) . ''; } - -echo Display::toolbarAction('toolbar-dashboard', array( 0 => $actionsLeft, 1 => '')); - -echo Display::page_header(sprintf(get_lang('AssignSessionsToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])), null, 'h3'); +echo Display::toolbarAction('toolbar-dashboard', array($actionsLeft)); +echo Display::page_header( + sprintf(get_lang('AssignSessionsToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])), + null, + 'h3' +); $assigned_sessions_to_hrm = SessionManager::get_sessions_followed_by_drh($user_id); $assigned_sessions_id = array_keys($assigned_sessions_to_hrm); @@ -207,11 +210,11 @@ $result = Database::query($sql); ?>
> - +
:
- +