/[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

Annotation of /Webpacus/root/search.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations)
Sat Nov 26 01:54:31 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 2249 byte(s)
 r11138@llin:  dpavlin | 2005-11-25 20:38:19 +0100
 removed Controller::Results and moved that to Controller::Search as
 method result. Various other tweaks and added pod.t

1 dpavlin 109 [% INCLUDE header.tt %]
2    
3     [% c.prototype.auto_complete_stylesheet %]
4     [% url = base _ 'search/suggest/' %]
5    
6     [% c.prototype.form_remote_tag(
7 dpavlin 153 url => base _ 'search/results',
8 dpavlin 109 update => 'results',
9     loading => 'show_searching();',
10     loaded => 'hide_searching();',
11 dpavlin 138 html_options => {
12     id => 'results_form',
13     name => 'results_form',
14     }
15 dpavlin 109 ) %]
16    
17     <table>
18 dpavlin 117
19 dpavlin 109 <tr>
20     <td>
21 dpavlin 117 Sve:
22     </td><td>
23     <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
24     <span id="sve_input_loading" style="display: none;">
25     <img src="/img/indicator.gif" />
26     </span>
27     </div>
28    
29     <div class="auto_complete" id="sve_input_auto_complete"></div>
30     [% c.prototype.auto_complete_field( 'sve_input', {
31     url => url _ 'TitleProper',
32     indicator => 'sve_input_loading'
33     } ) %]
34 dpavlin 133 <!-- operator for individual words -->
35     <input type="hidden" name="_all" value="AND" />
36 dpavlin 117 </td>
37    
38     </tr><tr>
39    
40     <td>
41 dpavlin 109 Naslov:
42     </td><td>
43     <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
44     <span id="naslov_input_loading" style="display: none;">
45     <img src="/img/indicator.gif" />
46     </span>
47     </div>
48    
49     <div class="auto_complete" id="naslov_input_auto_complete"></div>
50     [% c.prototype.auto_complete_field( 'naslov_input', {
51     url => url _ 'TitleProper',
52     indicator => 'naslov_input_loading'
53     } ) %]
54     </td>
55 dpavlin 117
56 dpavlin 109 </tr><tr>
57 dpavlin 117
58 dpavlin 109 <td>
59     Autor:
60     </td><td>
61     <input autocomplete="off" id="autor_input" name="PersonalName" type="text" value="" size="60"/>
62     <span id="autor_input_loading" style="display: none;">
63     <img src="/img/indicator.gif" />
64     </span>
65     </div>
66     <div class="auto_complete" id="autor_input_auto_complete"></div>
67     [% c.prototype.auto_complete_field( 'autor_input', {
68     url => url _ 'PersonalName',
69     indicator => 'autor_input_loading'
70     } ) %]
71     </td>
72 dpavlin 117
73 dpavlin 109 </tr>
74     </table>
75    
76 dpavlin 138 <!-- additional fields which might get updated by javascript -->
77     <input name="_template" type="hidden" id="template_name" />
78 dpavlin 153 <input name="_offset" type="hidden" id="offset_value" />
79 dpavlin 138
80 dpavlin 109 <input type="submit" name="_submit" value="Search" />
81    
82     <span id="searching" style="display: none;">
83     Search in progress...
84     <img src="/img/indicator.gif" />
85     </span>
86    
87 dpavlin 117 <input type="reset" name="_reset" value="Clear" />
88    
89 dpavlin 109 </form>
90    
91     <div id="results">
92 dpavlin 138 <span class="notice">No results yet.</span>
93 dpavlin 109 </div>
94    
95     [% INCLUDE footer.tt %]

  ViewVC Help
Powered by ViewVC 1.1.26