openrat-cms

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

commit ec8594987be10e8c388a147beef59122475a5010
parent ad4be28244fb3bbb069ed1ae4916a380057020fd
Author: dankert <devnull@localhost>
Date:   Mon, 20 Dec 2004 23:04:11 +0100

Korrektur form-Tag

Diffstat:
themes/default/pages/html/link/prop.tpl.php | 25++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/themes/default/pages/html/link/prop.tpl.php b/themes/default/pages/html/link/prop.tpl.php @@ -3,10 +3,7 @@ <!-- $Id$ --> <center> -<form action="<?php echo $self ?>" method="post" target="_self"> - -<input type="hidden" name="action" value="link"> -<input type="hidden" name="subaction" value="save"> +<?php echo Html::form('link','save') ?> <table class="main" width="90%" cellspacing="0" cellpadding="4"> @@ -14,35 +11,37 @@ <th colspan="2"><?php echo lang('GLOBAL_PROP') ?></th> </tr> +<?php $tabnr=0 ?> <tr> <td width="50%" class="f1" rowspan="2"><?php echo lang('GLOBAL_name') ?></a></td> - <td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td> + <td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>" tabindex="<?php echo ++$tabnr ?>"/></td> </tr> <tr> <td width="50%" class="help"><?php echo lang('GLOBAL_NAME_DESC') ?></td> </tr> <tr> <td width="50%" class="f2"><?php echo lang('GLOBAL_description') ?></a></td> - <td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td> + <td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc" tabindex="<?php echo ++$tabnr ?>"/><?php echo $desc ?></textarea></td> </tr> +<?php $typenr=0 ?> <tr> - <td class="f1"><input type="radio" name="type" value="link"<?php if ($type=='link') echo ' checked="checked"'; ?>><?php echo lang('LINK_TARGET') ?></a></td> - <td class="f1"><?php echo Html::selectBox('linkobjectid',$objects,$act_linkobjectid) ?></td> + <td class="f1"><input type="radio" name="type" value="link"<?php if ($type=='link') echo ' checked="checked"'; ?> onClick="document.forms[0].linkobjectid.focus();" /><?php echo lang('LINK_TARGET') ?></a></td> + <td class="f1"><?php echo Html::selectBox('linkobjectid',$objects,$act_linkobjectid,array('tabindex'=>++$tabnr,'onFocus'=>'document.forms[0].type['.$typenr++.'].checked=true;')) ?></td> </tr> <tr> - <td class="f1"><input type="radio" name="type" value="url"<?php if ($type=='url') echo ' checked="checked"'; ?>><?php echo lang('LINK_URL') ?></a></td> - <td class="f1"><input type="text" name="url" size="50" maxlength="255" value="<?php echo $url; ?>"></td> + <td class="f1"><input type="radio" name="type" value="url"<?php if ($type=='url') echo ' checked="checked"'; ?> onClick="document.forms[0].url.focus();" /><?php echo lang('LINK_URL') ?></a></td> + <td class="f1"><input type="text" name="url" size="50" maxlength="255" value="<?php echo $url; ?>" onFocus="document.forms[0].type[<?php echo $typenr++ ?>].checked=true;" tabindex="<?php echo ++$tabnr ?>"></td> </tr> <tr> <td width="50%" class="f2"><?php echo lang('GLOBAL_created') ?></a></td> - <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php if (isset($create_user['url'])) echo'<a href="'.$create_user['url'].'" target="cms_main">' ?><?php echo $create_user['name'] ?><?php if (isset($create__user['url'])) echo'</a>' ?></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php Html::printUser($create_user) ?><? print_r($create_user)?></td> </tr> <tr> <td width="50%" class="f2"><?php echo lang('GLOBAL_lastchange') ?></a></td> - <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php if (isset($lastchange_user['url'])) echo'<a href="'.$lastchange_user['url'].'" target="cms_main">' ?><?php echo $lastchange_user['name'] ?><?php if (isset($lastchange_user['url'])) echo'</a>' ?></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php Html::printUser($lastchange_user) ?></td> </tr> <tr> - <td class="act" colspan="2"><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>