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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 136 - (show annotations)
Thu Nov 24 22:29:34 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1661 byte(s)
 r9110@llin:  dpavlin | 2005-11-24 19:08:10 +0100
 more improvements and restructuring

1 <!-- results -->
2
3 <!--
4 <pre>[%
5 USE dumper;
6 dumper.dump( params )
7 %]</pre>
8 -->
9
10 [% hits = html_results.size %]
11
12 [% IF hits < 1 %]
13 <div class="no_results">
14 No results
15 </div>
16 [% STOP %]
17 [% END %]
18
19 [% c.prototype.form_remote_tag(
20 url => base _ 'results',
21 update => 'results',
22 loading => 'show_searching();',
23 loaded => 'hide_searching();',
24 html_options => {
25 id => 'results_form',
26 }
27 ) %]
28
29 <!-- persistant fileds for search -->
30
31 <input name="all" type="hidden" />
32 <input name="_all" type="hidden" />
33 <input name="TitleProper" type="hidden" />
34 <input name="PersonalName" type="hidden" />
35
36 <input name="_template" type="hidden" id="template_name" />
37
38 <span style="float: left; font-size: 90%; color: #404040;">
39
40
41 Found
42 [%- IF html_results.size == 100 ; -%]
43 more than
44 [%- END %]
45 [% hits %]
46 result
47 [%- IF hits > 1 ; 's' ; END %]
48 for '[% phrase %]'.
49
50 [% IF attr && attr.size %]
51 <span style="font-size: 80%; color: #a0a0a0;">
52 [
53 [% attr.join(", ") %]
54 ]
55 </span>
56 [% END %]
57
58 </span>
59
60
61
62 <span style="float: right; font-size: 80%; color: #808080;">
63 <a href="#" onclick="load_template('html_ffzg_results_nonstd.tt'); return false;">full</a>
64 <img src="img/star-red.gif"/>
65 <a href="#" onclick="load_template('html_ffzg_results_apa.tt'); return false;">APA</a>
66 <img src="img/star-red.gif"/>
67 <a href="#" onclick="load_template('html_ffzg_results_isbd.tt'); return false;">ISBD</a>
68 </span>
69
70 <br/>
71
72 <div style="clear: left; float; left;">
73
74 [% FOREACH r IN html_results %]
75 [% r %]
76 [% END %]
77
78 </div>
79
80 </form>
81
82 <div style="font-size: 80%; color: #a0a0a0;">
83 End of results.
84 </div>
85
86 <!-- end of results -->
87
88 <script type="text/javascript">
89 hide_searching();
90 </script>
91

  ViewVC Help
Powered by ViewVC 1.1.26