openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit be38b7b175911f37018654de9fdc373556ac715d
parent 9e4bac31911b763fea8a64110fb9e210c7e815ab
Author: dankert <devnull@localhost>
Date:   Mon,  5 Nov 2007 21:59:19 +0100

Attribut "multiple" unterst?tzen.

Diffstat:
themes/default/include/html/selectbox.inc.php | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -1,7 +1,9 @@ <?php if ($attr_addempty) $$attr_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr_list; -?><select size="1" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php -if (count($$attr_list)<=1) echo ' disabled="disabled"' +?><select id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name; if ($attr_multiple) echo '[]'; ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php +if (count($$attr_list)<=1) echo ' disabled="disabled"'; +if ($attr_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($attr_size).'"'; ?>><?php $attr_tmp_list = $$attr_list; if ( isset($$attr_name) && isset($attr_tmp_list[$$attr_name]) )