|
|
|
@ -134,7 +134,7 @@ $group = array( |
|
|
|
|
$form->createElement('radio', 'show_course_in_user_language', null, get_lang('No'), 2), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$form->addGroup($group, '', array(get_lang("ShowCourseInUserLanguage")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ShowCourseInUserLanguage"))); |
|
|
|
|
|
|
|
|
|
$form->addText('department_name', get_lang('Department'), false); |
|
|
|
|
$form->applyFilter('department_name', 'html_filter'); |
|
|
|
@ -178,7 +178,7 @@ if (api_get_setting('allow_course_theme') == 'true') { |
|
|
|
|
null, |
|
|
|
|
array('id' => 'course_theme_id') |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Stylesheets")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Stylesheets"))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$form->addElement('label', get_lang('DocumentQuota'), format_file_size(DocumentManager::get_course_quota())); |
|
|
|
@ -202,7 +202,7 @@ $group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisi |
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
$group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN); |
|
|
|
|
} |
|
|
|
|
$form->addGroup($group, '', array(get_lang("CourseAccess"), get_lang("CourseAccessConfigTip")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("CourseAccess"), get_lang("CourseAccessConfigTip"))); |
|
|
|
|
|
|
|
|
|
$url = api_get_path(WEB_CODE_PATH)."auth/inscription.php?c=$course_code&e=1"; |
|
|
|
|
$url = Display::url($url, $url); |
|
|
|
@ -211,12 +211,12 @@ $form->addElement('label', get_lang('DirectLink'), sprintf(get_lang('CourseSetti |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Subscription")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Subscription"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Unsubscription")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("Unsubscription"))); |
|
|
|
|
|
|
|
|
|
$form->addText('course_registration_password', get_lang('CourseRegistrationPassword'), false, array('size' => '60')); |
|
|
|
|
|
|
|
|
@ -234,7 +234,7 @@ if (api_get_setting('documents_default_visibility_defined_in_course') == 'true') |
|
|
|
|
$form->createElement('radio', 'documents_default_visibility', null, get_lang('Visible'), 'visible'), |
|
|
|
|
$form->createElement('radio', 'documents_default_visibility', null, get_lang('Invisible'), 'invisible') |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("DocumentsDefaultVisibility")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("DocumentsDefaultVisibility"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
} |
|
|
|
@ -246,29 +246,29 @@ $group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("NewUserEmailAlert")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("NewUserEmailAlert"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("NewHomeworkEmailAlert")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("NewHomeworkEmailAlert"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("WorkEmailAlert")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("WorkEmailAlert"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("DropboxEmailAlert")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("DropboxEmailAlert"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("QuizEmailAlert")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("QuizEmailAlert"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
@ -279,22 +279,22 @@ $form->addElement('html', '<div><h3>'.Display::return_icon('user.png', Security: |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserEditAgenda")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserEditAgenda"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserEditAnnouncement")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserEditAnnouncement"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserImageForum")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserImageForum"))); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserViewUserList")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserViewUserList"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
@ -304,7 +304,7 @@ $form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', Security: |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowOpenchatWindow")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowOpenchatWindow"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
@ -316,14 +316,14 @@ $group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2); |
|
|
|
|
$group[]=$form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("LPAutoLaunch")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("LPAutoLaunch"))); |
|
|
|
|
|
|
|
|
|
if (api_get_setting('allow_course_theme') == 'true') { |
|
|
|
|
// Allow theme into Learning path |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowLearningPathTheme"))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$allowLPReturnLink = api_get_setting('allow_lp_return_link'); |
|
|
|
@ -344,7 +344,7 @@ if ($allowLPReturnLink === 'true') { |
|
|
|
|
0 |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("LpReturnLink")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("LpReturnLink"))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$exerciseInvisible = api_get_setting('exercise_invisible_in_session'); |
|
|
|
@ -369,7 +369,7 @@ if ($exerciseInvisible === 'true' && |
|
|
|
|
0 |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ExerciseInvisibleInSession")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ExerciseInvisibleInSession"))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -398,7 +398,7 @@ $group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2); |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
@ -412,7 +412,7 @@ $group = array( |
|
|
|
|
$form->createElement('radio', 'show_system_folders', null, get_lang('Yes'), 1), |
|
|
|
|
$form->createElement('radio', 'show_system_folders', null, get_lang('No'), 2), |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ShowSystemFolders")), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ShowSystemFolders"))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
@ -422,7 +422,7 @@ if (api_get_setting('allow_public_certificates')=='true') { |
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang('AllowPublicCertificates')), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang('AllowPublicCertificates'))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
} |
|
|
|
@ -437,7 +437,7 @@ $group = array( |
|
|
|
|
$form->createElement('radio', 'enable_forum_auto_launch', null, get_lang('RedirectToForumList'), 1), |
|
|
|
|
$form->createElement('radio', 'enable_forum_auto_launch', null, get_lang('Disabled'), 2), |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang('EnableForumAutoLaunch')), ''); |
|
|
|
|
$form->addGroup($group, '', array(get_lang('EnableForumAutoLaunch'))); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|