Skip to content

Commit af46a97

Browse files
committed
Minor - UI changes bigger selects
1 parent 348cc31 commit af46a97

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

main/admin/course_edit.php

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
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 */
33
/**
44
* @package chamilo.admin
55
*/
66
/* Initialization section */
77
// name of the language file that needs to be included
88
$language_file = 'admin';
99
$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;
1212

1313
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+
1718
$course_table = Database::get_main_table(TABLE_MAIN_COURSE);
1819
$course_user_table = Database::get_main_table(TABLE_MAIN_COURSE_USER);
1920
$course_code = isset($_GET['course_code']) ? $_GET['course_code'] : $_POST['code'];
2021
$noPHP_SELF = true;
2122
$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'));
2425

2526
define('USER_FIELD_TYPE_CHECKBOX', 10);
2627

@@ -99,14 +100,14 @@
99100
$form->applyFilter('visual_code','strtoupper');
100101
$form->applyFilter('visual_code','html_filter');
101102
//$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'));
103104
$form->applyFilter('tutor_name','html_filter');
104105

105106
//$form->addElement('select', 'course_teachers', get_lang('CourseTeachers'), $teachers, 'multiple=multiple size="4" style="width: 150px;"');
106107

107108
$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;"');
110111

111112
$element_template = <<<EOT
112113
<div class="row">
@@ -130,7 +131,7 @@
130131
'<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>');
131132

132133

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'));
134135
CourseManager::select_and_sort_categories($categories_select);
135136

136137
$form->add_textfield( 'department_name', get_lang('CourseDepartment'), false,array ('size' => '60'));

main/admin/session_add.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function fill_coach_field (username) {
192192
$result=Database::query($sql);
193193
$Coaches=Database::store_result($result);
194194
?>
195-
<select name="coach_username" value="true" style="width:250px;">
195+
<select name="coach_username" value="true" style="width:350px;">
196196
<option value="0"><?php get_lang('None'); ?></option>
197197
<?php foreach($Coaches as $enreg): ?>
198198
<option value="<?php echo $enreg['username']; ?>" <?php if($sent && $enreg['user_id'] == $id_coach) echo 'selected="selected"'; ?>><?php echo api_get_person_name($enreg['firstname'], $enreg['lastname']).' ('.$enreg['username'].')'; ?></option>
@@ -212,7 +212,7 @@ function fill_coach_field (username) {
212212
<tr>
213213
<td width="40%"><?php echo get_lang('SessionCategory') ?></td>
214214
<td width="60%">
215-
<select name="session_category" value="true" style="width:250px;">
215+
<select name="session_category" value="true" style="width:350px;">
216216
<option value="0"><?php get_lang('None'); ?></option>
217217
<?php
218218
if (!empty($Categories)) {

main/course_info/infocours.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ function is_settings_editable() {
133133
$visual_code->freeze();
134134
$form->applyFilter('visual_code', 'strtoupper');
135135
//$form->add_textfield('tutor_name', get_lang('Professors'), true, array ('size' => '60'));
136-
$prof = &$form->addElement('select', 'tutor_name', get_lang('Professors'), $a_profs);
136+
$prof = &$form->addElement('select', 'tutor_name', get_lang('Professors'), $a_profs, array('style'=>'width:350px'));
137137
$form->applyFilter('tutor_name', 'html_filter');
138138

139139
$prof -> setSelected($s_selected_tutor);
140140
$form->add_textfield('title', get_lang('Title'), true, array('size' => '60'));
141141
//$form->applyFilter('title', 'html_filter');
142142
$form->applyFilter('title', 'trim');
143143

144-
$form->addElement('select', 'category_code', get_lang('Fac'), $categories);
144+
$form->addElement('select', 'category_code', get_lang('Fac'), $categories, array('style'=>'width:350px'));
145145
$form->add_textfield('department_name', get_lang('Department'), false, array('size' => '60'));
146146
//$form->applyFilter('department_name', 'html_filter');
147147
$form->applyFilter('department_name', 'trim');

0 commit comments

Comments
 (0)