/[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 422 - (show annotations)
Sun Mar 19 22:57:05 2006 UTC (18 years, 1 month ago) by dpavlin
File size: 3242 byte(s)
 r506@llin:  dpavlin | 2006-03-20 00:02:31 +0100
 better logging, try at supporting sites better

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

  ViewVC Help
Powered by ViewVC 1.1.26