cvs: phpweb / manual-lookup.php quickref.php
| From: | Colin Viebrock | Date: | Thu, 08 Mar 2001 22:25:28 +0000 |
| Subject: | cvs: phpweb / manual-lookup.php quickref.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4297@lists.php.net to get a copy of this message | ||
cmv Thu Mar 8 14:25:28 2001 EDT
Modified files:
/phpweb manual-lookup.php quickref.php
Log:
If you do a "quickref" search, and it fails, show the entire quickref page
instead of searching the entire site.
Index: phpweb/manual-lookup.php
diff -u phpweb/manual-lookup.php:1.11 phpweb/manual-lookup.php:1.12
--- phpweb/manual-lookup.php:1.11 Thu Mar 8 12:16:04 2001
+++ phpweb/manual-lookup.php Thu Mar 8 14:25:28 2001
@@ -13,6 +13,8 @@
header("Location: $file");
exit;
}
-
-header("Location:
search.php?pattern=".urlencode($function)."&show=nosource");
+
+$notfound = $function;
+include 'quickref.php';
+
exit;
Index: phpweb/quickref.php
diff -u phpweb/quickref.php:1.4 phpweb/quickref.php:1.5
--- phpweb/quickref.php:1.4 Wed Mar 7 16:17:34 2001
+++ phpweb/quickref.php Thu Mar 8 14:25:28 2001
@@ -19,9 +19,9 @@
$i=0;
$c=count($array);
$limit=intval($c/$NUMACROSS)+1;
- echo "<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0>\n";
- echo "<TR VALIGN=top>\n";
- echo "<TD><FONT FACE=\"" . $FONTFACE . "\" SIZE=-1>\n";
+ echo "<TABLE BORDER=\"0\" CELLPADDING=\"5\"
CELLSPACING=\"0\">\n";
+ echo "<TR VALIGN=\"top\">\n";
+ echo "<TD>\n";
while (list($file,$name)=each($array)):
if ($i%$limit==0):
echo "</TD><TD>\n";
@@ -36,8 +36,22 @@
commonHeader("PHP Manual Quick Reference");
?>
-Here is a list of all the PHP functions. Click on any one of them to jump to that page in the
manual.
+
+<h1>PHP Function List</h1>
+
+<? if ($notfound) { ?>
+
<P>
+Sorry, but the function <B><? echo $notfound; ?></B> is not in the online manual.
+Perhaps you misspelled it, or it is a relatively new function that hasn't made it
+into the online documentation yet.
+</P>
+
+<? } ?>
+
+<P>
+Here is a list of all the PHP functions. Click on any one of them to jump to that page in the
manual.
+</P>
<?
makeTable($functions);