/[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 16 - (show annotations)
Thu May 6 23:06:08 2004 UTC (19 years, 11 months ago) by dpavlin
File MIME type: text/html
File size: 2584 byte(s)
first "all-clickable-things-are-working" version (0.1)

- primitive folder close/open hack after 100 accesses to keep memory
  usage down (primary in httpd.pl)
- correctly decode Subject/From/To lines
- indexing script is now mbox2index.pl


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 [% IF message.to.size %]
24 <span class="to">To:
25 [% FOREACH f IN message.to %]
26 [% search('to_phrase',f) %][% IF !loop.last %], [% END %]
27 [% END %]
28 </span>
29 [% END %]
30 [% IF message.cc.size %]
31 <span class="cc">Cc:
32 [% FOREACH f IN message.cc %]
33 [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]
34 [% END %]
35 </span>
36 [% END %]
37 [% IF message.bcc.size %]
38 <span class="bcc">Bcc:
39 [% FOREACH f IN message.bcc %]
40 [% IF loop.fist %]Bcc [% END %]
41 [% search('bcc_phrase',f) %][% IF !loop.last %], [% END %]
42 [% END %]
43 </span>
44 [% END %]
45 [% END %]
46
47 [% MACRO date(msg) BLOCK %]
48 <span class="date">[% msg.date %]</span>
49 [% END %]
50
51 <body>
52
53 <table border="0" width="100%">
54 <tr>
55 <td colspan="2">
56
57 <form>
58 Search
59 <select name="search_fld">
60 [% option("search_fld","message","anywhere") %]
61 [% option("search_fld","subject","message subject") %]
62 [% option("search_fld","body","message text") %]
63 [% option("search_fld","from_phrase","sender name") %]
64 [% option("search_fld","from_address","sender address") %]
65 [% option("search_fld","to_phrase","recipient name") %]
66 [% option("search_fld","to_address","recipient address") %]
67 [% option("search_fld","cc_phrase","also to name") %]
68 [% option("search_fld","bcc_phrase","sneek to name") %]
69 </select>
70 <input type="text" name="search_val" size=20 value="[% param.search_val %]">
71 </select>
72 <input type="submit" name="submit" value="Go!">
73 </form>
74
75 </td>
76 </tr>
77
78 <tr>
79 <td valign="top" width="90%">
80
81 [% IF results %]
82 [% INCLUDE results.html %]
83 [% ELSIF message %]
84 [% INCLUDE message.html %]
85 [% END %]
86
87 </td>
88 <td valign="top">
89
90 [% USE cal = Calendar.Simple %]
91
92 <table border="0">
93 [% FOREACH row = cal.rows %]
94 <tr>
95 [% FOREACH col = row %]
96 <td align="right">[% col || '&nbsp;' %]</td>
97 [% END %]
98 </tr>
99 [% END %]
100 </table>
101
102 <br>
103 Thread
104
105 <br>
106 Recipients
107
108 <br>
109 Contributors
110
111 <br>
112 Lists
113
114 <br>
115 Links
116
117 <br>
118
119
120 </td>
121
122 </tr>
123
124
125 </table>
126
127 </body>

  ViewVC Help
Powered by ViewVC 1.1.26