commit e9fc85d5b6bce983421b93d7252c854f593dec71
parent 12cb930cba6ee0c76144864dfc178484f7e923fd
Author: dankert <devnull@localhost>
Date: Tue, 8 May 2007 21:32:16 +0200
Erweiterung button-Element um Attribut "src".
Diffstat:
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/themes/default/include/elements.ini.php b/themes/default/include/elements.ini.php
@@ -3,7 +3,7 @@
; default-value could be nothing (blank), a string or "*" for required attributes
-button = type:submit,class:ok,value:ok,text:button_ok
+button = type:submit,src,class:ok,value:ok,text:button_ok
cell = width,style,class,colspan
char = type:*
checkbox = default:false,readonly:false,name:*
diff --git a/themes/default/include/html/button.inc.php b/themes/default/include/html/button.inc.php
@@ -1,9 +1,8 @@
<?php
if ($attr_type=='ok')
- {
$attr_type = 'submit';
-// $attr_class = 'ok';
-// $attr_text = 'BUTTON_OK';
-// $attr_value = 'ok';
- }
-?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value=" <?php echo lang($attr_text) ?> " />-
\ No newline at end of file
+ if (isset($attr_src))
+ $attr_type = 'image';
+ else
+ $attr_src = '';
+?><input type="<?php echo $attr_type ?>"<?php if(isset($attr_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" title="<?php echo lang($attr_text.'_DESC') ?>" value=" <?php echo lang($attr_text) ?> " />+
\ No newline at end of file