/[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 6 by dpavlin, Wed May 5 13:42:27 2004 UTC revision 13 by dpavlin, Thu May 6 16:53:40 2004 UTC
# Line 1  Line 1 
1  <html>  <html>
2  <head>  <head>
3    <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4  </head>  </head>
5    
6    [% MACRO search(fld,text,link_text) BLOCK; %]
7    <a href="?search=[% fld %]:[% text %]">[% IF link_text ; link_text ; ELSE ; text ; END %]</a>
8    [% END %]
9    
10    [% MACRO option(var, value, text) BLOCK %]
11    <option value="[% value %]"[% IF value == param.search_fld %] selected[% END %]>[% text %]</option>
12    [% END %]
13    
14    [% MACRO from(message) BLOCK %]
15    <span class="from">
16     [% FOREACH f IN message.from %]
17      [% search('from_phrase',f) %][% IF !loop.last %],[% END %]
18     [% END %]
19    </span>
20    [% END %]
21    
22    [% MACRO to(message) BLOCK %]
23    <span class="to">
24     [% FOREACH f IN message.to %]
25      [% IF !loop.fist %]To [% END %]
26      [% search('to_phrase',f) %][% IF !loop.last %], [% END %]
27     [% END %]
28     [% FOREACH f IN message.cc %]
29      [% IF !loop.fist %]Cc [% END %]
30      [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]
31     [% END %]
32     [% FOREACH f IN message.bcc %]
33      [% IF !loop.fist %]Bcc [% END %]
34      [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]
35     [% END %]
36    </span>
37    [% END %]
38    
39    [% MACRO date(msg) BLOCK %]
40    <span class="date">[% msg.date %]</span>
41    [% END %]
42    
43  <body>  <body>
44    
45  [% INCLUDE results.html %]  <table border="0" width="100%">
46    <tr>
47    <td colspan="2">
48    
49    <form>
50    Search
51    <select name="search_fld">
52    [% option("search_fld","subject","message subject") %]
53    [% option("search_fld","body","message text") %]
54    [% option("search_fld","from_phrase","sender name") %]
55    [% option("search_fld","from_address","sender address") %]
56    [% option("search_fld","to_phrase","recipient name") %]
57    [% option("search_fld","to_address","recipient address") %]
58    </select>
59    <input type="text" name="search_val" size=20 value="[% param.search_val %]">
60    </select>
61    </form>
62    
63    </td>
64    </tr>
65    
66    <tr>
67    <td valign="top" width="90%">
68    
69    [% IF results %]
70     [% INCLUDE results.html %]
71    [% ELSIF message %]
72     [% INCLUDE message.html %]
73    [% END %]
74    
75    </td>
76    <td valign="top">
77    
78      [% USE cal = Calendar.Simple %]
79    
80      <table border="0">
81      [% FOREACH row = cal.rows %]
82         <tr>
83         [% FOREACH col = row %]
84            <td align="right">[% col || '&nbsp;' %]</td>
85         [% END %]
86         </tr>
87      [% END %]
88      </table>
89    
90    <br>
91    Thread
92    
93    <br>
94    Recipients
95    
96    <br>
97    Contributors
98    
99    <br>
100    Lists
101    
102    <br>
103    Links
104    
105    <br>
106    
107    
108    </td>
109    
110    </tr>
111    
112    
113    </table>
114    
115  </body>  </body>

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

  ViewVC Help
Powered by ViewVC 1.1.26