summaryrefslogtreecommitdiffstats
path: root/themes/default/templates/search.tpl
blob: c1d152c7e4c8a39070020796e9f90a8190c5e1ff (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
<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 $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="{$searchfor_tag}" 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="{$searchfor_name}" 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 ! $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>
 <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>