/[webpac2]/Webpacus/root/sites/hr/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/sites/hr/search.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 410 - (show annotations)
Mon Feb 20 17:12:36 2006 UTC (18 years, 2 months ago) by dpavlin
File size: 2974 byte(s)
 r483@llin:  dpavlin | 2006-02-20 18:12:14 +0100
 fixed search indicator, removed DOM/Ready, added page_nr to submit_results_form

1 [% INCLUDE header.tt %]
2
3 <!--
4 <pre>
5 site: [% site %]
6 base: [% base %]
7 site_url: [% site_url %]
8 </pre>
9 -->
10
11 [% url = base _ site_url _ 'search/suggest/' %]
12
13 [% c.prototype.form_remote_tag(
14 url => base _ site_url _ 'search/results',
15 update => 'results',
16 loading => 'show_searching();',
17 loaded => 'hide_searching();',
18 html_options => {
19 id => 'results_form',
20 name => 'results_form',
21 }
22 ) %]
23
24 <table id="search_table">
25
26 <tr>
27 <td>
28 Sve:
29 </td><td>
30 <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
31 <span id="sve_input_loading" style="display: none;">
32 <img src="/img/indicator.gif" />
33 </span>
34
35 <div class="auto_complete" id="sve_input_auto_complete"></div>
36 [% c.prototype.auto_complete_field( 'sve_input', {
37 url => url _ '?search=all&show=TitleProper',
38 indicator => 'sve_input_loading',
39 frequency => 0.8,
40 } ) %]
41 <!-- operator for individual words -->
42 <input type="hidden" name="_all" value="AND" />
43 </td>
44
45 </tr><tr>
46
47 <td>
48 Naslov:
49 </td><td>
50 <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
51 <span id="naslov_input_loading" style="display: none;">
52 <img src="/img/indicator.gif" />
53 </span>
54
55 <div class="auto_complete" id="naslov_input_auto_complete"></div>
56 [% c.prototype.auto_complete_field( 'naslov_input', {
57 url => url _ '?search=TitleProper&show=TitleProper',
58 indicator => 'naslov_input_loading',
59 frequency => 0.8,
60 } ) %]
61 </td>
62
63 </tr><tr>
64
65 <td>
66 Autor:
67 </td><td>
68 <input autocomplete="off" id="autor_input" name="Names" type="text" value="" size="60"/>
69 <span id="autor_input_loading" style="display: none;">
70 <img src="/img/indicator.gif" />
71 </span>
72 <div class="auto_complete" id="autor_input_auto_complete"></div>
73 [% c.prototype.auto_complete_field( 'autor_input', {
74 url => url _ '?search=Names&show=Names',
75 indicator => 'autor_input_loading',
76 frequency => 0.8,
77 } ) %]
78 </td>
79
80 </tr>
81 </table>
82
83 <!-- additional fields which might get updated by javascript -->
84 <input name="_template" type="hidden" id="template_name" />
85 <input name="_page" type="hidden" id="page_nr" />
86 <input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/>
87
88 <div class="databases">
89 <a id="toggle_database_list" href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Hide databases');">Select databases</a>
90 <ul id="database_list" style="display: none;">
91 [% INCLUDE databases.tt %]
92 </ul>
93 </div>
94
95 <div class="buttons">
96
97 <input type="submit" name="_submit" value="Search"
98 onclick="reset_page_nr( 1 ); return true;"
99 />
100
101 <span id="searching" style="display: none;">
102 Pretrazivanje u toku...
103 <img src="/img/indicator.gif" />
104 </span>
105
106 <input type="button" name="_reset_button" value="Clear" onclick="return reset_form();" />
107
108 </div>
109
110 </form>
111
112 <div id="results">
113 [% IF results ; results %]
114 <script type="text/javascript">
115 results_ready( 1 );
116 </script>
117 [% ELSE %]
118 <span class="notice">Nema rezultata</span>
119 [% END %]
120 </div>
121
122 [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26