back and next buttons appear on this template if there are more/previoud search results
[mir.git] / etc / open / search_results.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
3 <html>
4 <head>
5         <title>${lang("search.htmltitle")}</title>
6 </head>
7
8 <body bgcolor="White" text="Black" link="#006600" vlink="#666666" alink="Red">
9
10 <table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#cccccc">
11         <tr>
12                 <td align="center" bgcolor="#666666">
13                 <font color="White">${lang("search.title")}</font></td>
14         </tr>
15         <tr>
16                 <td bgcolor="#eeeeee"><font color="#000000">
17
18 <form method="get" action="/Mir/servlet/OpenMir">
19 <input type="hidden" name="do" value="search"/>
20 <h2>Search for the following in title,content, or description:</h2>
21 <input type="text" name="search_content" value="${data.search_content}" /><br><br>
22
23 <h2>all words or any of the words?</h2>
24 <if data.search_boolean == "and">
25 <input type="radio" name="search_boolean" value="and" checked="true">all words
26 <input type="radio" name="search_boolean" value="or">any of the words
27 <else>
28 <input type="radio" name="search_boolean" value="and">all words
29 <input type="radio" name="search_boolean" value="or" checked="true">any of the words
30 </if>
31
32 <h2>Search for articles written by:</h2>
33 <input type="text" name="search_creator" value="${data.search_creator}" /><br><br>
34
35 <h2>Search in the following topic only:</h2>
36 <select name="search_topic">
37 <if (!data.search_topic) || (data.search_topic == "") >
38 <option value="" selected>All topics
39 <else>
40 <option value="">All topics
41 </if>
42 <list data.topics as topic>
43 <if topic.value != "--" >
44 <if data.search_topic == topic.value>
45 <option selected>${topic.value}
46 <else>
47 <option>${topic.value}
48 </if>
49 </if>
50 </list>
51 </select>
52
53 <h2>only return content with images?</h2>
54 <if data.search_hasImages == "y">
55 <input type="radio" name="search_hasImages" value="y" checked="true">Yes
56 <input type="radio" name="search_hasImages" value="n">No
57 <else>
58 <input type="radio" name="search_hasImages" value="y">Yes
59 <input type="radio" name="search_hasImages" value="n" checked="true">No
60 </if>
61
62 <h2>only return content with audio?</h2>
63 <if data.search_hasAudio == "y">
64 <input type="radio" name="search_hasAudio" value="y" checked="true">Yes
65 <input type="radio" name="search_hasAudio" value="n">No
66 <else>
67 <input type="radio" name="search_hasAudio" value="y">Yes
68 <input type="radio" name="search_hasAudio" value="n" checked="true">No
69 </if>
70
71 <h2>only return content with video?</h2>
72 <if data.search_hasVideo == "y">
73 <input type="radio" name="search_hasVideo" value="y" checked="true">Yes
74 <input type="radio" name="search_hasVideo" value="n">No
75 <else>
76 <input type="radio" name="search_hasVideo" value="y">Yes
77 <input type="radio" name="search_hasVideo" value="n" checked="true">No
78 </if>
79 <h2>how would you like the results sorted?</h2>
80 <input type="radio" name="search_sort" value="score" <if data.search_sort =="score" || !data.search_sort || data.search_sort == "" >checked="true"</if>>By score
81 <input type="radio" name="search_sort" value="date_desc" <if data.search_sort =="date_desc">checked="true"</if>>Newest first
82 <input type="radio" name="search_sort" value="date_asc" <if data.search_sort =="date_asc">checked="true"</if>>Oldest first
83
84
85
86 <br>
87 <input type="submit" name="search_submit" value="Search!" />
88 Previous Lucene Query was: ${data.queryString} <br>
89 <if data.hasPrevious=="y">      
90 <input type="submit" name="search_submit" value="Back" />       
91 </if>
92 <if data.hasNext=="y">  
93 <input type="submit" name="search_submit" value="Forward" />    
94 </if>
95 </form>
96
97 <br>
98 ${lang("search.info")}
99 <br>
100 Number of hits = ${data.numberOfHits}
101 <br>
102 <list data.hits as h>
103 Title: <a href='/${lang("langcode")}${h.where}'>${h.title}</a> 
104 <if h.hasAudio=="y">
105 <img src="/img/audio_big.gif">
106 </if>
107 <if h.hasVideo == "y">
108 <img src="/img/video_big.gif">
109 </if>
110 <br >
111 Author: ${h.creator}<br >
112 Date: ${h.webdb_create_formatted}<br>
113 Description: ${h.description}<br >
114 <list h.images as image>
115 <img src="${image}">
116 </list>
117 <br>
118 </list>
119         </font>
120         </td>
121 </tr>
122
123 <tr>
124         <td valign="top" align="center" bgcolor="#666666">
125         <a href="javascript:history.go(-2)"><font color="White"><b>&gt;&gt; ${lang("postingdone.back")}</b></font></a>
126                 </td>
127         </tr>
128 </table>
129 </body>
130 </html>
131