/[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 128 by dpavlin, Thu Nov 24 12:17:50 2005 UTC revision 138 by dpavlin, Thu Nov 24 22:29:44 2005 UTC
# Line 1  Line 1 
1  <!-- results -->  <!-- results -->
2    
3  <!--  [% hits = html_results.size %]
4  <pre>[%  
5          USE dumper;  [% IF hits < 1 %]
6          dumper.dump( params )  <div class="no_results">
7  %]</pre>   No results found for '[% phrase %]'.
8  -->  </div>
9    
10  [% c.prototype.form_remote_tag(   [% IF attr && attr.size %]
11          url => base _ 'results',   <span class="attr">[ [% attr.join(", ") %] ]</span>
12          update => 'results',   [% END %]
13          loading => 'show_searching();',   [% STOP %]
14          loaded => 'hide_searching();',  [% END %]
15          html_options => {  
16                  id => 'results_form',  <div>
         }  
 ) %]  
   
 <!-- persistant fileds for search -->  
   
 <input name="all" type="hidden" size="60"/>  
 <input name="TitleProper" type="hidden" size="60"/>  
 <input name="PersonalName" type="hidden" size="60"/>  
17    
 <input name="_template" type="hidden" id="template_name" />  
18    
19  <span style="float: left; font-size: 90%; color: #404040;">  <span class="results">
20    
21  Found  Found
22  [%- IF html_results.size == 100 ; -%]  [%- IF hits == 100 ; -%]
23  more than  more than
24  [%- END %]  [%- END %]
25  [% html_results.size %] results.  [% 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>  </span>
35    
36  <span style="float: right; font-size: 80%; color: #808080;">  
37    
38    <span class="switch_template">
39    <a href="#" onclick="load_template('html_ffzg_results_nonstd.tt'); return false;">full</a>    <a href="#" onclick="load_template('html_ffzg_results_nonstd.tt'); return false;">full</a>
40    <img src="img/star-red.gif"/>    <img src="img/star-red.gif"/>
41    <a href="#" onclick="load_template('html_ffzg_results_apa.tt'); return false;">APA</a>    <a href="#" onclick="load_template('html_ffzg_results_apa.tt'); return false;">APA</a>
# Line 45  more than Line 45  more than
45    
46  <br/>  <br/>
47    
48    <div class="html_results">
49    
50  [% FOREACH r IN html_results %]  [% FOREACH r IN html_results %]
51  [% r %]  [% r %]
52  [% END %]  [% END %]
53    
54  </form>  </div>
55    
56  <br/>  </div>
57  <tt>End of results.</tt>  
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    
 <!-- end of results -->  

Legend:
Removed from v.128  
changed lines
  Added in v.138

  ViewVC Help
Powered by ViewVC 1.1.26