openrat-cms

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

commit 627053d84d952c3013f6d046dc88d620bd26d44f
parent c90585571f6ea2e2d9ceddef71ca197c35ef2ccf
Author: dankert <devnull@localhost>
Date:   Thu,  6 Jan 2005 00:10:42 +0100

Hinzufuegen von Elementen mit eigenem Submit-Knopf

Diffstat:
themes/default/pages/html/template/src.tpl.php | 30++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)

diff --git a/themes/default/pages/html/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php @@ -8,28 +8,26 @@ <table class="main" width="90%" cellspacing="0" cellpadding="4"> <tr> - <th><?php echo lang('TEMPLATE_SOURCE') ?></th> + <th colspan="2"><?php echo lang('TEMPLATE_SOURCE') ?></th> </tr> <tr> -<td class="f1"><textarea rows="25" cols="80" name="src"><?php echo $text ?></textarea></td> +<td class="f1" colspan="2"><textarea rows="25" cols="80" name="src"><?php echo $text ?></textarea></td> </tr> <?php if ( count($elements)>0 ) { ?> <tr> -<td class="f2"><input type="checkbox" name="addelement" value="1"> - <?php echo lang('GLOBAL_ADD') ?>: - <?php echo Html::selectBox('elementid',$elements) ?></td> + <td class="f2" width="30%"><?php echo Html::selectBox('elementid',$elements) ?></td> + <td class="f2"><input type="submit" name="addelement" class="submit" value="<?php echo lang('GLOBAL_ADD') ?>" /></td> </tr> <?php } ?> <?php if ( count($icon_elements)>0 ) { ?> <tr> -<td class="f2"><input type="checkbox" name="addicon" value="1"> - <?php echo lang('GLOBAL_ADD') ?>: - <?php echo Html::selectBox('iconid',$icon_elements) ?></td> + <td class="f2" width="30%"><?php echo Html::selectBox('iconid',$icon_elements) ?></td> + <td class="f2"><input type="submit" name="addicon" class="submit" value="<?php echo lang('GLOBAL_ADD') ?>" /></td> </tr> <?php } ?> @@ -37,23 +35,21 @@ <?php if ( count($ifempty_elements)>0 ) { ?> <tr> -<td class="f2"><input type="checkbox" name="addifempty" value="1"> - <?php echo lang('GLOBAL_ADD') ?>: - <?php echo Html::selectBox('ifemptyid',$ifempty_elements) ?></td> + <td class="f2" width="30%"><?php echo Html::selectBox('ifemptyid',$ifempty_elements) ?></td> + <td class="f2"><input type="submit" name="addifempty" class="submit" value="<?php echo lang('GLOBAL_ADD') ?>" /></td> </tr> <?php } ?> <?php if ( count($ifnotempty_elements)>0 ) { ?> <tr> -<td class="f2"><input type="checkbox" name="addifnotempty" value="1"> - <?php echo lang('GLOBAL_ADD') ?>: - <?php echo Html::selectBox('ifnotemptyid',$ifnotempty_elements) ?></td> + <td class="f2" width="30%"><?php echo Html::selectBox('ifnotemptyid',$ifnotempty_elements) ?></td> + <td class="f2"><input type="submit" name="addifnotempty" class="submit" value="<?php echo lang('GLOBAL_ADD') ?>" /></td> </tr> <?php } ?> <tr> -<td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> +<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>" /></td> </tr> </table> @@ -62,8 +58,6 @@ </center> -<script name="JavaScript" type="text/javascript"><!-- -document.forms[0].src.focus(); -//--></script> +<?php echo Html::focusField('src') ?> <?php include( $tpl_dir.'footer.tpl.php') ?> \ No newline at end of file