]> ruin.nu Git - ndwebbie.git/blob - templates/forum/search.tmpl
Basic forum search
[ndwebbie.git] / templates / forum / search.tmpl
1 <form action="/<TMPL_VAR NAME=PAGE>" method="post"><fieldset class="forum-post"> <legend>Search</legend>
2         Use | (OR) or &amp; (AND) to separate words. Word:A searches for Word in
3         topic and Word:B searches for Word as author. 'Two words' to search for a
4         longer string. Word:D limits the search to just the message body.
5         <p>Search query: <input type="text" name="search" value=""/></p>
6         <input type="submit" name="cmd" value="Search"/>
7 </fieldset></form>
8
9 <TMPL_IF SearchResult>
10 <table>
11 <tr>
12         <th>Thread</th>
13         <th>Author</th>
14         <th>Message</th>
15         <th>Rank</th>
16 </tr>
17 <TMPL_LOOP SearchResult>
18         <tr align="left" class="<TMPL_IF __odd__>odd<TMPL_ELSE>even</TMPL_IF>">
19                 <td><a href="/forum?t=<TMPL_VAR NAME=FTID>">&nbsp;<TMPL_VAR ESCAPE=NONE NAME=Subject>&nbsp;</a></td>
20                 <td><TMPL_VAR NAME=Username></td>
21                 <td align="center"><TMPL_VAR ESCAPE=NONE NAME=Headline></td>
22                 <td><TMPL_VAR NAME=Rank></td>
23         </tr>
24 </TMPL_LOOP>
25 </table>
26 </TMPL_IF>