diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index f17758f37e..13f3d40289 100644 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -110,8 +110,7 @@ $linebreak = '
addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('settings.png', get_lang('CourseSettings'),'','22').' '.get_lang('CourseSettings').'
'); -$form->addElement('html', '

'.Display::return_icon('settings.png', get_lang('CourseSettings'),'','22').' '.get_lang('CourseSettings').'

'); +$form->addElement('html', '

'.Display::return_icon('settings.png', addslashes(get_lang('CourseSettings')),'','22').' '.addslashes(get_lang('CourseSettings')).'

'); $image_html = ''; @@ -182,9 +181,7 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= $form->addElement('html', '
'); // COURSE ACCESS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('course.png', get_lang('CourseAccess'),'','22').' '.get_lang('CourseAccess').'
'); -$form->addElement('html', '

'.Display::return_icon('course.png', get_lang('CourseAccess'),'','22').' '.get_lang('CourseAccess').'

'); - +$form->addElement('html', '

'.Display::return_icon('course.png', addslashes(get_lang('CourseAccess')),'','22').' '.addslashes(get_lang('CourseAccess')).'

'); $form->addElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); $form->addElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM); @@ -207,9 +204,7 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= $form->addElement('html', '
'); // EMAIL NOTIFICATIONS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('mail.png', get_lang('EmailNotifications'),'','22').' '.get_lang('EmailNotifications').'
'); - -$form->addElement('html', '

'.Display::return_icon('mail.png', get_lang('EmailNotifications'),'','22').' '.get_lang('EmailNotifications').'

'); +$form->addElement('html', '

'.Display::return_icon('mail.png', addslashes(get_lang('EmailNotifications')),'','22').' '.addslashes(get_lang('EmailNotifications')).'

'); $form->addElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); $form->addElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); @@ -239,8 +234,7 @@ $form->addElement('html', '
'); // Gradebook SETTINGS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'
'); -$form->addElement('html', '

'.Display::return_icon('gradebook.png', get_lang('Gradebook'),'','22').' '.get_lang('Gradebook').'

'); +$form->addElement('html', '

'.Display::return_icon('gradebook.png', addslashes(get_lang('Gradebook')),'','22').' '.addslashes(get_lang('Gradebook')).'

'); $group = array(); $models = api_get_settings_options('grading_model'); if (!empty($models )) { @@ -261,10 +255,7 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= $form->addElement('html', '
'); // USER RIGHTS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('user.png', get_lang('UserRights'),'','22').' '.get_lang('UserRights').'
'); -$form->addElement('html', '

'.Display::return_icon('user.png', get_lang('UserRights'),'','22').' '.get_lang('UserRights').'

'); - - +$form->addElement('html', '

'.Display::return_icon('user.png', addslashes(get_lang('UserRights')),'','22').' '.addslashes(get_lang('UserRights')).'

'); $form->addElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); $form->addElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); $form->addElement('html', $linebreak); @@ -285,8 +276,7 @@ $form->addElement('html', '
'); // CHAT SETTINGS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'
'); -$form->addElement('html', '

'.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'

'); +$form->addElement('html', '

'.Display::return_icon('chat.png', addslashes(get_lang('ConfigChat')),'','22').' '.addslashes(get_lang('ConfigChat')).'

'); $form->addElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); $form->addElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"'); @@ -294,8 +284,7 @@ $form->addElement('html', '
'); // LEARNING PATH -//$form->addElement('html','
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'','22').' '.get_lang('ConfigLearnpath').'
'); -$form->addElement('html', '

'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'','22').' '.get_lang('ConfigLearnpath').'

'); +$form->addElement('html', '

'.Display::return_icon('scorms.png', addslashes(get_lang('ConfigLearnpath')),'','22').' '.addslashes(get_lang('ConfigLearnpath')).'

'); //Auto launch LP @@ -326,8 +315,7 @@ if (is_settings_editable()) { $form->addElement('html', '
'); // THEMATIC ADVANCE SETTINGS -//$form->addElement('html', '
'.Display::return_icon('top.gif', get_lang('Top')).''.Display::return_icon('course_progress.png', get_lang('ThematicAdvanceConfiguration'),'','22').' '.get_lang('ThematicAdvanceConfiguration').'
'); -$form->addElement('html', '

'.Display::return_icon('course_progress.png', get_lang('ThematicAdvanceConfiguration'),'','22').' '.get_lang('ThematicAdvanceConfiguration').'

'); +$form->addElement('html', '

'.Display::return_icon('course_progress.png', addslashes(get_lang('ThematicAdvanceConfiguration')),'','22').' '.addslashes(get_lang('ThematicAdvanceConfiguration')).'

'); $form->addElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); $form->addElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); @@ -479,4 +467,4 @@ echo '
'; $form->display(); echo '
'; -Display::display_footer(); +Display::display_footer(); \ No newline at end of file