2 /*******************************************************************************
3 * Copyright (C) 2007 Easter-eggs
4 * http://ldapsaisie.labs.libre-entreprise.org
6 * Author: See AUTHORS file in top-level directory.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ******************************************************************************/
25 * Element select d'un formulaire pour LdapSaisie
27 * Cette classe définis les éléments select des formulaires.
28 * Elle étant la classe basic LSformElement.
30 * @author Benjamin Renard <brenard@easter-eggs.com>
33 class LSformElement_select extends LSformElement {
35 var $template = 'LSformElement_select.tpl';
36 var $fieldTemplate = 'LSformElement_select.tpl';
39 * Retourn les infos d'affichage de l'élément
41 * Cette méthode retourne les informations d'affichage de l'élement
45 function getDisplay(){
46 $return = $this -> getLabelInfos();
48 if (!$this -> isFreeze()) {
49 LSsession :: addHelpInfos (
50 'LSformElement_select',
52 'clear' => _("Reset selection.")
55 LSsession :: addJSscript('LSformElement_select.js');
57 $params['possible_values'] = $this -> params['text_possible_values'];
58 $return['html'] = $this -> fetchTemplate(NULL,$params);