Show forum search box in the forum index (and update it in Q&A index)

svn path=/trunk/boinc/; revision=12150
This commit is contained in:
Rytis Slatkevičius 2007-02-24 16:05:41 +00:00
parent 7148012423
commit 04022dd3e9
2 changed files with 21 additions and 6 deletions

View File

@ -9,15 +9,20 @@ db_init();
page_head("Questions and answers");
echo "
echo "<p>
Talk live via Skype with a volunteer, in any of several languages.
Go to
<a href=http://boinc.berkeley.edu/help.php>BOINC Online Help</a>.
<p>
Select a topic or do a
<a href=forum_search.php>keyword search</a>
to find what you're looking for.
<a href=\"http://boinc.berkeley.edu/help.php\">BOINC Online Help</a>.</p>
<p>
<form action=\"forum_search_action.php\" method=\"POST\">
<input type=\"hidden\" name=\"search_max_time\" value=\"30\">
<input type=\"hidden\" name=\"search_forum\" value=\"-1\">
<input type=\"hidden\" name=\"search_sort\" value=\"5\">
<input type=\"text\" name=\"search_keywords\">
<input type=\"submit\" value=\"Start forum search\">
<span class=\"smalltext\">or do <a href=\"forum_search.php\">advanced search</a></span>
</form>
</p>
";
start_forum_table(array("Topic", "# Questions", "Last post"));

View File

@ -31,7 +31,17 @@ echo "
If you have a question or problem, please use the
<a href=forum_help_desk.php>Questions & answers</a>
area instead of the Message boards.
</p>
<p>
<form action=\"forum_search_action.php\" method=\"POST\">
<input type=\"hidden\" name=\"search_max_time\" value=\"30\">
<input type=\"hidden\" name=\"search_forum\" value=\"-1\">
<input type=\"hidden\" name=\"search_sort\" value=\"5\">
<input type=\"text\" name=\"search_keywords\">
<input type=\"submit\" value=\"Start forum search\">
<span class=\"smalltext\">or do <a href=\"forum_search.php\">advanced search</a></span>
</form>
</p>
";
show_forum_title(NULL, NULL, false);