openrat-cms

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

commit 01f6e6f4b1cef7b77e1c34080377acd5fdefbf17
parent a29b1c103c720308dc2a861b40b673e7034e3a74
Author: dankert <devnull@localhost>
Date:   Fri,  9 Nov 2007 21:39:39 +0100

Bei Fehler die Selectbox rot umranden.

Diffstat:
themes/default/include/html/selectbox.inc.php | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -3,6 +3,7 @@ if ($attr_addempty) $$attr_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr_lis ?><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"'; +if (in_array($attr_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr_size).'"'; ?>><?php $attr_tmp_list = $$attr_list;