From 0b484277e0d7d66921edf905574b73731aca0632 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 14 Oct 2009 12:27:57 -0500 Subject: [PATCH] Minor - change input order --- main/admin/course_add.php | 37 +++++++++---------------------------- main/admin/course_edit.php | 11 +++++++---- 2 files changed, 16 insertions(+), 32 deletions(-) mode change 100755 => 100644 main/admin/course_add.php mode change 100755 => 100644 main/admin/course_edit.php diff --git a/main/admin/course_add.php b/main/admin/course_add.php old mode 100755 new mode 100644 index 53d11ce865..f5eb6cf355 --- a/main/admin/course_add.php +++ b/main/admin/course_add.php @@ -1,29 +1,6 @@ addElement('header', '', $tool_name); + +//Title +$form->add_textfield('title', get_lang('Title'),true, array ('size' => '60')); +$form->applyFilter('title','html_filter'); +$form->applyFilter('title','trim'); + +// code $form->add_textfield( 'visual_code', get_lang('CourseCode'),false,array('size'=>'20','maxlength'=>20)); $form->applyFilter('visual_code','api_strtoupper'); $form->applyFilter('visual_code','html_filter'); @@ -98,10 +82,7 @@ $form->applyFilter('tutor_id','html_filter'); $form->addElement('select', 'course_teachers', get_lang('CourseTeachers'), $teachers, 'multiple=multiple size=5'); $form->applyFilter('course_teachers','html_filter'); -//Title -$form->add_textfield('title', get_lang('Title'),true, array ('size' => '60')); -$form->applyFilter('title','html_filter'); -$form->applyFilter('title','trim'); + $categories_select = $form->addElement('select', 'category_code', get_lang('CourseFaculty'), $categories); $form->applyFilter('category_code','html_filter'); diff --git a/main/admin/course_edit.php b/main/admin/course_edit.php old mode 100755 new mode 100644 index be3efd3805..b2c23b28c1 --- a/main/admin/course_edit.php +++ b/main/admin/course_edit.php @@ -101,6 +101,12 @@ if(count($course_teachers)==0){ // Build the form $form = new FormValidator('update_course'); $form->addElement('hidden','code',$course_code); + +//title +$form->add_textfield( 'title', get_lang('Title'),true, array ('size' => '60')); +$form->applyFilter('title','html_filter'); +$form->applyFilter('title','trim'); +// code $form->add_textfield('visual_code', get_lang('CourseCode')); $form->applyFilter('visual_code','strtoupper'); $form->applyFilter('visual_code','html_filter'); @@ -132,10 +138,7 @@ EOT; $renderer = $form->defaultRenderer(); $renderer -> setElementTemplate($element_template, 'group'); $form -> addGroup($group,'group',get_lang('CourseTeachers'),'

'); -//title -$form->add_textfield( 'title', get_lang('Title'),true, array ('size' => '60')); -$form->applyFilter('title','html_filter'); -$form->applyFilter('title','trim'); + $categories_select = $form->addElement('select', 'category_code', get_lang('CourseFaculty'), $categories); CourseManager::select_and_sort_categories($categories_select);