0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
5ddeb07c |
3 | {* Copyright (C) 2003-2007 Polytechnique.org *} |
0337d704 |
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"> |
a7de4ef7 |
27 | Ton message peut être personnalisé : si tu rentres les mots <cher>, <prenom>, |
28 | <nom>, 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. |
0337d704 |
30 | </p> |
31 | |
91a14f73 |
32 | <form action="{$platal->ns}mail" method="post" enctype="multipart/form-data"> |
0359898c |
33 | <table class='bicol'> |
0337d704 |
34 | <tr> |
35 | <th colspan="2">Ecrire un mail :</th> |
36 | </tr> |
37 | <tr> |
a7de4ef7 |
38 | <td class="titre">Expéditeur :</td> |
0337d704 |
39 | <td> |
40 | <input type="text" name="from" size="55" maxlength="70" |
41 | value="{if $smarty.request.from}{$smarty.request.from}{else}"{$smarty.session.prenom} {$smarty.session.nom}" <{$smarty.session.bestalias}@polytechnique.org>{/if}" /> |
42 | </td> |
43 | </tr> |
9898b36e |
44 | <tr> |
a7de4ef7 |
45 | <td class="titre">Répondre à :</td> |
9898b36e |
46 | <td> |
47 | <input type="text" name="replyto" size="55" maxlength="70" value="{$smarty.request.replyto}" /> |
48 | </td> |
49 | </tr> |
0337d704 |
50 | |
51 | <tr> |
52 | <th colspan="2">Destinataires</th> |
53 | </tr> |
54 | <tr valign="top"> |
55 | <td style='padding-left: 1em' class='titre'> |
0359898c |
56 | <em>annuaire</em> |
0337d704 |
57 | </td> |
58 | <td> |
06db561e |
59 | <input type="checkbox" name="membres[X]" value="1" {if $smarty.request.membres.X}checked="checked"{/if} /> |
a7de4ef7 |
60 | <em>écrire à tous les X de l'annuaire du groupe</em><br /> |
06db561e |
61 | <input type="checkbox" name="membres[ext]" value="1" {if $smarty.request.membres.ext}checked="checked"{/if} /> |
a7de4ef7 |
62 | <em>écrire à tous les extérieurs de l'annuaire du groupe</em><br /> |
06db561e |
63 | <input type="checkbox" name="membres[groupe]" value="1" {if $smarty.request.membres.groupe}checked="checked"{/if} /> |
a7de4ef7 |
64 | <em>écrire à toutes les personnes morales de l'annuaire du groupe</em> |
06db561e |
65 | <a href="{$platal->ns}annuaire" class='popup'>(voir annuaire)</a><br /> |
0337d704 |
66 | </td> |
67 | </tr> |
68 | |
69 | {foreach from=$listes item=l} |
70 | <tr> |
71 | <td style='padding-left: 1em' class='titre'> |
0359898c |
72 | {$l.list} |
0337d704 |
73 | </td> |
74 | <td> |
75 | <input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} /> |
76 | {$l.addr} |
7b2413f6 |
77 | <a href="{$platal->ns}lists/admin/{$l.list}" class="popup">(voir composition)</a> |
0337d704 |
78 | </td> |
79 | </tr> |
80 | {/foreach} |
81 | |
0337d704 |
82 | <tr> |
83 | <th colspan="2">Contenu du mail</th> |
84 | </tr> |
85 | <tr> |
86 | <td class="titre"> |
87 | Sujet : |
88 | </td> |
89 | <td><input type="text" name="sujet" value="{$smarty.request.sujet|default:"remplir le sujet ..."}" size=55 maxlength=70></td> |
90 | </tr> |
91 | <tr> |
648020d2 |
92 | <td colspan="2" class="center"> |
93 | <textarea name="body" cols="72" rows="25"> |
94 | {if $smarty.request.body} |
95 | {$smarty.request.body} |
96 | {else} |
97 | <cher> <prenom>, |
0337d704 |
98 | |
648020d2 |
99 | Nous avons le plaisir de t'adresser la lettre mensuelle du groupe {$asso.nom}. |
0337d704 |
100 | |
a7de4ef7 |
101 | (insérer le texte...) |
0337d704 |
102 | |
648020d2 |
103 | Le bureau du groupe {$asso.nom}. |
104 | {/if} |
105 | </textarea> |
0337d704 |
106 | </td> |
107 | </tr> |
108 | <tr> |
91a14f73 |
109 | <td class="titre"> |
9da274fa |
110 | {icon name=email_attach} Attacher un fichier |
91a14f73 |
111 | </td> |
112 | <td> |
113 | <input type="file" name="uploaded" /> |
114 | </td> |
115 | </tr> |
116 | <tr> |
0337d704 |
117 | <td colspan="2" align="center"><input type="submit" name="send" value="Envoyer le message"></td> |
118 | </tr> |
119 | </table> |
120 | </form> |
121 | |
a7de4ef7 |
122 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |