d592e07d57e7c212aaf0c406149c7ed7c77be243
[platal.git] / templates / axletter / letter.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 {if !$html_version}
24 {if $is_mail}
25 {config_load file="mails.conf" section="mails_ax"}
26 {from full=#from#}
27 {subject text=$am->title(true)}
28 {if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if}
29 {if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if}
30 {else}
31 <pre style="width : 72ex; margin: auto">
32 {/if}
33 ====================================================================
34 {$am->title()}
35 ====================================================================
36
37 {$am->head($prenom, $nom, $sexe, 'text')}
38
39 {$am->body('text')}
40
41 {$am->signature('text')}
42
43 --------------------------------------------------------------------
44 Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
45
46 archives         : [https://www.polytechnique.org/ax]
47 ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
48
49 {if !$is_mail}
50 </pre>
51 {/if}
52 {else}
53 {if $is_mail}
54 <?xml version="1.0" encoding="iso-8859-15"?>
55 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
56 <html xmlns="http://www.w3.org/1999/xhtml"> 
57   <head>  
58     <title>Lettre d'information de l'AX</title>
59     <style type="text/css">
60     <!--
61       {$am->css()}
62     -->
63     </style>
64   </head>
65   <body>
66 {/if}
67     <div class='ax_mail'>
68     <div class='ax_text'>
69       <div class="title">{$am->title()}</div>
70       <div class="intro">{$am->head($prenom, $nom, $sexe, 'html')|smarty:nodefaults}</div>
71       <div class="body">{$am->body('html')|smarty:nodefaults}</div>
72       <div class="signature">{$am->signature('html')|smarty:nodefaults}</div>
73       <div class="foot1">
74         Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
75       </div>
76       <div class="foot2">
77         [<a href="https://www.polytechnique.org/ax">archives</a>&nbsp;|
78         <a href="https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}">ne plus recevoir</a>]
79       </div>
80     </div>
81     </div>
82 {if $is_mail}
83   </body>
84 </html>
85 {/if}
86 {/if}
87
88 {* vim:set et sw=2 sts=2 sws=2: *}