From 64c11e2f584c85d858144e59f8dbaef123bd56e6 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 5 Oct 2011 17:16:13 +0200 Subject: [PATCH] Fixing ordering in infocours.php --- main/course_info/infocours.php | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index e7d0e751e8..3cd116cf2c 100644 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -132,29 +132,34 @@ if (file_exists($course_path.'/course-pic85x85.png')) { } $form->addElement('html', $image_html); -$visual_code=$form->addElement('text', 'visual_code', get_lang('Code')); -$visual_code->freeze(); -$form->applyFilter('visual_code', 'strtoupper'); -//$form->add_textfield('tutor_name', get_lang('Professors'), true, array ('size' => '60')); -$prof = &$form->addElement('select', 'tutor_name', get_lang('Teacher'), $a_profs, array('style'=>'width:350px', 'class'=>'chzn-select', 'id'=>'tutor_name')); -$form->applyFilter('tutor_name', 'html_filter'); -$prof -> setSelected($s_selected_tutor); $form->add_textfield('title', get_lang('Title'), true, array('size' => '60')); //$form->applyFilter('title', 'html_filter'); $form->applyFilter('title', 'trim'); +//$form->add_textfield('tutor_name', get_lang('Professors'), true, array ('size' => '60')); +$prof = &$form->addElement('select', 'tutor_name', get_lang('Teacher'), $a_profs, array('style'=>'width:350px', 'class'=>'chzn-select', 'id'=>'tutor_name')); +$form->applyFilter('tutor_name', 'html_filter'); +$prof -> setSelected($s_selected_tutor); + +/*$visual_code=$form->addElement('text', 'visual_code', get_lang('Code')); +$visual_code->freeze(); +$form->applyFilter('visual_code', 'strtoupper');*/ + + $form->addElement('select', 'category_code', get_lang('Fac'), $categories, array('style'=>'width:350px', 'class'=>'chzn-select', 'id'=>'category_code')); + + +$form->addElement('select_language', 'course_language', array(get_lang('Ln'), get_lang('TipLang'))); + + + $form->add_textfield('department_name', get_lang('Department'), false, array('size' => '60')); -//$form->applyFilter('department_name', 'html_filter'); $form->applyFilter('department_name', 'trim'); $form->add_textfield('department_url', get_lang('DepartmentUrl'), false, array('size' => '60')); -//$form->applyFilter('department_url', 'html_filter'); - $form->addRule('tutor_name', get_lang('ThisFieldIsRequired'), 'required'); -$form->addElement('select_language', 'course_language', get_lang('Ln')); -$form->addElement('static', null, ' ', get_lang('TipLang')); + // Picture $form->addElement('file', 'picture', get_lang('AddPicture'));