stas        02/02/03 23:16:44

  Modified:    src/search search.tt
  Log:
  - tidy up
  
  Revision  Changes    Path
  1.3       +23 -32    modperl-docs/src/search/search.tt
  
  Index: search.tt
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/search/search.tt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- search.tt 3 Feb 2002 11:14:55 -0000       1.2
  +++ search.tt 4 Feb 2002 07:16:43 -0000       1.3
  @@ -1,12 +1,10 @@
  -
  -
  -[% # This is just an example -- you would want your own "page" for the 
wrapper %]
  -
  +[% # This template is used for rendering the search results
  +   # It expects the search hash ref to be set.
  +-%]
   [% WRAPPER searchresults.html %]
   
       [% PROCESS swish_header %]
   
  -
       [% title = PROCESS title %]
   
       [% IF ! search.results %]
  @@ -22,52 +20,45 @@
   [% END %]
   
   
  -[% # This is just an example -- you would want your own "page" to wrap 
around "swish" %]
  -[% BLOCK page %]
  -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  -<html>
  -<head>
  -<title>
  -  [% title || "Welcome"  %]
  -</title>
  -<body>
  -   [% content %]
  -</body>    
  -</html>    
  -[% END %]
  -
  -
   [% BLOCK title %]
  +
       [% IF ! search.results %]
           [% search.errstr || search.config('title') || "Search page" %]
  -
       [% ELSE %]
           [% search.navigation('hits') %] Results for [[% search.query_simple 
| html %]]
       [% END %]
  +
   [% END %]
   
  +
   [% BLOCK swish_header %]    
   
       <table border="0" cellpadding="0" cellspacing="0">
  -    <tr><td>
  -        <a href="http://swish-e.org";>
  -        <img border="0" alt="Swish-e home page" 
src="http://swish-e.org/Images/swish-e.gif";></a>
  -    </td><td valign="middle">
  -        <font size="+3">[% search.config('title') || "Search page"  %]</font>
  -    </td></tr>
  +        <tr>
  +            <td>
  +                <a href="http://swish-e.org";><img 
src="http://swish-e.org/Images/swish-e.gif"; 
  +                   border="0" alt="Swish-e home page"></a>
  +            </td>
  +            <td valign="middle">
  +                <font size="+3">[% search.config('title') || "Search page" 
%]</font>
  +            </td>
  +        </tr>
       </table>
   
   [% END %]    
   
  +
   [% BLOCK show_message %]
  +
       [% IF search.errstr %]
           <font size="+2" color="red">[% search.errstr | html %]</font>
       [% END %]
  -[% END %]
   
  +[% END %]
   
   
   [% BLOCK search_form %]
  +
       [% CGI.start_form( '-action' => CGI.script_name) %]
           [% CGI.textfield( {
               name    => 'query',
  @@ -87,6 +78,7 @@
   
   
   [% BLOCK nav_bar %]
  +
       [% search.stopwords_removed %]
       <table cellpadding=0 cellspacing=0 border=0 width="100%">
           <tr>
  @@ -125,10 +117,12 @@
           [% END %]
   
       </table>
  +
   [% END %]
   
   
   [% BLOCK results_list %]
  +
       [% FOREACH item = search.results %]
           <dl>
               <dt>
  @@ -151,8 +145,5 @@
               </dd>
           </dl>
       [% END %]
  -[% END %]
  -    
  -
  -    
   
  +[% END %]
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to