openrat-cms

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

commit a06cfe2578bfd8b44bc381e212b47716dfa1445b
parent af659c724330632d3ed8697173a68a6e2f942fb7
Author: dankert <devnull@localhost>
Date:   Mon,  5 Nov 2007 22:00:21 +0100

Eingabefeld rot umranden, wenn Fehler f?r dieses Feld existiert.

Diffstat:
themes/default/include/html/checkbox.inc.php | 2+-
themes/default/include/html/input.inc.php | 2+-
themes/default/include/html/password.inc.php | 4++--
themes/default/include/html/radio.inc.php | 4++--
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/themes/default/include/html/checkbox.inc.php b/themes/default/include/html/checkbox.inc.php @@ -3,7 +3,7 @@ $checked = $$attr_name; else $checked = $attr_default; -?><input type="checkbox" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php +?><input type="checkbox" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($attr_name,$errors)) echo ' style="background-color:red;"' ?> /><?php if ( $attr_readonly && $checked ) { diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -1,5 +1,5 @@ <?php if(!isset($attr_default)) $attr_default=''; -?><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 +?><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 } ?> \ No newline at end of file diff --git a/themes/default/include/html/password.inc.php b/themes/default/include/html/password.inc.php @@ -1 +1 @@ -<input type="password" name="<?php echo $attr_name ?>" 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 ?>" />- \ No newline at end of file +<input type="password" name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php if (count($errors)==0) echo isset($$attr_name)?$$attr_name:$attr_default ?>" <?php if (in_array($attr_name,$errors)) echo 'style="border:2px dashed red;"' ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php @@ -6,4 +6,4 @@ else $attr_tmp_default = ''; - ?><input type="radio" id="id_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if($attr_value==$attr_tmp_default) echo 'checked="checked"' ?> />- \ No newline at end of file + ?><input type="radio" id="id_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if($attr_value==$attr_tmp_default) echo 'checked="checked"' ?><?php if (in_array($attr_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> />+ \ No newline at end of file