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 |
|
|
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> |
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 || ' ' %]</td> |
<td align="right">[% get_cal(calendar,yyyy,mm,col,url_search) %]</td> |
57 |
[% END %] |
[% END %] |
58 |
</tr> |
</tr> |
59 |
[% END %] |
[% END %] |
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 |
74 |
<br> |
<br> |
75 |
Links |
Links |
76 |
|
|
77 |
<br> |
[% USE dumper ; dumper.dump(param.sort_by, param.search) %] |
|
|
|
78 |
|
|
79 |
</td> |
</td> |
80 |
|
|