diff --git a/main/admin/session_add.php b/main/admin/session_add.php index 77c7bef4d2..4be6a926a1 100755 --- a/main/admin/session_add.php +++ b/main/admin/session_add.php @@ -273,7 +273,7 @@ if (intval($countUsers) < 50) { $form->addRule('coach_username', get_lang('ThisFieldIsRequired'), 'required'); $form->add_html('
'); -$form->add_select('session_category', get_lang('SessionCategory'), $categoriesOptions, array( +$form->addSelect('session_category', get_lang('SessionCategory'), $categoriesOptions, array( 'id' => 'session_category', 'class' => 'chzn-select', 'style' => 'width:370px;' diff --git a/main/admin/session_edit.php b/main/admin/session_edit.php index 35c844d495..dfcafd080d 100755 --- a/main/admin/session_edit.php +++ b/main/admin/session_edit.php @@ -72,7 +72,7 @@ $monthsOption = array(); for ($i = 1; $i <= 12; $i++) { $month = sprintf("%02d", $i); - + $monthsOption[$month] = $month; } @@ -130,7 +130,7 @@ $form->addElement('select', 'id_coach', get_lang('CoachName'), $coachesOption, a )); $form->addRule('id_coach', get_lang('ThisFieldIsRequired'), 'required'); -$form->add_select('session_category', get_lang('SessionCategory'), $categoriesOption, array( +$form->addSelect('session_category', get_lang('SessionCategory'), $categoriesOption, array( 'id' => 'session_category', 'class' => 'chzn-select', 'style' => 'width:370px;' diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php index 16ef01bdd6..83b1d807df 100755 --- a/main/inc/lib/formvalidator/FormValidator.class.php +++ b/main/inc/lib/formvalidator/FormValidator.class.php @@ -332,7 +332,7 @@ EOT; * @param string $options * @param array $attributes */ - public function add_select($name, $label, $options = '', $attributes = array()) + public function addSelect($name, $label, $options = '', $attributes = array()) { $this->addElement('select', $name, $label, $options, $attributes); } diff --git a/main/link/link_form.class.php b/main/link/link_form.class.php index 306e9bee7a..389763dfed 100755 --- a/main/link/link_form.class.php +++ b/main/link/link_form.class.php @@ -87,7 +87,7 @@ class LinkForm extends \FormValidator foreach ($categories as $category) { $options[$category->id] = $category->category_title; } - $this->add_select('category_id', get_lang('Category'), $options); + $this->addSelect('category_id', get_lang('Category'), $options); $targets = array( '_self' => get_lang('LinkOpenSelf'), @@ -95,7 +95,7 @@ class LinkForm extends \FormValidator '_parent' => get_lang('LinkOpenParent'), '_top' => get_lang('LinkOpenTop') ); - $this->add_select('target', get_lang('LinkTarget'), $targets); + $this->addSelect('target', get_lang('LinkTarget'), $targets); //$help = '' . get_lang('AddTargetOfLinkOnHomepage') . ''; //$this->add_label('', $help);