diff --git a/main/course_description/index.php b/main/course_description/index.php index 9d1a20b644..ad806a8d21 100644 --- a/main/course_description/index.php +++ b/main/course_description/index.php @@ -1,4 +1,5 @@ - - .row{ - width:100%; - } - div.row div.label { - width: 60px; - } - - div.row div.formw { - width: 100%; - } - '; - // Build the form $form = new FormValidator('course_description','POST','index.php','','style="width: 100%;"'); $form->addElement('hidden', 'description_id'); @@ -237,18 +224,12 @@ if (api_is_allowed_to_edit() && !is_null($description_id)) { if ($show_peda_suggest) { - echo '
'; if (isset ($question[$description_id])) { - echo '
'.get_lang('QuestionPlan').'
'; - echo '
'.$question[$description_id].'
'; - } - if (isset ($information[$description_id])) - { - //echo '
'.get_lang('Info2Say').'
'; - //echo '
'.$information[$description_id].'
'; + $message = ''.get_lang('QuestionPlan').'
'; + $message .= $question[$description_id]; + Display::display_normal_message($message, false); } - echo '
'; } if (api_get_setting('wcag_anysurfer_public_pages')=='true') { echo (WCAG_Rendering::editor_header()); @@ -274,9 +255,6 @@ if ($show_description_list) } if (api_is_allowed_to_edit()) { - echo '
'; - Display::display_normal_message(get_lang('CourseDescriptionIntro'),false); - echo "
"; $categories = array (); foreach ($default_description_titles as $id => $title) @@ -286,49 +264,41 @@ if ($show_description_list) $categories[ADD_BLOCK] = get_lang('NewBloc'); $i=1; - foreach ($categories as $id => $title){ - if($i==1 || $i==5){ - echo '
'; - } - echo '
-
'.$title.'
-
'; - if($i==4 || $i==8){ - echo '
'; - } + echo '
'; + foreach ($categories as $id => $title) + { + echo ' '.$title.''; $i++; } - - echo '
'; + echo '
'; } if (isset($descriptions) && count($descriptions) > 0) { foreach ($descriptions as $id => $description) { - echo '
'; - echo '
'; + echo '
'; if (api_is_allowed_to_edit()) { - //delete echo ''; echo ''.get_lang('; echo ' '; - //edit echo ''; echo ''.get_lang('; echo ' '; } - echo '

'.$description->title.'

'; + echo $description->title; echo '
'; + echo '
'; echo text_filter($description->content); + echo '
'; } } else { - echo '
'.get_lang('ThisCourseDescriptionIsEmpty').''; + echo ''.get_lang('ThisCourseDescriptionIsEmpty').''; } } /* diff --git a/main/course_home/activity.php b/main/course_home/activity.php index bcc8b70c89..da22d110f2 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -1,4 +1,5 @@ '; + $link['name'] = Display::return_icon('visible.gif', get_lang('Deactivate')); $link['cmd'] = "hide=yes"; $lnk[] = $link; @@ -233,7 +234,7 @@ function show_tools_category($course_tool_category) if($toolsRow['visibility'] == '0' && $toolsRow['admin'] !='1') { - $link['name'] = ''.get_lang('; + $link['name'] = Display::return_icon('invisible.gif', get_lang('Activate')); $link['cmd'] = "restore=yes"; $lnk[] = $link; } @@ -290,14 +291,19 @@ function show_tools_category($course_tool_category) else{ $toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq(); } - if(strpos($toolsRow['name'],'visio_')!==false){ - echo "\t" . '     '; + if(strpos($toolsRow['name'],'visio_')!==false) + { + $toollink = "\t" . ''; } - else { - echo "\t" . '     '; + else + { + $toollink = "\t" . ''; } - echo '' . $toolsRow['image'] . '   '; + echo $toollink; + Display::display_icon($toolsRow['image']); + echo ' '; + echo $toollink; echo ($toolsRow['image'] == 'file_html_na.gif' || $toolsRow['image'] == 'file_html.gif' || $toolsRow['image'] == 'scormbuilder.gif' || $toolsRow['image'] == 'scormbuilder_na.gif' || $toolsRow['image'] == 'blog.gif' || $toolsRow['image'] == 'blog_na.gif' || $toolsRow['image'] == 'external.gif' || $toolsRow['image'] == 'external_na.gif') ? ' '.stripslashes($toolsRow['name']) : ' '.get_lang(ucfirst($toolsRow['name'])); echo "\t" . ''; echo ''; diff --git a/main/course_home/course_home.php b/main/course_home/course_home.php index 72d785c0ba..2e69fd1752 100644 --- a/main/course_home/course_home.php +++ b/main/course_home/course_home.php @@ -1,4 +1,5 @@ - -.row{ -width:100%; -} -div.row div.label { -width: 0%; -} - -div.row div.formw { -width: 100%; -} - "; - // name of the language file that needs to be included $language_file[] = "course_home"; $use_anonymous = true; diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index 6c6411b45a..bc4fba280c 100644 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -1,5 +1,5 @@ -
'; +$linebreak = '
'; // Build the form $form = new FormValidator('update_course'); +$form->addElement('html','
'.get_lang('CourseSettings').'
'); $visual_code=$form->addElement('text','visual_code', get_lang('Code')); $visual_code->freeze(); $form->applyFilter('visual_code', 'strtoupper'); @@ -160,9 +161,11 @@ $form->add_textfield('department_name', get_lang('Department'), false, array ('s $form->add_textfield('department_url', get_lang('DepartmentUrl'), false, array ('size' => '60')); $form->addRule('tutor_name', get_lang('ThisFieldIsRequired'), 'required'); $form->addElement('select_language', 'course_language', get_lang('Ln')); -$form->addElement('static', null, null, get_lang("TipLang")); -$form -> addElement('html',$linebreak); +$form->addElement('static', null, ' ', get_lang('TipLang')); + + +$form->addElement('html','
'.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); $form->addElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED); @@ -177,6 +180,13 @@ $form->addElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang(' $form->addElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0); $form -> addElement('html',$linebreak); +$form->addElement('static', null, null, get_lang("ConfTip")); +$form->add_textfield('course_registration_password', get_lang('CourseRegistrationPassword'), false, array ('size' => '60')); + + + + +$form->addElement('html','
'.get_lang('EmailNotifications').'
'); $form->addElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1); $form->addElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0); $form -> addElement('html',$linebreak); @@ -187,8 +197,11 @@ $form -> addElement('html',$linebreak); $form->addElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); $form->addElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); -$form -> addElement('html',$linebreak); + + + +$form->addElement('html','
'.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); @@ -206,6 +219,8 @@ $form -> addElement('html',$linebreak); // Course theme picker if (api_get_setting('allow_course_theme') == 'true') { + $form->addElement('html','
'.get_lang('Theming').'
'); + //Allow Learning path $form->addElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1); $form->addElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); @@ -214,7 +229,6 @@ if (api_get_setting('allow_course_theme') == 'true') $form->addElement('select_theme', 'course_theme', get_lang('Theme')); $form->applyFilter('course_theme', 'trim'); - $form -> addElement('html',$linebreak); } diff --git a/main/course_info/maintenance.php b/main/course_info/maintenance.php index 2f710e318a..623d595036 100644 --- a/main/course_info/maintenance.php +++ b/main/course_info/maintenance.php @@ -1,4 +1,30 @@ - - - - - - - - - - - - -
-
  

- -
-
  
+
  
+
+ +
  
+

  • @@ -45,35 +61,15 @@ api_display_tool_title($nameTools);
-
-
  

-

-
-
  

- + -
+
  
+
+
  
+