cvs: pearweb /include layout.php /public_html search.php

From: Date: Fri, 14 Sep 2001 20:10:52 +0000
Subject: cvs: pearweb /include layout.php /public_html search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-849@lists.php.net to get a copy of this message
mj Fri Sep 14 16:10:52 2001 EDT Added files: /pearweb/public_html search.php Modified files: /pearweb/include layout.php Log: * added a interface to search the mailing lists Index: pearweb/include/layout.php diff -u pearweb/include/layout.php:1.15 pearweb/include/layout.php:1.16 --- pearweb/include/layout.php:1.15 Mon Sep 3 08:03:04 2001 +++ pearweb/include/layout.php Fri Sep 14 16:10:52 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.php,v 1.15 2001/09/03 12:03:04 ssb Exp $ */ +/* $Id: layout.php,v 1.16 2001/09/14 20:10:52 mj Exp $ */ require_once 'site.php'; @@ -213,28 +213,17 @@ <tr bgcolor="#003300"><td colspan="2"><?php spacer(1,1);?><br /></td></tr> <tr bgcolor="#006633"> - <td align="right" valign="top" colspan="2">&nbsp; -<?php /* - <form method="POST" action="/search.php"> - <font color="#ffffff"> - <small>search for</small> -<input class="small" type="text" name="pattern" value="<? echo htmlspecialchars($GLOBALS['prevsearch']) ?>" size="30" /> -<small>in the</small> -<select name="show" class="small"> -<option value="packages" selected>packages</option> -<option value="nosource">whole site</option> -<option value="manual">online documentation</option> -<option value="bugdb">bug database</option> -<option value="maillist">general mailing list</option> -<option value="devlist">developer mailing list</option> -<option value="source">website source code </option> -</select> -<? echo make_submit('small_submit_white.gif', 'search', 'bottom'); - ?>&nbsp;<br /> - </font></form> -*/ ?> - </td> - </tr> + <td align="right" valign="top" colspan="2"> + <form method="POST" action="/search.php"> + <font color="#ffffff"><small>search for</small> + <input class="small" type="text" name="search_string" value="" size="20" /> + <small>in the</small> + <select name="search_in" class="small"> + <option value="pear-dev">Developer mailing list</option> + <option value="pear-general">General mailing list</option> + <option value="pear-cvs">CVS commits mailing list</option> + </select> + <?php echo make_submit('small_submit_white.gif', 'search', 'bottom'); ?></font>&nbsp;<br /></form></td></tr> <tr bgcolor="#003300"><td colspan="2"><?php spacer(1,1);?><br /></td></tr> </table> Index: pearweb/public_html/search.php +++ pearweb/public_html/search.php <?php /** * Search interface for the PEAR website * * $Id: search.php,v 1.1 2001/09/14 20:10:52 mj Exp $ */ switch ($HTTP_POST_VARS['search_in']) { case "pear-dev" : case "pear-cvs" : case "pear-general" : /** * We forward the query to the mailing list archive * at marc.thaimsgroup.com */ $location = "http://marc.theaimsgroup.com/"; $query = "l=".$HTTP_POST_VARS['search_in']."&w=2&r=1&q=b&s=".urlencode($HTTP_POST_VARS['search_string']); header("Location: ".$location."?".$query); break; default : response_header("Search"); response_footer(); break; } ?>

« previous php.pear.cvs (#849) next »