/[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

Contents of /trunk/templates/master.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (show annotations)
Thu May 6 19:46:58 2004 UTC (19 years, 11 months ago) by dpavlin
File MIME type: text/html
File size: 2323 byte(s)
Make mbox2swish universal for all indexer (moving index-specific
thinks in own .pm) -- after MWS_plucene.pm update it should work with it.
Use Text::AutoFormat to re-format messages wider than wrap_margin
(from global.conf). Hard-coded ISO-8859-2 encoding now works correctly,
Subject searches now remove common subject prefixes, template updates.

1 <html>
2 <head>
3 <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4 </head>
5
6 [% MACRO search(fld,text,link_text) BLOCK; %]
7 <a href="?search=[% fld %]:[% IF fld == "subject" %][% FILTER subject_search ; text ; END %][% ELSE ; text ; END %]">[% 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('bcc_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>
44
45 <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","message","anywhere") %]
53 [% option("search_fld","subject","message subject") %]
54 [% option("search_fld","body","message text") %]
55 [% option("search_fld","from_phrase","sender name") %]
56 [% option("search_fld","from_address","sender address") %]
57 [% option("search_fld","to_phrase","recipient name") %]
58 [% option("search_fld","to_address","recipient address") %]
59 </select>
60 <input type="text" name="search_val" size=20 value="[% param.search_val %]">
61 </select>
62 </form>
63
64 </td>
65 </tr>
66
67 <tr>
68 <td valign="top" width="90%">
69
70 [% IF results %]
71 [% INCLUDE results.html %]
72 [% ELSIF message %]
73 [% INCLUDE message.html %]
74 [% END %]
75
76 </td>
77 <td valign="top">
78
79 [% USE cal = Calendar.Simple %]
80
81 <table border="0">
82 [% FOREACH row = cal.rows %]
83 <tr>
84 [% FOREACH col = row %]
85 <td align="right">[% col || '&nbsp;' %]</td>
86 [% END %]
87 </tr>
88 [% END %]
89 </table>
90
91 <br>
92 Thread
93
94 <br>
95 Recipients
96
97 <br>
98 Contributors
99
100 <br>
101 Lists
102
103 <br>
104 Links
105
106 <br>
107
108
109 </td>
110
111 </tr>
112
113
114 </table>
115
116 </body>

  ViewVC Help
Powered by ViewVC 1.1.26