commit 62f898e38e9e46c8e2a3a44b290593236523c435
parent 78e624328e5ef48406a8b05c97c76dd9c5259ba0
Author: dankert <devnull@localhost>
Date: Mon, 20 Dec 2004 21:26:53 +0100
Korrektur form-Tag, tabindex gesetzt
Diffstat:
2 files changed, 18 insertions(+), 28 deletions(-)
diff --git a/themes/default/pages/html/search/content.tpl.php b/themes/default/pages/html/search/content.tpl.php
@@ -4,25 +4,22 @@
<center>
-<form action="<?php echo $self ?>" method="post" target="_self">
-
-<input type="hidden" name="action" value="search">
-<input type="hidden" name="subaction" value="search">
-<input type="hidden" name="searchtype" value="content">
+<?php echo Html::form('search','search',0,array('searchtype'=>'content')) ?>
<table class="main" width="90%" cellspacing="0" cellpadding="4">
<tr>
<th colspan="2"><?php echo lang('SEARCH_CONTENT') ?></th>
</tr>
+<?php $nr=0 ?>
<tr>
<td width="50%" class="f1"><input type="radio" name="type" value="value" onClick="document.forms[0].text.focus();"><?php echo lang('GLOBAL_value') ?></a></td>
-<td width="50%" class="f1"><input type="text" name="text" size="50" value="" onFocus="document.forms[0].type[0].checked=true;"></td>
+<td width="50%" class="f1"><input type="text" name="text" size="50" value="" onFocus="document.forms[0].type[0].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
-<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_user"><?php echo lang('GLOBAL_lastchange') ?></a></td>
-<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users) ?></td>
+<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_userid" onClick="document.forms[0].lastchange_userid.focus();"><?php echo lang('GLOBAL_lastchange') ?></a></td>
+<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users,$act_userid,array('tabindex'=>++$nr,'onFocus'=>'document.forms[0].type[1].checked=true;')) ?></td>
</tr>
<tr>
<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SEARCH') ?>"></td>
@@ -34,8 +31,6 @@
</center>
-<script name="JavaScript" type="text/javascript"><!--
-document.forms[0].text.focus();
-//--></script>
+<?php Html::focusField('text') ?>
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file
diff --git a/themes/default/pages/html/search/prop.tpl.php b/themes/default/pages/html/search/prop.tpl.php
@@ -4,11 +4,7 @@
<center>
-<form action="<?php echo $self ?>" method="post" target="_self">
-
-<input type="hidden" name="action" value="search">
-<input type="hidden" name="subaction" value="search">
-<input type="hidden" name="searchtype" value="prop" >
+<?php echo Html::form('search','search',0,array('searchtype'=>'prop')) ?>
<table class="main" width="90%" cellspacing="0" cellpadding="4">
@@ -16,33 +12,34 @@
<th colspan="2"><?php echo lang('SEARCH_PROP') ?></th>
</tr>
+<?php $nr=0 ?>
<tr>
<td width="50%" class="f1"><input type="radio" name="type" value="id" onClick="document.forms[0].id.focus();"><?php echo lang('GLOBAL_id') ?></a></td>
-<td width="50%" class="f1"><input type="text" name="id" size="10" value="" onFocus="document.forms[0].type[0].checked=true;"></td>
+<td width="50%" class="f1"><input type="text" name="id" size="10" value="" onFocus="document.forms[0].type[0].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
<td width="50%" class="f1"><input type="radio" name="type" value="name" onClick="document.forms[0].name.focus();"><?php echo lang('GLOBAL_name') ?></a></td>
-<td width="50%" class="f1"><input type="text" name="name" size="50" value="" onFocus="document.forms[0].type[1].checked=true;"></td>
+<td width="50%" class="f1"><input type="text" name="name" size="50" value="" onFocus="document.forms[0].type[1].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
<td width="50%" class="f1"><input type="radio" name="type" value="filename" onClick="document.forms[0].filename.focus();"><?php echo lang('GLOBAL_filename') ?></a></td>
-<td width="50%" class="f1"><input type="text" name="filename" size="50" value="" onFocus="document.forms[0].type[2].checked=true;"></td>
+<td width="50%" class="f1"><input type="text" name="filename" size="50" value="" onFocus="document.forms[0].type[2].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
<td width="50%" class="f2"><input type="radio" name="type" value="extension" onClick="document.forms[0].extension.focus();"><?php echo lang('FILE_extension') ?></a></td>
-<td width="50%" class="f2"><input type="text" name="extension" size="50" value="" onFocus="document.forms[0].type[3].checked=true;"></td>
+<td width="50%" class="f2"><input type="text" name="extension" size="50" value="" onFocus="document.forms[0].type[3].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
<td width="50%" class="f2"><input type="radio" name="type" value="desc" onClick="document.forms[0].desc.focus();"><?php echo lang('GLOBAL_description') ?></a></td>
-<td width="50%" class="f2"><input type="text" name="desc" size="50" value="" onFocus="document.forms[0].type[4].checked=true;"></td>
+<td width="50%" class="f2"><input type="text" name="desc" size="50" value="" onFocus="document.forms[0].type[4].checked=true;" tabindex="<?php echo ++$nr ?>"></td>
</tr>
<tr>
-<td width="50%" class="f2"><input type="radio" name="type" value="create_user" onClick="document.forms[0].create_user.focus();"><?php echo lang('GLOBAL_created') ?></a></td>
-<td width="50%" class="f2"><?php echo Html::selectBox('create_userid',$users) ?></td>
+<td width="50%" class="f2"><input type="radio" name="type" value="create_user" onClick="document.forms[0].create_userid.focus();"><?php echo lang('GLOBAL_created') ?></a></td>
+<td width="50%" class="f2"><?php echo Html::selectBox('create_userid',$users,$act_userid,array('tabindex'=>++$nr,'onFocus'=>'document.forms[0].type[5].checked=true;')) ?></td>
</tr>
<tr>
-<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_user" onClick="document.forms[0].lastchange_user.focus();"><?php echo lang('GLOBAL_lastchange') ?></a></td>
-<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users) ?></td>
+<td width="50%" class="f2"><input type="radio" name="type" value="lastchange_user" onClick="document.forms[0].lastchange_userid.focus();"><?php echo lang('GLOBAL_lastchange') ?></a></td>
+<td width="50%" class="f2"><?php echo Html::selectBox('lastchange_userid',$users,$act_userid,array('tabindex'=>++$nr,'onFocus'=>'document.forms[0].type[6].checked=true;')) ?></td>
</tr>
<tr>
<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SEARCH') ?>"></td>
@@ -54,8 +51,6 @@
</center>
-<script name="JavaScript" type="text/javascript"><!--
-document.forms[0].name.focus();
-//--></script>
+<?php Html::focusField('name') ?>
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file