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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 428 - (show annotations)
Mon Apr 10 00:09:08 2006 UTC (18 years ago) by dpavlin
File size: 3309 byte(s)
two more example sites

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

  ViewVC Help
Powered by ViewVC 1.1.26