Replace the input text box for max. search results with a select

box.

This change reduce the numbers of input fields from 2 to 1. Many
browers accept a simple 'return' in the search field (instead
pressing submit button) for starting searching if there is only one
input text box.
This commit is contained in:
Wolfram Schneider 1998-04-27 10:07:15 +00:00
parent fdeef50b17
commit 04cae3637f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=2744
2 changed files with 46 additions and 12 deletions

View file

@ -1,9 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [
<!ENTITY date "$Date: 1998-04-07 13:59:01 $"> <!ENTITY date "$Date: 1998-04-27 10:07:15 $">
<!ENTITY title "Search"> <!ENTITY title "Search">
<!ENTITY % includes SYSTEM "includes.sgml"> %includes; <!ENTITY % includes SYSTEM "includes.sgml"> %includes;
]> ]>
<!-- $Id: search.sgml,v 1.29 1998-04-07 13:59:01 wosch Exp $ --> <!-- $Id: search.sgml,v 1.30 1998-04-27 10:07:15 wosch Exp $ -->
<html> <html>
&header; &header;
@ -35,8 +35,17 @@ and <a href="&base/handbook/handbook.html">Handbook</a>)</h2>
href="searchhints.html">Look here for more hints</a>.</em></p> href="searchhints.html">Look here for more hints</a>.</em></p>
<p><input type="text" name="words" size="50"><br> <p><input type="text" name="words" size="50"><br>
Limit the number of results to <input type="text" name="max" Limit the number of results to <select name="max"
value="25" size="5"> <input type="submit"> <input type="reset"></p> <OPTION VALUE="5">5</OPTION>
<OPTION VALUE="10">10</OPTION>
<OPTION VALUE="25" SELECTED>25</OPTION>
<OPTION VALUE="50">50</OPTION>
<OPTION VALUE="100">100</OPTION>
<OPTION VALUE="250">250</OPTION>
<OPTION VALUE="500">500</OPTION>
<OPTION VALUE="1000">1000</OPTION>
</SELECT>
<input type="submit"> <input type="reset"></p>
<input type="hidden" name="source" value="www"> <input type="hidden" name="source" value="www">
</form> </form>
@ -56,8 +65,16 @@ value="25" size="5"> <input type="submit"> <input type="reset"></p>
for more hints</a>.</em></p> for more hints</a>.</em></p>
<p><input type="text" name="words" size="50"><br> <p><input type="text" name="words" size="50"><br>
Limit the number of results to <input type="text" name="max" Limit the number of results to <select name="max"
value="25" size="5"> <OPTION VALUE="5">5</OPTION>
<OPTION VALUE="10">10</OPTION>
<OPTION VALUE="25" SELECTED>25</OPTION>
<OPTION VALUE="50">50</OPTION>
<OPTION VALUE="100">100</OPTION>
<OPTION VALUE="250">250</OPTION>
<OPTION VALUE="500">500</OPTION>
<OPTION VALUE="1000">1000</OPTION>
</SELECT>
sort by sort by
<SELECT NAME="sort"> <SELECT NAME="sort">

View file

@ -1,9 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [
<!ENTITY date "$Date: 1998-04-07 13:59:01 $"> <!ENTITY date "$Date: 1998-04-27 10:07:15 $">
<!ENTITY title "Search"> <!ENTITY title "Search">
<!ENTITY % includes SYSTEM "includes.sgml"> %includes; <!ENTITY % includes SYSTEM "includes.sgml"> %includes;
]> ]>
<!-- $Id: search.sgml,v 1.29 1998-04-07 13:59:01 wosch Exp $ --> <!-- $Id: search.sgml,v 1.30 1998-04-27 10:07:15 wosch Exp $ -->
<html> <html>
&header; &header;
@ -35,8 +35,17 @@ and <a href="&base/handbook/handbook.html">Handbook</a>)</h2>
href="searchhints.html">Look here for more hints</a>.</em></p> href="searchhints.html">Look here for more hints</a>.</em></p>
<p><input type="text" name="words" size="50"><br> <p><input type="text" name="words" size="50"><br>
Limit the number of results to <input type="text" name="max" Limit the number of results to <select name="max"
value="25" size="5"> <input type="submit"> <input type="reset"></p> <OPTION VALUE="5">5</OPTION>
<OPTION VALUE="10">10</OPTION>
<OPTION VALUE="25" SELECTED>25</OPTION>
<OPTION VALUE="50">50</OPTION>
<OPTION VALUE="100">100</OPTION>
<OPTION VALUE="250">250</OPTION>
<OPTION VALUE="500">500</OPTION>
<OPTION VALUE="1000">1000</OPTION>
</SELECT>
<input type="submit"> <input type="reset"></p>
<input type="hidden" name="source" value="www"> <input type="hidden" name="source" value="www">
</form> </form>
@ -56,8 +65,16 @@ value="25" size="5"> <input type="submit"> <input type="reset"></p>
for more hints</a>.</em></p> for more hints</a>.</em></p>
<p><input type="text" name="words" size="50"><br> <p><input type="text" name="words" size="50"><br>
Limit the number of results to <input type="text" name="max" Limit the number of results to <select name="max"
value="25" size="5"> <OPTION VALUE="5">5</OPTION>
<OPTION VALUE="10">10</OPTION>
<OPTION VALUE="25" SELECTED>25</OPTION>
<OPTION VALUE="50">50</OPTION>
<OPTION VALUE="100">100</OPTION>
<OPTION VALUE="250">250</OPTION>
<OPTION VALUE="500">500</OPTION>
<OPTION VALUE="1000">1000</OPTION>
</SELECT>
sort by sort by
<SELECT NAME="sort"> <SELECT NAME="sort">