]> ruin.nu Git - ndwebbie.git/blob - templates/forum/search.tmpl
Login/Logout and session support with roles + convert to html 4.01.
[ndwebbie.git] / templates / forum / search.tmpl
1 <form action="/<TMPL_VAR NAME=PAGE>" method="post">
2
3 <fieldset class="forum-post"> <legend>Topic</legend>
4         Find posts with these words in the thread's topic<br/>
5         <input style="width:98%" type="text" name="topic" value=""/><br/>
6         Require all words: <input type="checkbox" name="alltopic" value="1"/><br/>
7 </fieldset>
8
9 <fieldset class="forum-post"> <legend>Body</legend>
10         Find posts with these words in the body<br/>
11         <input style="width:98%" type="text" name="body" value=""/><br/>
12         Require all words: <input type="checkbox" name="allbody" value="1"/><br/>
13 </fieldset>
14
15 <fieldset class="forum-post"> <legend>Usernames</legend>
16         Find posts written by one these users<br/>
17         <input style="width:98%" type="text" name="author" value=""/><br/>
18 </fieldset>
19
20 <fieldset class="forum-post"> <legend>Custom search</legend>
21         Use | (OR) or &amp; (AND) to separate words. Word:A searches for Word in
22         topic and Word:B searches for Word as author. 'Two words' to search for a
23         longer string. Word:D limits the search to just the message body.
24         <p><input style="width:98%" type="text" name="search" value=""/></p>
25 </fieldset>
26 <input type="submit" name="cmd" value="Search"/>
27 </form>
28
29 <TMPL_IF SearchResult>
30 <table>
31 <tr>
32         <th>Thread</th>
33         <th>Author</th>
34         <th>Message</th>
35         <th>Rank</th>
36 </tr>
37 <TMPL_LOOP SearchResult>
38         <tr align="left" class="<TMPL_IF __odd__>odd<TMPL_ELSE>even</TMPL_IF>">
39                 <td><a href="/forum?t=<TMPL_VAR NAME=FTID>">&nbsp;<TMPL_VAR ESCAPE=NONE NAME=Subject>&nbsp;</a></td>
40                 <td><TMPL_VAR NAME=Username></td>
41                 <td align="center"><TMPL_VAR ESCAPE=NONE NAME=Headline></td>
42                 <td><TMPL_VAR NAME=Rank></td>
43         </tr>
44 </TMPL_LOOP>
45 </table>
46 </TMPL_IF>