/[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 14 by dpavlin, Thu May 6 19:46:58 2004 UTC revision 35 by dpavlin, Sun May 9 10:43:24 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 param.search %][% param.search %] [% date_limit %] - [% 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 %]  
 <span class="to">  
  [% FOREACH f IN message.to %]  
   [% IF loop.fist %]To [% END %]  
   [% search('to_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
  [% FOREACH f IN message.cc %]  
   [% IF loop.fist %]Cc [% END %]  
   [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
  [% FOREACH f IN message.bcc %]  
   [% IF loop.fist %]Bcc [% END %]  
   [% search('bcc_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
 </span>  
 [% END %]  
   
 [% MACRO date(msg) BLOCK %]  
 <span class="date">[% msg.date %]</span>  
 [% END %]  
8    
9  <body>  <body>
10    
# Line 47  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 56  Search Line 23  Search
23  [% option("search_fld","from_address","sender address") %]  [% option("search_fld","from_address","sender address") %]
24  [% option("search_fld","to_phrase","recipient name") %]  [% option("search_fld","to_phrase","recipient name") %]
25  [% option("search_fld","to_address","recipient address") %]  [% option("search_fld","to_address","recipient address") %]
26    [% option("search_fld","cc_phrase","also to name") %]
27    [% option("search_fld","bcc_phrase","sneek to name") %]
28  </select>  </select>
29  <input type="text" name="search_val" size=20 value="[% param.search_val %]">  <input type="text" name="search_val" size=20 value="[% param.search_val %]">
30  </select>  </select>
31    <input type="submit" name="submit" value="Go!">
32    [% IF param.sort_by %]
33    <input type="hidden" name="sort_by" value="[% param.sort_by %]">
34    [% END %]
35  </form>  </form>
36    
37  </td>  </td>
# Line 71  Search Line 44  Search
44   [% INCLUDE results.html %]   [% INCLUDE results.html %]
45  [% ELSIF message %]  [% ELSIF message %]
46   [% INCLUDE message.html %]   [% INCLUDE message.html %]
47    [% ELSIF apropos %]
48     [% INCLUDE apropos.html %]
49  [% END %]  [% END %]
50    
51  </td>  </td>
52  <td valign="top">  <td valign="top">
53    
54    [% USE cal = Calendar.Simple %]  [% USE cal = Calendar.Simple(mm,yyyy) %]
55    
56    <table border="0">    <table border="0">
57      <tr><th class="calendar" colspan="7">
58            <a href="/[% yyyy ; "/" %]/[% url_search(param.search) %]">[% yyyy %]</a>-<a href="/[% yyyy ; "/" ; mm %]/[% url_search(param.search) %]">[% mm %]</a>
59      </th></tr>
60    [% FOREACH row = cal.rows %]    [% FOREACH row = cal.rows %]
61       <tr>       <tr>
62       [% FOREACH col = row %]       [% FOREACH col = row %]
63          <td align="right">[% col || '&nbsp;' %]</td>          <td class="calendar" align="right">[% get_cal(calendar,yyyy,mm,col,url_search(param.search)) %]</td>
64       [% END %]       [% END %]
65       </tr>       </tr>
66    [% END %]    [% END %]
67    </table>    </table>
68    
69  <br>  <!--
70  Thread  Thread
71    -->
72    
73  <br>  [% usage_list(counters.from,'from','From') %]
 Recipients  
74    
75  <br>  [% usage_list(counters.to,'to','To') %]
 Contributors  
76    
77  <br>  [% usage_list(counters.cc,'cc','Cc') %]
 Lists  
78    
79  <br>  <!--
80    Lists
81  Links  Links
82    -->
 <br>  
   
83    
84  </td>  </td>
85    

Legend:
Removed from v.14  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.26