|
1 | | -<?php // $Id: course_edit.php 20441 2009-05-10 07:39:15Z ivantcholakov $ |
2 | | -/* For licensing terms, see /dokeos_license.txt */ |
| 1 | +<?php |
| 2 | +/* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | 4 | * @package chamilo.admin |
5 | 5 | */ |
6 | 6 | /* Initialization section */ |
7 | 7 | // name of the language file that needs to be included |
8 | 8 | $language_file = 'admin'; |
9 | 9 | $cidReset = true; |
10 | | -include ('../inc/global.inc.php'); |
11 | | -$this_section=SECTION_PLATFORM_ADMIN; |
| 10 | +require_once '../inc/global.inc.php'; |
| 11 | +$this_section = SECTION_PLATFORM_ADMIN; |
12 | 12 |
|
13 | 13 | api_protect_admin_script(); |
14 | | -include (api_get_path(LIBRARY_PATH).'fileManage.lib.php'); |
15 | | -require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); |
16 | | -require_once (api_get_path(LIBRARY_PATH).'course.lib.php'); |
| 14 | +require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php'; |
| 15 | +require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; |
| 16 | +require_once api_get_path(LIBRARY_PATH).'course.lib.php'; |
| 17 | + |
17 | 18 | $course_table = Database::get_main_table(TABLE_MAIN_COURSE); |
18 | 19 | $course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER); |
19 | 20 | $course_code = isset($_GET['course_code']) ? $_GET['course_code'] : $_POST['code']; |
20 | 21 | $noPHP_SELF = true; |
21 | 22 | $tool_name = get_lang('ModifyCourseInfo'); |
22 | | -$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin')); |
23 | | -$interbreadcrumb[] = array ("url" => "course_list.php", "name" => get_lang('AdminCourses')); |
| 23 | +$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin')); |
| 24 | +$interbreadcrumb[] = array ("url" => "course_list.php", "name" => get_lang('CourseList')); |
24 | 25 |
|
25 | 26 | define('USER_FIELD_TYPE_CHECKBOX', 10); |
26 | 27 |
|
|
99 | 100 | $form->applyFilter('visual_code','strtoupper'); |
100 | 101 | $form->applyFilter('visual_code','html_filter'); |
101 | 102 | //$form->add_textfield('tutor_name', get_lang('CourseTitular')); |
102 | | -$form->addElement('select', 'tutor_name', get_lang('CourseTitular'), $platform_teachers); |
| 103 | +$form->addElement('select', 'tutor_name', get_lang('CourseTitular'), $platform_teachers, array('style'=>'width:350px')); |
103 | 104 | $form->applyFilter('tutor_name','html_filter'); |
104 | 105 |
|
105 | 106 | //$form->addElement('select', 'course_teachers', get_lang('CourseTeachers'), $teachers, 'multiple=multiple size="4" style="width: 150px;"'); |
106 | 107 |
|
107 | 108 | $group=array(); |
108 | | -$group[] = FormValidator::createElement('select', 'platform_teachers', '', $teachers, 'id="platform_teachers" multiple=multiple size="4" style="width: 150px;"'); |
109 | | -$group[] = FormValidator::createElement('select', 'course_teachers', '', $course_teachers, 'id="course_teachers" multiple=multiple size="4" style="width: 150px;"'); |
| 109 | +$group[] = FormValidator::createElement('select', 'platform_teachers', '', $teachers, 'id="platform_teachers" multiple=multiple size="4" style="width:280px;"'); |
| 110 | +$group[] = FormValidator::createElement('select', 'course_teachers', '', $course_teachers, 'id="course_teachers" multiple=multiple size="4" style="width:280px;"'); |
110 | 111 |
|
111 | 112 | $element_template = <<<EOT |
112 | 113 | <div class="row"> |
|
130 | 131 | '<input class="arrowl" style="width:30px;height:30px;padding-left:13px" type="button" onclick="moveItem(document.getElementById(\'course_teachers\'), document.getElementById(\'platform_teachers\'))" ></td><td>'); |
131 | 132 |
|
132 | 133 |
|
133 | | -$categories_select = $form->addElement('select', 'category_code', get_lang('CourseFaculty'), $categories); |
| 134 | +$categories_select = $form->addElement('select', 'category_code', get_lang('CourseFaculty'), $categories , array('style'=>'width:350px')); |
134 | 135 | CourseManager::select_and_sort_categories($categories_select); |
135 | 136 |
|
136 | 137 | $form->add_textfield( 'department_name', get_lang('CourseDepartment'), false,array ('size' => '60')); |
|
0 commit comments