closes #376
[platal.git] / templates / xnet / groupe / mail.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 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
24 <h1>{$asso.nom} : Envoyer un mail</h1>
25
26 <p class="descr">
27 Ton message peut être personnalisé : si tu rentres les mots &lt;cher&gt;, &lt;prenom&gt;,
28 &lt;nom&gt;, ces mots seront remplacés, pour chacun des destinataires, par "cher" accordé au
29 masculin ou féminin, par son prénom, ou son nom.
30 </p>
31  
32 <form action="{$smarty.server.PHP_SELF}" method="post">
33   <table class='large'>
34     <tr>
35       <th colspan="2">Ecrire un mail :</th>
36     </tr>
37     <tr>
38       <td class="titre">Expéditeur :</td>
39       <td>
40         <input type="text" name="from" size="55" maxlength="70"
41           value="{if $smarty.request.from}{$smarty.request.from}{else}&quot;{$smarty.session.prenom} {$smarty.session.nom}&quot; <{$smarty.session.bestalias}@polytechnique.org>{/if}" />
42       </td>
43     </tr>
44     <tr>
45       <td class="titre">Reply-To :</td>
46       <td>
47         <input type="text" name="replyto" size="55" maxlength="70" value="{$smarty.request.replyto}" />
48       </td>
49     </tr>
50
51     <tr>
52       <th colspan="2">Destinataires</th>
53     </tr>
54     <tr valign="top">
55       <td style='padding-left: 1em' class='titre'>
56         *&nbsp;<em>annuaire</em>
57       </td>
58       <td>
59         <input type="checkbox" name="membres" value="1" {if $smarty.request.membres}checked="checked"{/if} />
60         <em>écrit à tout l'annuaire du groupe</em> <a href="annuaire.php" class='popup'>(voir annuaire)</a>
61       </td>
62     </tr>
63
64     {foreach from=$listes item=l}
65     <tr>
66       <td style='padding-left: 1em' class='titre'>
67         *&nbsp;{$l.list}
68       </td>
69       <td>
70         <input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} />
71         {$l.addr}
72         <a href="listes-admin.php?liste={$l.list}" class="popup">(voir composition)</a>
73       </td>
74     </tr>
75     {/foreach}
76
77     <tr>
78       <th colspan="2">Contenu du mail</th>
79     </tr>
80     <tr>
81       <td class="titre">
82         Sujet :
83       </td>
84       <td><input type="text" name="sujet" value="{$smarty.request.sujet|default:"remplir le sujet ..."}" size=55 maxlength=70></td>
85     </tr>
86     <tr>
87       <td colspan="2">
88         <textarea name="body" cols="72" rows="25">{if $smarty.request.body}{$smarty.request.body}{else}  &lt;cher&gt; &lt;prenom&gt;,
89           
90   Nous avons le plaisir de t'adresser la lettre mensuelle du groupe {$asso.nom}.
91
92   (insérer le texte...)
93
94   Le bureau du groupe {$asso.nom}.{/if}
95 </textarea>
96       </td>
97     </tr>
98     <tr>
99       <td colspan="2" align="center"><input type="submit" name="send" value="Envoyer le message"></td>
100     </tr>
101   </table>
102 </form>
103
104 {* vim:set et sw=2 sts=2 sws=2: *}