/[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 138 - (show annotations)
Thu Nov 24 22:29:44 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 2185 byte(s)
 r9112@llin:  dpavlin | 2005-11-24 23:30:01 +0100
 changing of templates again work. with a little more testing this will be
 0.02 version :-)

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 html_options => {
12 id => 'results_form',
13 name => 'results_form',
14 }
15 ) %]
16
17 <table>
18
19 <tr>
20 <td>
21 Sve:
22 </td><td>
23 <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
24 <span id="sve_input_loading" style="display: none;">
25 <img src="/img/indicator.gif" />
26 </span>
27 </div>
28
29 <div class="auto_complete" id="sve_input_auto_complete"></div>
30 [% c.prototype.auto_complete_field( 'sve_input', {
31 url => url _ 'TitleProper',
32 indicator => 'sve_input_loading'
33 } ) %]
34 <!-- operator for individual words -->
35 <input type="hidden" name="_all" value="AND" />
36 </td>
37
38 </tr><tr>
39
40 <td>
41 Naslov:
42 </td><td>
43 <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
44 <span id="naslov_input_loading" style="display: none;">
45 <img src="/img/indicator.gif" />
46 </span>
47 </div>
48
49 <div class="auto_complete" id="naslov_input_auto_complete"></div>
50 [% c.prototype.auto_complete_field( 'naslov_input', {
51 url => url _ 'TitleProper',
52 indicator => 'naslov_input_loading'
53 } ) %]
54 </td>
55
56 </tr><tr>
57
58 <td>
59 Autor:
60 </td><td>
61 <input autocomplete="off" id="autor_input" name="PersonalName" type="text" value="" size="60"/>
62 <span id="autor_input_loading" style="display: none;">
63 <img src="/img/indicator.gif" />
64 </span>
65 </div>
66 <div class="auto_complete" id="autor_input_auto_complete"></div>
67 [% c.prototype.auto_complete_field( 'autor_input', {
68 url => url _ 'PersonalName',
69 indicator => 'autor_input_loading'
70 } ) %]
71 </td>
72
73 </tr>
74 </table>
75
76 <!-- additional fields which might get updated by javascript -->
77 <input name="_template" type="hidden" id="template_name" />
78
79 <input type="submit" name="_submit" value="Search" />
80
81 <span id="searching" style="display: none;">
82 Search in progress...
83 <img src="/img/indicator.gif" />
84 </span>
85
86 <input type="reset" name="_reset" value="Clear" />
87
88 </form>
89
90 <div id="results">
91 <span class="notice">No results yet.</span>
92 </div>
93
94 [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26