/[webpac2]/Webpacus/root/search.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /Webpacus/root/search.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 133 - (show annotations)
Thu Nov 24 16:30:11 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1995 byte(s)
 r9103@llin:  dpavlin | 2005-11-24 15:00:27 +0100
 added ability to specify word operator by inserting field which is called
 same as search fields but begins with underscore (_). You can put Hyper
 Estraier operator in there (e.g. AND, OR) to force search engine to
 insert those characters between words entered in that field

1 [% INCLUDE header.tt %]
2
3 [% c.prototype.auto_complete_stylesheet %]
4 [% url = base _ 'search/suggest/' %]
5
6 [% c.prototype.form_remote_tag(
7 url => base _ 'results',
8 update => 'results',
9 loading => 'show_searching();',
10 loaded => 'hide_searching();',
11 ) %]
12
13 <table>
14
15 <tr>
16 <td>
17 Sve:
18 </td><td>
19 <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
20 <span id="sve_input_loading" style="display: none;">
21 <img src="/img/indicator.gif" />
22 </span>
23 </div>
24
25 <div class="auto_complete" id="sve_input_auto_complete"></div>
26 [% c.prototype.auto_complete_field( 'sve_input', {
27 url => url _ 'TitleProper',
28 indicator => 'sve_input_loading'
29 } ) %]
30 <!-- operator for individual words -->
31 <input type="hidden" name="_all" value="AND" />
32 </td>
33
34 </tr><tr>
35
36 <td>
37 Naslov:
38 </td><td>
39 <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
40 <span id="naslov_input_loading" style="display: none;">
41 <img src="/img/indicator.gif" />
42 </span>
43 </div>
44
45 <div class="auto_complete" id="naslov_input_auto_complete"></div>
46 [% c.prototype.auto_complete_field( 'naslov_input', {
47 url => url _ 'TitleProper',
48 indicator => 'naslov_input_loading'
49 } ) %]
50 </td>
51
52 </tr><tr>
53
54 <td>
55 Autor:
56 </td><td>
57 <input autocomplete="off" id="autor_input" name="PersonalName" type="text" value="" size="60"/>
58 <span id="autor_input_loading" style="display: none;">
59 <img src="/img/indicator.gif" />
60 </span>
61 </div>
62 <div class="auto_complete" id="autor_input_auto_complete"></div>
63 [% c.prototype.auto_complete_field( 'autor_input', {
64 url => url _ 'PersonalName',
65 indicator => 'autor_input_loading'
66 } ) %]
67 </td>
68
69 </tr>
70 </table>
71
72 <input type="submit" name="_submit" value="Search" />
73
74 <span id="searching" style="display: none;">
75 Search in progress...
76 <img src="/img/indicator.gif" />
77 </span>
78
79 <input type="reset" name="_reset" value="Clear" />
80
81 </form>
82
83 <div id="results">
84 <span style="color: #808080;">no results yet</span>
85 </div>
86
87 [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26