/[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 117 - (show annotations)
Wed Nov 23 21:52:25 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1906 byte(s)
 r9075@llin:  dpavlin | 2005-11-23 22:26:53 +0100
 - added filter to search with search words in ISTRINC on selected field.
 - added new form field to search over all results (with magic name "all"

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 </td>
31
32 </tr><tr>
33
34 <td>
35 Naslov:
36 </td><td>
37 <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
38 <span id="naslov_input_loading" style="display: none;">
39 <img src="/img/indicator.gif" />
40 </span>
41 </div>
42
43 <div class="auto_complete" id="naslov_input_auto_complete"></div>
44 [% c.prototype.auto_complete_field( 'naslov_input', {
45 url => url _ 'TitleProper',
46 indicator => 'naslov_input_loading'
47 } ) %]
48 </td>
49
50 </tr><tr>
51
52 <td>
53 Autor:
54 </td><td>
55 <input autocomplete="off" id="autor_input" name="PersonalName" type="text" value="" size="60"/>
56 <span id="autor_input_loading" style="display: none;">
57 <img src="/img/indicator.gif" />
58 </span>
59 </div>
60 <div class="auto_complete" id="autor_input_auto_complete"></div>
61 [% c.prototype.auto_complete_field( 'autor_input', {
62 url => url _ 'PersonalName',
63 indicator => 'autor_input_loading'
64 } ) %]
65 </td>
66
67 </tr>
68 </table>
69
70 <input type="submit" name="_submit" value="Search" />
71
72 <span id="searching" style="display: none;">
73 Search in progress...
74 <img src="/img/indicator.gif" />
75 </span>
76
77 <input type="reset" name="_reset" value="Clear" />
78
79 </form>
80
81 <div id="results">
82 <span style="color: #808080;">no results yet</span>
83 </div>
84
85 [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26