Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 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 | ||
faefdbb7 | 24 | <h1>{$asso.nom} : Envoyer un email</h1> |
0337d704 | 25 | |
26 | <p class="descr"> | |
e8439508 | 27 | Ton message peut être personnalisé : si tu rentres les mots <cher>, <prenom>, |
a7de4ef7 | 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> |
fdbeba4f | 31 | |
32 | <script type="text/javascript">//<![CDATA[ | |
33 | {literal} | |
34 | function updateWikiView(box) { | |
35 | if (!box.checked) { | |
36 | document.getElementById("preview_bt").style.display = "none"; | |
37 | document.getElementById("preview").style.display = "none"; | |
38 | } else { | |
39 | document.getElementById("preview_bt").style.display = ""; | |
40 | } | |
41 | } | |
42 | {/literal} | |
43 | //]]></script> | |
0337d704 | 44 | |
91a14f73 | 45 | <form action="{$platal->ns}mail" method="post" enctype="multipart/form-data"> |
e7fdf9dd | 46 | {xsrf_token_field} |
0359898c | 47 | <table class='bicol'> |
0337d704 | 48 | <tr> |
faefdbb7 | 49 | <th colspan="2">Écrire un email :</th> |
0337d704 | 50 | </tr> |
51 | <tr> | |
e8439508 | 52 | <td class="titre">Expéditeur :</td> |
0337d704 | 53 | <td> |
54 | <input type="text" name="from" size="55" maxlength="70" | |
55 | value="{if $smarty.request.from}{$smarty.request.from}{else}"{$smarty.session.prenom} {$smarty.session.nom}" <{$smarty.session.bestalias}@polytechnique.org>{/if}" /> | |
56 | </td> | |
57 | </tr> | |
9898b36e | 58 | <tr> |
e8439508 | 59 | <td class="titre">Répondre à :</td> |
9898b36e | 60 | <td> |
61 | <input type="text" name="replyto" size="55" maxlength="70" value="{$smarty.request.replyto}" /> | |
62 | </td> | |
63 | </tr> | |
0337d704 | 64 | |
65 | <tr> | |
66 | <th colspan="2">Destinataires</th> | |
67 | </tr> | |
68 | <tr valign="top"> | |
69 | <td style='padding-left: 1em' class='titre'> | |
0359898c | 70 | <em>annuaire</em> |
0337d704 | 71 | </td> |
72 | <td> | |
a44f405e SJ |
73 | <label><input type="checkbox" name="membres[X]" value="1" {if $smarty.request.membres.X}checked="checked"{/if} /> |
74 | <em>écrire à tous les X de l'annuaire du groupe</em></label><br /> | |
75 | <label><input type="checkbox" name="membres[ext]" value="1" {if $smarty.request.membres.ext}checked="checked"{/if} /> | |
76 | <em>écrire à tous les extérieurs de l'annuaire du groupe</em></label><br /> | |
77 | <label><input type="checkbox" name="membres[groupe]" value="1" {if $smarty.request.membres.groupe}checked="checked"{/if} /> | |
78 | <em>écrire à toutes les personnes morales de l'annuaire du groupe</label></em> | |
06db561e | 79 | <a href="{$platal->ns}annuaire" class='popup'>(voir annuaire)</a><br /> |
0337d704 | 80 | </td> |
81 | </tr> | |
82 | ||
83 | {foreach from=$listes item=l} | |
84 | <tr> | |
85 | <td style='padding-left: 1em' class='titre'> | |
0359898c | 86 | {$l.list} |
0337d704 | 87 | </td> |
88 | <td> | |
a44f405e SJ |
89 | <label><input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} /> |
90 | {$l.addr}</label> | |
7b2413f6 | 91 | <a href="{$platal->ns}lists/admin/{$l.list}" class="popup">(voir composition)</a> |
0337d704 | 92 | </td> |
93 | </tr> | |
94 | {/foreach} | |
95 | ||
0337d704 | 96 | <tr> |
faefdbb7 | 97 | <th colspan="2">Contenu de l'email</th> |
0337d704 | 98 | </tr> |
99 | <tr> | |
100 | <td class="titre"> | |
e8439508 | 101 | Sujet : |
0337d704 | 102 | </td> |
103 | <td><input type="text" name="sujet" value="{$smarty.request.sujet|default:"remplir le sujet ..."}" size=55 maxlength=70></td> | |
104 | </tr> | |
105 | <tr> | |
5b21237d | 106 | <td colspan="2" class="smaller"> |
a44f405e SJ |
107 | <input type="checkbox" name="wiki" value="1" checked="1" onchange="updateWikiView(this);" id="wiki_syntaxe"/> |
108 | <label for="wiki_syntaxe">activer </label><a href="wiki_help" class="popup3">la syntaxe wiki</a> | |
109 | <label for="wiki_syntaxe">pour le formattage du message</label> | |
5b21237d | 110 | </td> |
111 | </tr> | |
fdbeba4f | 112 | <tr id="preview" class="pair" style="display: none"> |
113 | <td colspan="2" id="mail_preview"> | |
114 | <div id="mail_preview"></div> | |
115 | <div class="center"><input type="submit" name="send" value="Envoyer le message"></div> | |
116 | </td> | |
117 | </tr> | |
5b21237d | 118 | <tr> |
648020d2 | 119 | <td colspan="2" class="center"> |
fdbeba4f | 120 | <textarea name="body" id="mail_text" cols="72" rows="25"> |
648020d2 | 121 | {if $smarty.request.body} |
122 | {$smarty.request.body} | |
123 | {else} | |
124 | <cher> <prenom>, | |
fdbeba4f | 125 | |
648020d2 | 126 | Nous avons le plaisir de t'adresser la lettre mensuelle du groupe {$asso.nom}. |
0337d704 | 127 | |
a7de4ef7 | 128 | (insérer le texte...) |
0337d704 | 129 | |
648020d2 | 130 | Le bureau du groupe {$asso.nom}. |
131 | {/if} | |
132 | </textarea> | |
0337d704 | 133 | </td> |
134 | </tr> | |
135 | <tr> | |
91a14f73 | 136 | <td class="titre"> |
9da274fa | 137 | {icon name=email_attach} Attacher un fichier |
91a14f73 | 138 | </td> |
139 | <td> | |
140 | <input type="file" name="uploaded" /> | |
141 | </td> | |
142 | </tr> | |
143 | <tr> | |
fdbeba4f | 144 | <td colspan="2" align="center"> |
145 | <input type="submit" name="preview" id="preview_bt" value="Aperçu" onclick="previewWiki('mail_text', 'mail_preview', true, 'preview'); return false;" /> | |
146 | <input type="submit" name="send" value="Envoyer le message" /> | |
147 | </td> | |
0337d704 | 148 | </tr> |
149 | </table> | |
150 | </form> | |
151 | ||
a7de4ef7 | 152 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |