/[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 402 - (show annotations)
Sun Feb 19 18:12:52 2006 UTC (18 years, 2 months ago) by dpavlin
File size: 3162 byte(s)
 r468@llin:  dpavlin | 2006-02-19 17:46:44 +0100
 comment out debug

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 href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Hide databases');">Select databases</a>
90 <ul id="database_list" style="display: none;">
91 [% FOREACH db = c.comp('Model::Databases').list({ require_input => 1 }).sort('name') %]
92 <li><input type="checkbox" name="_database" value="[% db.prefix %]" onclick="return checkbox_click();"><a href="#" onclick="return checkbox_single('_database','[% db.prefix %]');">[% db.name %]</a></li>
93 [% END %]
94 </ul>
95 </div>
96
97 <div class="buttons">
98
99 <input type="submit" name="_submit" value="Search"
100 onclick="reset_page_nr( 1 ); return true;"
101 />
102
103 <span id="searching" style="display: none;">
104 Pretrazivanje u toku...
105 <img src="/img/indicator.gif" />
106 </span>
107
108 <input type="button" name="_reset_button" value="Clear" onclick="return reset_form();" />
109
110 </div>
111
112 </form>
113
114 <div id="results">
115 [% IF results ; results ; ELSE %]
116 <span class="notice">Nema rezultata</span>
117 [% END %]
118 </div>
119
120 [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26