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); ?>
'; - $html .= Display::toolbarAction('toolbar-copysession', array(0 => $actionsLeft)); + $html .= Display::toolbarAction('toolbar-copysession', array($actionsLeft)); $html .= Display::return_message(get_lang('CopyCourseFromSessionToSessionExplanation'), 'warning'); diff --git a/main/document/create_document.php b/main/document/create_document.php index c2a3bd17d8..1dc2a886b8 100755 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -609,19 +609,24 @@ if ($form->validate()) { // link back to the documents overview if ($is_certificate_mode) { $actionsLeft = ''. - Display::return_icon('back.png',get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).''; - $actionsLeft .= ''.Display::return_icon('expand.png',get_lang('Back'),array('id'=>'expand'),ICON_SIZE_MEDIUM).Display::return_icon('contract.png',get_lang('Back'),array('id'=>'contract', 'class'=>'hide'),ICON_SIZE_MEDIUM).''; + Display::return_icon('back.png',get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview'),'',ICON_SIZE_MEDIUM).''; + $actionsLeft .= ''. + Display::return_icon('expand.png',get_lang('Back'),array('id'=>'expand'),ICON_SIZE_MEDIUM).Display::return_icon('contract.png',get_lang('Back'),array('id'=>'contract', 'class'=>'hide'),ICON_SIZE_MEDIUM).''; } else { $actionsLeft = ''. - Display::return_icon('back.png',get_lang('Back').' '.get_lang('To').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).''; - $actionsLeft .= ''.Display::return_icon('expand.png',get_lang('Expand'),array('id'=>'expand'),ICON_SIZE_MEDIUM).Display::return_icon('contract.png',get_lang('Collapse'),array('id'=>'contract', 'class'=>'hide'),ICON_SIZE_MEDIUM).''; + Display::return_icon('back.png',get_lang('Back').' '.get_lang('To').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).''; + $actionsLeft .= ''. + Display::return_icon('expand.png',get_lang('Expand'),array('id'=>'expand'),ICON_SIZE_MEDIUM). + Display::return_icon('contract.png',get_lang('Collapse'),array('id'=>'contract', 'class'=>'hide'),ICON_SIZE_MEDIUM).''; } - echo $toolbar = Display::toolbarAction('actions-documents', array(0 => $actionsLeft, 1 => '')); - + echo $toolbar = Display::toolbarAction('actions-documents', array($actionsLeft)); if ($is_certificate_mode) { - $all_information_by_create_certificate = DocumentManager::get_all_info_to_certificate(api_get_user_id(), api_get_course_id()); + $all_information_by_create_certificate = DocumentManager::get_all_info_to_certificate( + api_get_user_id(), + api_get_course_id() + ); $str_info = ''; foreach ($all_information_by_create_certificate[0] as $info_value) { @@ -630,6 +635,7 @@ if ($form->validate()) { $create_certificate = get_lang('CreateCertificateWithTags'); Display::display_normal_message($create_certificate.':