openrat-cms

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

commit 2e75a883028ef076aade07bd24d2d39572a9b580
parent 1fbfb46c75c3a483de8a5da0e100e6fe7e37b810
Author: dankert <devnull@localhost>
Date:   Tue,  3 Mar 2009 00:06:33 +0100

Bugfix für hidden-Felder (werden nie angezeigt).

Diffstat:
themes/default/include/html/input.inc.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -2,7 +2,7 @@ if ($attr_readonly && empty($$attr_name)) $$attr_name = '- '.lang('EMPTY').' -'; if(!isset($attr_default)) $attr_default=''; -?><?php if (!$attr_readonly) { +?><?php if (!$attr_readonly || $attr_type=='hidden') { ?><input<?php if ($attr_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" name="<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" <?php if (in_array($attr_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr_readonly) { ?><input type="hidden" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php