cvs: phpweb / searchbar.php
| From: | Gabor Hojtsy | Date: | Sun, 27 Oct 2002 13:20:01 +0000 |
| Subject: | cvs: phpweb / searchbar.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-13241@lists.php.net to get a copy of this message | ||
goba Sun Oct 27 08:20:01 2002 EDT
Modified files:
/phpweb searchbar.php
Log:
Let the pattern input box get focus by default
Index: phpweb/searchbar.php
diff -u phpweb/searchbar.php:1.1 phpweb/searchbar.php:1.2
--- phpweb/searchbar.php:1.1 Sun Oct 27 08:14:12 2002
+++ phpweb/searchbar.php Sun Oct 27 08:20:01 2002
@@ -21,7 +21,7 @@
</head>
<body topmargin="0" leftmargin="0" marginheight="0"
marginwidth="0"
bgcolor="#ffffff" text="#000000" link="#000099"
alink="#0000ff"
- vlink="#000099">
+ vlink="#000099" onload="document.sform.pattern.focus();">
<table border="0" cellspacing="0" cellpadding="0"
width="100%">
<tr bgcolor="#9999cc">
<td><a href="/" target="_main"><img
src="logos/php-logo.gif" width="69" height="36" border="0"
alt="PHP" hspace="3" vspace="3" /></a></td>
@@ -31,7 +31,7 @@
<tr>
<td colspan="2">
<div class="indented">
- <form method="post" action="/search.php" target="_main">
+ <form method="post" action="/search.php" target="_main"
name="sform">
<input type="hidden" name="lang" value="<?php if(empty($LANG))
echo htmlspecialchars(default_language()); else echo htmlspecialchars($LANG); ?>">
Search for<br />
<input type="text" name="pattern" value="" size="21"
/>