/[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 13 by dpavlin, Thu May 6 16:53:40 2004 UTC revision 24 by dpavlin, Sat May 8 14:27:54 2004 UTC
# Line 3  Line 3 
3  <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>  <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4  </head>  </head>
5    
6  [% MACRO search(fld,text,link_text) BLOCK; %]  [% PROCESS macros.tt2 %]
 <a href="?search=[% fld %]:[% text %]">[% 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('cc_phrase',f) %][% IF !loop.last %], [% END %]  
  [% END %]  
 </span>  
 [% END %]  
   
 [% MACRO date(msg) BLOCK %]  
 <span class="date">[% msg.date %]</span>  
 [% END %]  
7    
8  <body>  <body>
9    
# Line 49  Line 14 
14  <form>  <form>
15  Search  Search
16  <select name="search_fld">  <select name="search_fld">
17    [% option("search_fld","message","anywhere") %]
18  [% option("search_fld","subject","message subject") %]  [% option("search_fld","subject","message subject") %]
19  [% option("search_fld","body","message text") %]  [% option("search_fld","body","message text") %]
20  [% option("search_fld","from_phrase","sender name") %]  [% option("search_fld","from_phrase","sender name") %]
21  [% option("search_fld","from_address","sender address") %]  [% option("search_fld","from_address","sender address") %]
22  [% option("search_fld","to_phrase","recipient name") %]  [% option("search_fld","to_phrase","recipient name") %]
23  [% option("search_fld","to_address","recipient address") %]  [% option("search_fld","to_address","recipient address") %]
24    [% option("search_fld","cc_phrase","also to name") %]
25    [% option("search_fld","bcc_phrase","sneek to name") %]
26  </select>  </select>
27  <input type="text" name="search_val" size=20 value="[% param.search_val %]">  <input type="text" name="search_val" size=20 value="[% param.search_val %]">
28  </select>  </select>
29    <input type="submit" name="submit" value="Go!">
30  </form>  </form>
31    
32  </td>  </td>
# Line 75  Search Line 44  Search
44  </td>  </td>
45  <td valign="top">  <td valign="top">
46    
47    [% USE cal = Calendar.Simple %]  [% USE cal = Calendar.Simple(mm,yyyy) %]
48    
49    <table border="0">    <table border="0">
50      <tr><th colspan="7">
51            <a href="/[% yyyy ; "/" %]/[% url_search %]">[% yyyy %]</a>-<a href="/[% yyyy ; "/" ; mm %]/[% url_search %]">[% mm %]</a>
52      </th></tr>
53    [% FOREACH row = cal.rows %]    [% FOREACH row = cal.rows %]
54       <tr>       <tr>
55       [% FOREACH col = row %]       [% FOREACH col = row %]
56          <td align="right">[% col || '&nbsp;' %]</td>          <td align="right">[% get_cal(calendar,yyyy,mm,col,url_search) %]</td>
57       [% END %]       [% END %]
58       </tr>       </tr>
59    [% END %]    [% END %]
# Line 90  Search Line 62  Search
62  <br>  <br>
63  Thread  Thread
64    
65  <br>  [% usage_list(counters.from,'from','From') %]
 Recipients  
66    
67  <br>  [% usage_list(counters.to,'to','To') %]
68  Contributors  
69    [% usage_list(counters.cc,'cc','Cc') %]
70    
71  <br>  <br>
72  Lists  Lists
# Line 102  Lists Line 74  Lists
74  <br>  <br>
75  Links  Links
76    
77  <br>  [% USE dumper ; dumper.dump(param.sort_by, param.search) %]
   
78    
79  </td>  </td>
80    

Legend:
Removed from v.13  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26