11ceccf4e2c9cc64bbda21e21ecbf96881e695d7
[mir.git] / 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
80
81
82 <br>
83 <input type="submit" value="Search!" />
84 Previous Lucene Query was: ${data.queryString}
85 </form>
86
87 <br>
88 ${lang("search.info")}
89 <br>
90 Number of hits = ${data.numberOfHits}
91 <br>
92 <list data.hits as h>
93 Title: <a href='/${lang("langcode")}${h.where}'>${h.title}</a> 
94 <if h.hasAudio=="y">
95 <img src="/img/audio_big.gif">
96 </if>
97 <if h.hasVideo == "y">
98 <img src="/img/video_big.gif">
99 </if>
100 <br >
101 Author: ${h.creator}<br >
102 Date: ${h.webdb_create}<br>
103 Description: ${h.description}<br >
104 <list h.images as image>
105 <img src="${image}">
106 </list>
107 <br>
108 </list>
109         </font>
110         </td>
111 </tr>
112
113 <tr>
114         <td valign="top" align="center" bgcolor="#666666">
115         <a href="javascript:history.go(-2)"><font color="White"><b>&gt;&gt; ${lang("postingdone.back")}</b></font></a>
116                 </td>
117         </tr>
118 </table>
119 </body>
120 </html>
121