/[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 138 - (show annotations)
Thu Nov 24 22:29:44 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1114 byte(s)
 r9112@llin:  dpavlin | 2005-11-24 23:30:01 +0100
 changing of templates again work. with a little more testing this will be
 0.02 version :-)

1 <!-- results -->
2
3 [% hits = html_results.size %]
4
5 [% IF hits < 1 %]
6 <div class="no_results">
7 No results found for '[% phrase %]'.
8 </div>
9
10 [% IF attr && attr.size %]
11 <span class="attr">[ [% attr.join(", ") %] ]</span>
12 [% END %]
13 [% STOP %]
14 [% END %]
15
16 <div>
17
18
19 <span class="results">
20
21 Found
22 [%- IF hits == 100 ; -%]
23 more than
24 [%- END %]
25 [% hits %]
26 result
27 [%- IF hits > 1 ; 's' ; END %]
28 for '[% phrase %]'.
29
30 [% IF attr && attr.size %]
31 <span class="attr">[ [% attr.join(", ") %] ]</span>
32 [% END %]
33
34 </span>
35
36
37
38 <span class="switch_template">
39 <a href="#" onclick="load_template('html_ffzg_results_nonstd.tt'); return false;">full</a>
40 <img src="img/star-red.gif"/>
41 <a href="#" onclick="load_template('html_ffzg_results_apa.tt'); return false;">APA</a>
42 <img src="img/star-red.gif"/>
43 <a href="#" onclick="load_template('html_ffzg_results_isbd.tt'); return false;">ISBD</a>
44 </span>
45
46 <br/>
47
48 <div class="html_results">
49
50 [% FOREACH r IN html_results %]
51 [% r %]
52 [% END %]
53
54 </div>
55
56 </div>
57
58 <div class="notice">
59 End of results.
60 </div>
61
62 <script type="text/javascript">
63 hide_searching();
64 </script>
65
66 <!-- /results -->
67

  ViewVC Help
Powered by ViewVC 1.1.26