cvs: phpweb / search.php /include layout.inc
| From: | Colin Viebrock | Date: | Thu, 08 Mar 2001 21:53:47 +0000 |
| Subject: | cvs: phpweb / search.php /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4285@lists.php.net to get a copy of this message | ||
cmv Thu Mar 8 13:53:47 2001 EDT
Modified files:
/phpweb search.php
/phpweb/include layout.inc
Log:
Redo the search functionality a bit, adding a "quickref" option to the drop
down list, and putting it all back in the header.
I think this is a good solution ... since the default search feature is now
the quickref (just like Jim made it), but it makes it slightly more obvious.
Plus, now *all* the search features are front and center. Yes, it adds a
bit more data to the header bar, but I think it's worth it.
Index: phpweb/search.php
diff -u phpweb/search.php:1.6 phpweb/search.php:1.7
--- phpweb/search.php:1.6 Wed Mar 7 16:17:34 2001
+++ phpweb/search.php Thu Mar 8 13:53:47 2001
@@ -14,6 +14,10 @@
$HAVE_SEARCH=$MIRRORS[$MYSITE][5];
if (isset($pattern) && ($pattern)) {
+ if ($show=="quickref") {
+ header("Location: manual-lookup.php?pattern=".urlencode($pattern));
+ exit;
+ }
$location = "http://www.progressive-comp.com/Lists/";
if ($show=="maillist") {
$query = "l=php3-general&r=1&w=2&q=b&s=".urlencode($pattern);
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.6 phpweb/include/layout.inc:1.7
--- phpweb/include/layout.inc:1.6 Thu Mar 8 12:51:28 2001
+++ phpweb/include/layout.inc Thu Mar 8 13:53:47 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.6 2001/03/08 20:51:28 goba Exp $ */
+/* $Id: layout.inc,v 1.7 2001/03/08 21:53:47 cmv Exp $ */
# spacer()
@@ -211,8 +211,7 @@
</tr>
<tr bgcolor="#9999cc">
- <form method="POST" action="/manual-lookup.php">
- <td align="right" valign="bottom">
+ <td align="right" valign="bottom">
<?php
print_link('/downloads.php','downloads',false,'class="small"');
echo delim();
@@ -223,12 +222,32 @@
print_link('/bugs.php','reporting
bugs',false,'class="small"');
echo delim();
print_link('/links.php','links',false,'class="small"');
- echo delim();
- print_link('/search.php','search:',false,'class="small"');
- echo ' <input class="small" type="text" name="pattern"
size=10> ';
- echo make_submit('small_submit.gif', 'search', 'bottom');
+ ?> <br>
+ </td>
+ </tr>
+
+ <tr bgcolor="#333366"><td colspan="2"><?php
spacer(1,1);?><br></td></tr>
+
+ <tr bgcolor="#666699">
+ <form method="POST" action="/search.php">
+ <td align="right" valign="top" colspan="2"><FONT
COLOR="#ffffff">
+ <small>
+search for <INPUT CLASS="small" TYPE="text" NAME="pattern"
VALUE="<? echo htmlspecialchars($prevsearch) ?>" SIZE="30">
+in the <SELECT NAME="show" CLASS="small">
+<OPTION VALUE="quickref" SELECTED>PHP function list
+<OPTION VALUE="nosource">whole site
+<OPTION VALUE="manual">online documentation
+<OPTION VALUE="maillist">PHP general mailing list
+<OPTION VALUE="devlist">PHP developers' list
+<OPTION VALUE="phpdoc">PHP documentation list
+<OPTION VALUE="phplib">PHPLIB mailing list
+<OPTION VALUE="phplib-dev">PHPLIB developers' list
+<OPTION VALUE="source">website source code
+</SELECT>
+<? echo make_submit('small_submit.gif', 'search', 'bottom');
?> <br>
- </td>
+ </small>
+ </font></td>
</form>
</tr>