diff --git a/main/admin/course_edit.php b/main/admin/course_edit.php index 15564428bc..e0b3df2561 100644 --- a/main/admin/course_edit.php +++ b/main/admin/course_edit.php @@ -110,26 +110,17 @@ $group=array(); $group[] = $form->createElement('select', 'platform_teachers', '', $teachers, ' id="platform_teachers" multiple=multiple size="4" style="width:300px;"'); $group[] = $form->createElement('select', 'course_teachers', '', $course_teachers, ' id="course_teachers" multiple=multiple size="4" style="width:300px;"'); -$element_template = << - -
- - - {error}
- -
{element}
-
- -EOT; - +$multiSelectTemplate = $form->getDoubleMultipleSelectTemplate(); $renderer = $form->defaultRenderer(); -$renderer -> setElementTemplate($element_template, 'group'); -$form -> addGroup($group,'group',get_lang('CourseTeachers'),''. - '

' . - ''); +$renderer->setElementTemplate($multiSelectTemplate, 'group'); +$form->addGroup( + $group, + 'group', + get_lang('CourseTeachers'), + ''. + '

' . + '' +); $categories_select = $form->addElement('select', 'category_code', get_lang('CourseFaculty'), array() , array('style'=>'width:350px','id'=>'category_code_id', 'class'=>'chzn-select')); @@ -144,7 +135,6 @@ $form->add_textfield( 'department_url', get_lang('CourseDepartmentURL'),false, a $form->applyFilter('department_url','html_filter'); $form->applyFilter('department_url','trim'); - $form->addElement('select_language', 'course_language', get_lang('CourseLanguage')); $form->applyFilter('select_language','html_filter'); @@ -235,8 +225,7 @@ function valide() { document.update_course.submit(); } "; -//api_display_tool_title($tool_name); // Display the form $form->display(); -/* FOOTER */ + Display :: display_footer(); diff --git a/main/course_home/activity.php b/main/course_home/activity.php index 00909f64c9..ea036cf3cb 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -114,13 +114,11 @@ if ($session_id == 0 && api_is_course_admin() && api_is_allowed_to_edit(null, tr } } -function return_block($title, $content) { - global $app; - $rowDiv = '
'; - if ($app['full_width']) { - $rowDiv = '
'; - } - $html = $rowDiv.'
-
'.$rowDiv.$content.'
'; +function return_block($title, $content) +{ + $html = ' + '.$content.''; return $html; }