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

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

  ViewVC Help
Powered by ViewVC 1.1.26