/[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 12 by dpavlin, Thu May 6 12:40:11 2004 UTC revision 25 by dpavlin, Sat May 8 16:06:58 2004 UTC
# Line 1  Line 1 
1  <html>  <html>
2  <head>  <head>
3  <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>   <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4     <link rel="StyleSheet" type="text/css" href="/style.css">
5  </head>  </head>
6    
7  [% 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 %]  
8    
9  <body>  <body>
10    
# Line 20  Line 15 
15  <form>  <form>
16  Search  Search
17  <select name="search_fld">  <select name="search_fld">
18    [% option("search_fld","message","anywhere") %]
19  [% option("search_fld","subject","message subject") %]  [% option("search_fld","subject","message subject") %]
20  [% option("search_fld","body","message text") %]  [% option("search_fld","body","message text") %]
21  [% option("search_fld","from_phrase","sender name") %]  [% option("search_fld","from_phrase","sender name") %]
22  [% option("search_fld","from_address","sender address") %]  [% option("search_fld","from_address","sender address") %]
23  [% option("search_fld","to_phrase","sender name") %]  [% option("search_fld","to_phrase","recipient name") %]
24  [% option("search_fld","to_address","sender address") %]  [% option("search_fld","to_address","recipient address") %]
25    [% option("search_fld","cc_phrase","also to name") %]
26    [% option("search_fld","bcc_phrase","sneek to name") %]
27  </select>  </select>
28  <input type="text" name="search_val" size=20 value="[% param.search_val %]">  <input type="text" name="search_val" size=20 value="[% param.search_val %]">
29  </select>  </select>
30    <input type="submit" name="submit" value="Go!">
31  </form>  </form>
32    
33  </td>  </td>
34  </tr>  </tr>
35    
36  <tr>  <tr>
37  <td valign="top">  <td valign="top" width="90%">
38    
39  [% IF results %]  [% IF results %]
40   [% INCLUDE results.html %]   [% INCLUDE results.html %]
# Line 46  Search Line 45  Search
45  </td>  </td>
46  <td valign="top">  <td valign="top">
47    
48    [% USE cal = Calendar.Simple %]  [% USE cal = Calendar.Simple(mm,yyyy) %]
49    
50    <table border="0">    <table border="0">
51      <tr><th colspan="7">
52            <a href="/[% yyyy ; "/" %]/[% url_search %]">[% yyyy %]</a>-<a href="/[% yyyy ; "/" ; mm %]/[% url_search %]">[% mm %]</a>
53      </th></tr>
54    [% FOREACH row = cal.rows %]    [% FOREACH row = cal.rows %]
55       <tr>       <tr>
56       [% FOREACH col = row %]       [% FOREACH col = row %]
57          <td align="right">[% col || '&nbsp;' %]</td>          <td align="right">[% get_cal(calendar,yyyy,mm,col,url_search) %]</td>
58       [% END %]       [% END %]
59       </tr>       </tr>
60    [% END %]    [% END %]
61    </table>    </table>
62    
63  <br>  <!--
64  Thread  Thread
65    -->
66    
67  <br>  [% usage_list(counters.from,'from','From') %]
 Recipients  
68    
69  <br>  [% usage_list(counters.to,'to','To') %]
 Contributors  
70    
71  <br>  [% usage_list(counters.cc,'cc','Cc') %]
 Lists  
72    
73  <br>  <!--
74    Lists
75  Links  Links
76    
77  <br>  [% USE dumper ; dumper.dump(param.sort_by, param.search) %]
78    -->
79    
80  </td>  </td>
81    

Legend:
Removed from v.12  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.26