|
|
@ -110,8 +110,7 @@ $linebreak = '<div class="row"><div class="label"></div><div class="formw" style |
|
|
|
$form = new FormValidator('update_course'); |
|
|
|
$form = new FormValidator('update_course'); |
|
|
|
|
|
|
|
|
|
|
|
// COURSE SETTINGS |
|
|
|
// COURSE SETTINGS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="coursesettings" id="coursesettings"></a>'.Display::return_icon('settings.png', get_lang('CourseSettings'),'','22').' '.get_lang('CourseSettings').'</div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('settings.png', addslashes(get_lang('CourseSettings')),'','22').' '.addslashes(get_lang('CourseSettings')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('settings.png', get_lang('CourseSettings'),'','22').' '.get_lang('CourseSettings').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$image_html = ''; |
|
|
|
$image_html = ''; |
|
|
|
|
|
|
|
|
|
|
@ -182,9 +181,7 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
// COURSE ACCESS |
|
|
|
// COURSE ACCESS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="coursesaccess" id="coursesaccess"></a>'.Display::return_icon('course.png', get_lang('CourseAccess'),'','22').' '.get_lang('CourseAccess').'</div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', addslashes(get_lang('CourseAccess')),'','22').' '.addslashes(get_lang('CourseAccess')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', get_lang('CourseAccess'),'','22').' '.get_lang('CourseAccess').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD); |
|
|
|
$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); |
|
|
|
$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', '</div></div>'); |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
// EMAIL NOTIFICATIONS |
|
|
|
// EMAIL NOTIFICATIONS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="emailnotifications" id="emailnotifications"></a>'.Display::return_icon('mail.png', get_lang('EmailNotifications'),'','22').' '.get_lang('EmailNotifications').'</div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('mail.png', addslashes(get_lang('EmailNotifications')),'','22').' '.addslashes(get_lang('EmailNotifications')).'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('mail.png', get_lang('EmailNotifications'),'','22').' '.get_lang('EmailNotifications').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$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', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
|
|
$form->addElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
|
|
$form->addElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
|
@ -239,8 +234,7 @@ $form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Gradebook SETTINGS |
|
|
|
// Gradebook SETTINGS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="chatsettings" id="chatsettings"></a>'.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'</div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('gradebook.png', addslashes(get_lang('Gradebook')),'','22').' '.addslashes(get_lang('Gradebook')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('gradebook.png', get_lang('Gradebook'),'','22').' '.get_lang('Gradebook').'</h3><div>'); |
|
|
|
|
|
|
|
$group = array(); |
|
|
|
$group = array(); |
|
|
|
$models = api_get_settings_options('grading_model'); |
|
|
|
$models = api_get_settings_options('grading_model'); |
|
|
|
if (!empty($models )) { |
|
|
|
if (!empty($models )) { |
|
|
@ -261,10 +255,7 @@ $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class= |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
// USER RIGHTS |
|
|
|
// USER RIGHTS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="userrights" id="userrights"></a>'.Display::return_icon('user.png', get_lang('UserRights'),'','22').' '.get_lang('UserRights').'</div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('user.png', addslashes(get_lang('UserRights')),'','22').' '.addslashes(get_lang('UserRights')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('user.png', get_lang('UserRights'),'','22').' '.get_lang('UserRights').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
|
|
$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('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
|
|
$form->addElement('html', $linebreak); |
|
|
|
$form->addElement('html', $linebreak); |
|
|
@ -285,8 +276,7 @@ $form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CHAT SETTINGS |
|
|
|
// CHAT SETTINGS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="chatsettings" id="chatsettings"></a>'.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'</div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', addslashes(get_lang('ConfigChat')),'','22').' '.addslashes(get_lang('ConfigChat')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('chat.png', get_lang('ConfigChat'),'','22').' '.get_lang('ConfigChat').'</h3><div>'); |
|
|
|
|
|
|
|
$form->addElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
|
|
$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('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
|
|
$form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"'); |
|
|
|
$form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"'); |
|
|
@ -294,8 +284,7 @@ $form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// LEARNING PATH |
|
|
|
// LEARNING PATH |
|
|
|
//$form->addElement('html','<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="learnpath" id="learnpath"></a>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'','22').' '.get_lang('ConfigLearnpath').'</div><div style="clear:both;"></div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', addslashes(get_lang('ConfigLearnpath')),'','22').' '.addslashes(get_lang('ConfigLearnpath')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'','22').' '.get_lang('ConfigLearnpath').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Auto launch LP |
|
|
|
//Auto launch LP |
|
|
@ -326,8 +315,7 @@ if (is_settings_editable()) { |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
|
|
// THEMATIC ADVANCE SETTINGS |
|
|
|
// THEMATIC ADVANCE SETTINGS |
|
|
|
//$form->addElement('html', '<div class="sectiontitle" style="margin-top: 40px;"><a href="#header" style="float:right;">'.Display::return_icon('top.gif', get_lang('Top')).'</a><a name="thematicadvance" id="thematicadvance"></a>'.Display::return_icon('course_progress.png', get_lang('ThematicAdvanceConfiguration'),'','22').' '.get_lang('ThematicAdvanceConfiguration').'</div>'); |
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('course_progress.png', addslashes(get_lang('ThematicAdvanceConfiguration')),'','22').' '.addslashes(get_lang('ThematicAdvanceConfiguration')).'</h3><div>'); |
|
|
|
$form->addElement('html', '<div> <h3>'.Display::return_icon('course_progress.png', get_lang('ThematicAdvanceConfiguration'),'','22').' '.get_lang('ThematicAdvanceConfiguration').'</h3><div>'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
|
|
$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); |
|
|
|
$form->addElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
|
|