/[mws]/trunk/templates/master.html
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 /trunk/templates/master.html

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

revision 16 by dpavlin, Thu May 6 23:06:08 2004 UTC revision 32 by dpavlin, Sun May 9 09:48:38 2004 UTC
# Line 1  Line 1 
1  <html>  <html>
2  <head>  <head>
3  <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>   <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4     <link rel="StyleSheet" type="text/css" href="/style.css">
5  </head>  </head>
6    
7  [% MACRO search(fld,text,link_text) BLOCK; %]  [% PROCESS macros.tt2 %]
 <a href="?search=[% fld %]:[% IF fld == "subject" %][% FILTER subject_search ; text ; END %][% ELSE ; text ; END %]">[% IF link_text ; link_text ; ELSE ; text ; END %]</a>  
 [% END %]  
   
 [% MACRO option(var, value, text) BLOCK %]  
 <option value="[% value %]"[% IF value == param.search_fld %] selected[% END %]>[% text %]</option>  
 [% END %]  
   
 [% MACRO from(message) BLOCK %]  
 <span class="from">  
  [% FOREACH f IN message.from %]  
   [% search('from_phrase',f) %][% IF !loop.last %],[% END %]  
  [% END %]  
 </span>  
 [% END %]  
   
 [% MACRO to(message) BLOCK %]  
 [% IF message.to.size %]  
 <span class="to">To:  
  [% FOREACH f IN message.to %]  
   [% search('to_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
 </span>  
 [% END %]  
 [% IF message.cc.size %]  
 <span class="cc">Cc:  
  [% FOREACH f IN message.cc %]  
   [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
 </span>  
 [% END %]  
 [% IF message.bcc.size %]  
 <span class="bcc">Bcc:  
  [% FOREACH f IN message.bcc %]  
   [% IF loop.fist %]Bcc [% END %]  
   [% search('bcc_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
 </span>  
 [% END %]  
 [% END %]  
   
 [% MACRO date(msg) BLOCK %]  
 <span class="date">[% msg.date %]</span>  
 [% END %]  
8    
9  <body>  <body>
10    
# Line 55  Line 13 
13  <td colspan="2">  <td colspan="2">
14    
15  <form>  <form>
16    <a href="/">#</a>
17  Search  Search
18  <select name="search_fld">  <select name="search_fld">
19  [% option("search_fld","message","anywhere") %]  [% option("search_fld","message","anywhere") %]
# Line 82  Search Line 41  Search
41   [% INCLUDE results.html %]   [% INCLUDE results.html %]
42  [% ELSIF message %]  [% ELSIF message %]
43   [% INCLUDE message.html %]   [% INCLUDE message.html %]
44    [% ELSIF apropos %]
45     [% INCLUDE apropos.html %]
46  [% END %]  [% END %]
47    
48  </td>  </td>
49  <td valign="top">  <td valign="top">
50    
51    [% USE cal = Calendar.Simple %]  [% USE cal = Calendar.Simple(mm,yyyy) %]
52    
53    <table border="0">    <table border="0">
54      <tr><th class="calendar" colspan="7">
55            <a href="/[% yyyy ; "/" %]/[% url_search(param.search) %]">[% yyyy %]</a>-<a href="/[% yyyy ; "/" ; mm %]/[% url_search(param.search) %]">[% mm %]</a>
56      </th></tr>
57    [% FOREACH row = cal.rows %]    [% FOREACH row = cal.rows %]
58       <tr>       <tr>
59       [% FOREACH col = row %]       [% FOREACH col = row %]
60          <td align="right">[% col || '&nbsp;' %]</td>          <td class="calendar" align="right">[% get_cal(calendar,yyyy,mm,col,url_search(param.search)) %]</td>
61       [% END %]       [% END %]
62       </tr>       </tr>
63    [% END %]    [% END %]
64    </table>    </table>
65    
66  <br>  <!--
67  Thread  Thread
68    -->
69    
70  <br>  [% usage_list(counters.from,'from','From') %]
 Recipients  
71    
72  <br>  [% usage_list(counters.to,'to','To') %]
 Contributors  
73    
74  <br>  [% usage_list(counters.cc,'cc','Cc') %]
 Lists  
75    
76  <br>  <!--
77    Lists
78  Links  Links
79    -->
 <br>  
   
80    
81  </td>  </td>
82    

Legend:
Removed from v.16  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26