Should fix bug in infocours.php when using jquery accordion plugin

skala
Julio Montoya 13 years ago
parent 873b68d6b3
commit ed6312c025
  1. 3
      main/course_info/infocours.php
  2. 22
      main/inc/lib/formvalidator/Element/select_language.php
  3. 28
      main/inc/lib/formvalidator/Element/select_theme.php

@ -150,7 +150,6 @@ $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', '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->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->add_textfield('department_name', get_lang('Department'), false, array('size' => '60'));
$form->applyFilter('department_name', 'trim'); $form->applyFilter('department_name', 'trim');
@ -322,7 +321,7 @@ if (api_get_setting('allow_course_theme') == 'true') {
$group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); $group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0);
$form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), '<div></div>'); $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), '<div></div>');
$form->addElement('select_theme', 'course_theme', get_lang('Theme'), '', array('class'=>'chzn-select', 'id'=>'theme')); $form->addElement('select_theme', 'course_theme', get_lang('Theme'), '');
$form->applyFilter('course_theme', 'trim'); $form->applyFilter('course_theme', 'trim');
} }

@ -1,26 +1,6 @@
<?php <?php
// $Id: select_language.php 19251 2009-03-24 21:23:16Z cfasanando $ /* For licensing terms, see /license.txt */
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2005 Dokeos S.A.
Copyright (c) Bart Mollet, Hogeschool Gent
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
Mail: info@dokeos.com
==============================================================================
*/
require_once ('HTML/QuickForm/select.php'); require_once ('HTML/QuickForm/select.php');
/** /**
* A dropdownlist with all languages to use with QuickForm * A dropdownlist with all languages to use with QuickForm

@ -1,26 +1,6 @@
<?php <?php
// $Id: $ /* For licensing terms, see /license.txt */
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2008 Dokeos SPRL
Copyright (c) Bart Mollet, Hogeschool Gent
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
Mail: info@dokeos.com
==============================================================================
*/
require_once ('HTML/QuickForm/select.php'); require_once ('HTML/QuickForm/select.php');
/** /**
* A dropdownlist with all themes to use with QuickForm * A dropdownlist with all themes to use with QuickForm
@ -30,8 +10,10 @@ class HTML_QuickForm_Select_Theme extends HTML_QuickForm_select
/** /**
* Class constructor * Class constructor
*/ */
function HTML_QuickForm_Select_Theme($elementName=null, $elementLabel=null, $options=null, $attributes=null) function HTML_QuickForm_Select_Theme($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
{ if (!isset($attributes['class'])) {
$attributes['class'] = 'chzn-select';
}
parent::HTML_QuickForm_Select($elementName, $elementLabel, $options, $attributes); parent::HTML_QuickForm_Select($elementName, $elementLabel, $options, $attributes);
// Get all languages // Get all languages
$themes = api_get_themes(); $themes = api_get_themes();

Loading…
Cancel
Save