forked from science-ation/science-ation
Auto focus on the input box on the input received forms page, so you dont have to click on the box every time before you start typing in the registration number.
This commit is contained in:
parent
e2eff96db9
commit
174490b752
@ -242,12 +242,17 @@ echo mysql_Error();
|
||||
if($showformatbottom)
|
||||
{
|
||||
echo "<h3>".i18n("Input Received Form")."</h3>";
|
||||
echo "<form method=\"post\" action=\"registration_receivedforms.php\">";
|
||||
echo "<form id=\"inputform\" method=\"post\" action=\"registration_receivedforms.php\">";
|
||||
echo "<input type=\"hidden\" name=\"action\" value=\"received\" />";
|
||||
echo i18n("Enter the registration number from the form: ")."<br />";
|
||||
echo "<input type=\"text\" size=\"15\" name=\"registration_number\" />";
|
||||
echo "<input id=\"registration_number\" type=\"text\" size=\"15\" name=\"registration_number\" />";
|
||||
echo "<input type=\"submit\" value=\"".i18n("Lookup Registration Number")."\" />";
|
||||
echo "</form>";
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
document.forms.inputform.registration_number.focus();
|
||||
</script>
|
||||
<?
|
||||
}
|
||||
|
||||
send_footer();
|
||||
|
Loading…
Reference in New Issue
Block a user