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