fixed path problem (missing "/")
[phpfspot.git] / themes / default / templates / search.tpl
1 <span class="tags">
2  <img src="{$web_path}/resources/loupe.png" alt="loupe" />Search:
3 </span>
4 <form action="" onsubmit="startSearch(); return false;">
5 <div class="searchfor">
6 <table>
7  <tr>
8   <td>Tag:</td>
9   <td>
10    { if isset($use_autocomplete) }
11    <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&search=[S]&length=10" />
12    { literal }
13    <script type="text/javascript">
14       var options = {
15          script: "rpc.php?action=getxmltaglist&",
16          varname: "search",
17          json: false,
18          maxresults: 15
19       };
20       var as = new bsn.AutoSuggest('searchfor_tag', options);
21    </script>
22    { /literal }
23    { else }
24    <input type="text" name="searchfor_tag" value="{ if isset($searchfor_tag) }{$searchfor_tag}{ /if }" size="15" />
25    { /if }
26   </td>
27   <td>
28    <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
29   </td>
30  </tr>
31  <tr>
32   <td>Name:</td>
33   <td>
34    <input type="text" name="searchfor_name" value="{ if isset($searchfor_name) }{$searchfor_name}{ /if }" size="15" />
35   </td>
36   <td>
37    <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
38   </td>
39  </tr>
40  <tr>
41   <td>Date:</td>
42   <td class="nowarp">
43    { if ! isset($date_search_enabled) }
44     <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();" />
45    { else }
46     <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();" checked="checked" />
47    { /if }
48    consider date-range
49   </td>
50   <td>&nbsp;</td>
51  </tr>
52  <tr>
53   <td>&nbsp;</td>
54   <td>{$search_from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="frompic" alt="from" /></a></td>
55  </tr>
56  <tr>
57   <td>&nbsp;</td>
58   <td>{$search_to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="topic" alt="to" /></a></td>
59   <td>
60    <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
61   </td>
62  </tr>
63  { if isset($has_rating) }
64  <tr>
65   <td>Rating:</td>
66   <td class="nowarp">
67    { if ! isset($rate_search_enabled) }
68     <input type="checkbox" class="checkbox" name="consider_rate" value="Y" />
69    { else }
70     <input type="checkbox" class="checkbox" name="consider_rate" value="Y" checked="checked" />
71    { /if }
72    consider rate-range
73   </td>
74   <td>&nbsp;</td>
75  </tr>
76  <tr>
77   <td>&nbsp;</td>
78   <td>
79    { $rate_search }
80   </td>
81   <td>
82    <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
83   </td>
84  </tr>
85  { /if }
86  <tr>
87   <td>
88    Sort-Order:&nbsp;
89   </td>
90   <td>
91    <select name="sort_order" onchange="update_sort_order(this);">
92     { sort_select_list }
93    </select>
94   </td>
95   <td>
96    &nbsp;
97   </td>
98  </tr>
99 </table>
100 </div>
101 </form>
102 <div id='calendar'></div>