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

Diff of /Webpacus/root/results.tt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 83 by dpavlin, Mon Nov 21 17:46:27 2005 UTC revision 136 by dpavlin, Thu Nov 24 22:29:34 2005 UTC
# Line 1  Line 1 
1  <table>  <!-- results -->
2    
3  <tr>  <!--
4  <td>foo</td>  <pre>[%
5  <td>bar</td>          USE dumper;
6  <td>baz</td>          dumper.dump( params )
7  </tr>  %]</pre>
8    -->
9  <tr>  
10  <td>foo</td>  [% hits = html_results.size %]
11  <td>bar</td>  
12  <td>baz</td>  [% IF hits < 1 %]
13  </tr>  <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    
 </table>  

Legend:
Removed from v.83  
changed lines
  Added in v.136

  ViewVC Help
Powered by ViewVC 1.1.26