Update of /cvsroot/fink/web/pdb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4792

Modified Files:
        search.php 
Log Message:
Hide the contents box for now.


Index: search.php
===================================================================
RCS file: /cvsroot/fink/web/pdb/search.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- search.php  11 Feb 2005 06:02:03 -0000      1.8
+++ search.php  11 Feb 2005 06:11:30 -0000      1.9
@@ -11,17 +11,24 @@
 if (ereg("[^a-zA-Z0-9_.+-]", $summary) || ereg("[^a-zA-Z0-9_.+-]", $filename)) 
{
 print "yes\n";
 ?>
+       <h1>Package Search</h1>
+       
+       <form action="search.php" method="GET">
+       <p>Search package summaries: <input type="text" name="summary" 
size="15" value="<?
+       print $summary ?>">
+       </p>
 
-<h1>Package Search</h1>
-
-<form action="search.php" method="GET">
-<p>Search package summaries: <input type="text" name="summary" size="15" 
value="<?
-print $summary ?>">
-</p>
-<p>Search package contents: <input type="text" name="filename" size="15" 
value="<?
-print $filename ?>">
-<input type="submit" value="Search">
-</p>
+<?
+if (param(c))
+{
+?>
+       <p>Search package contents: <input type="text" name="filename" 
size="15" value="<?
+       print $filename ?>">
+       <input type="submit" value="Search">
+       </p>
+<?
+}
+?>
 </form>
 
 <p>You have entered a search text that contains invalid characters.</p>
@@ -30,17 +37,26 @@
 } else {  /* $search_key valid */
 ?>
 
-<h1>Package Search</h1>
+       <h1>Package Search</h1>
+       
+       <form action="search.php" method="GET">
+       <p>Search package summaries: <input type="text" name="summary" 
size="15" value="<?
+       print $summary ?>">
+       </p>
+
+<?
+if (param(c))
+{
+?>
+       <p>Search package contents: <input type="text" name="filename" 
size="15" value="<?
+       print $filename ?>">
+       <input type=checkbox name=ignoredirs>Ignore Dirs
+       <input type="submit" value="Search">
+       </p>
+<?
+}
+?>
 
-<form action="search.php" method="GET">
-<p>Search package summaries: <input type="text" name="summary" size="15" 
value="<?
-print $summary ?>">
-</p>
-<p>Search package contents: <input type="text" name="filename" size="15" 
value="<?
-print $filename ?>">
-<input type=checkbox name=ignoredirs>Ignore Dirs
-<input type="submit" value="Search">
-</p>
 </form>
 
 <?
@@ -72,8 +88,8 @@
   $q = "SELECT name,descshort FROM package ".
        "WHERE (name LIKE '%$summary%' OR descshort LIKE '%$summary%') ".
        "AND latest=1 ORDER BY $sortorder ASC";
-}
-print $q;
+} 
+
 if($dosearch) {
 
   $rs = mysql_query($q, $dbh);



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to