1 |
dpavlin |
358 |
[% INCLUDE header.tt %] |
2 |
|
|
|
3 |
dpavlin |
399 |
<pre> |
4 |
|
|
site: [% site %] |
5 |
|
|
base: [% base %] |
6 |
|
|
site_url: [% site_url %] |
7 |
|
|
</pre> |
8 |
dpavlin |
358 |
|
9 |
dpavlin |
399 |
[% url = base _ site_url _ 'search/suggest/' %] |
10 |
|
|
|
11 |
dpavlin |
358 |
[% c.prototype.form_remote_tag( |
12 |
dpavlin |
399 |
url => base _ site_url _ 'search/results', |
13 |
dpavlin |
358 |
update => 'results', |
14 |
|
|
loading => 'show_searching();', |
15 |
|
|
loaded => 'hide_searching();', |
16 |
|
|
html_options => { |
17 |
|
|
id => 'results_form', |
18 |
|
|
name => 'results_form', |
19 |
|
|
} |
20 |
|
|
) %] |
21 |
|
|
|
22 |
|
|
<table id="search_table"> |
23 |
|
|
|
24 |
|
|
<tr> |
25 |
|
|
<td> |
26 |
|
|
Sve: |
27 |
|
|
</td><td> |
28 |
|
|
<input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/> |
29 |
|
|
<span id="sve_input_loading" style="display: none;"> |
30 |
|
|
<img src="/img/indicator.gif" /> |
31 |
|
|
</span> |
32 |
|
|
|
33 |
|
|
<div class="auto_complete" id="sve_input_auto_complete"></div> |
34 |
|
|
[% c.prototype.auto_complete_field( 'sve_input', { |
35 |
|
|
url => url _ '?search=all&show=TitleProper', |
36 |
|
|
indicator => 'sve_input_loading', |
37 |
|
|
frequency => 0.8, |
38 |
|
|
} ) %] |
39 |
|
|
<!-- operator for individual words --> |
40 |
|
|
<input type="hidden" name="_all" value="AND" /> |
41 |
|
|
</td> |
42 |
|
|
|
43 |
|
|
</tr><tr> |
44 |
|
|
|
45 |
|
|
<td> |
46 |
|
|
Naslov: |
47 |
|
|
</td><td> |
48 |
|
|
<input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/> |
49 |
|
|
<span id="naslov_input_loading" style="display: none;"> |
50 |
|
|
<img src="/img/indicator.gif" /> |
51 |
|
|
</span> |
52 |
|
|
|
53 |
|
|
<div class="auto_complete" id="naslov_input_auto_complete"></div> |
54 |
|
|
[% c.prototype.auto_complete_field( 'naslov_input', { |
55 |
|
|
url => url _ '?search=TitleProper&show=TitleProper', |
56 |
|
|
indicator => 'naslov_input_loading', |
57 |
|
|
frequency => 0.8, |
58 |
|
|
} ) %] |
59 |
|
|
</td> |
60 |
|
|
|
61 |
|
|
</tr><tr> |
62 |
|
|
|
63 |
|
|
<td> |
64 |
|
|
Autor: |
65 |
|
|
</td><td> |
66 |
|
|
<input autocomplete="off" id="autor_input" name="Names" type="text" value="" size="60"/> |
67 |
|
|
<span id="autor_input_loading" style="display: none;"> |
68 |
|
|
<img src="/img/indicator.gif" /> |
69 |
|
|
</span> |
70 |
|
|
<div class="auto_complete" id="autor_input_auto_complete"></div> |
71 |
|
|
[% c.prototype.auto_complete_field( 'autor_input', { |
72 |
|
|
url => url _ '?search=Names&show=Names', |
73 |
|
|
indicator => 'autor_input_loading', |
74 |
|
|
frequency => 0.8, |
75 |
|
|
} ) %] |
76 |
|
|
</td> |
77 |
|
|
|
78 |
|
|
</tr> |
79 |
|
|
</table> |
80 |
|
|
|
81 |
|
|
<!-- additional fields which might get updated by javascript --> |
82 |
|
|
<input name="_template" type="hidden" id="template_name" /> |
83 |
|
|
<input name="_page" type="hidden" id="page_nr" /> |
84 |
|
|
<input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/> |
85 |
|
|
|
86 |
|
|
<div class="databases"> |
87 |
|
|
<a href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Hide databases');">Select databases</a> |
88 |
|
|
<ul id="database_list" style="display: none;"> |
89 |
|
|
[% FOREACH db = c.comp('Model::Databases').list({ require_input => 1 }).sort('name') %] |
90 |
|
|
<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> |
91 |
|
|
[% END %] |
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 |
dpavlin |
359 |
Pretrazivanje u toku... |
103 |
dpavlin |
358 |
<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 ; ELSE %] |
114 |
dpavlin |
359 |
<span class="notice">Nema rezultata</span> |
115 |
dpavlin |
358 |
[% END %] |
116 |
|
|
</div> |
117 |
|
|
|
118 |
|
|
[% INCLUDE footer.tt %] |