1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
24 <h1>{$asso.nom} : Envoyer un mail</h1>
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.
32 <form action="{$platal->ns}mail" method="post">
35 <th colspan="2">Ecrire un mail :</th>
38 <td class="titre">Expéditeur :</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}" />
45 <td class="titre">Reply-To :</td>
47 <input type="text" name="replyto" size="55" maxlength="70" value="{$smarty.request.replyto}" />
52 <th colspan="2">Destinataires</th>
55 <td style='padding-left: 1em' class='titre'>
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="{$platal->ns}annuaire" class='popup'>(voir annuaire)</a>
64 {foreach from=$listes item=l}
66 <td style='padding-left: 1em' class='titre'>
70 <input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} />
72 <a href="{$platal->ns}lists/admin/{$l.list}" class="popup">(voir composition)</a>
78 <th colspan="2">Contenu du mail</th>
84 <td><input type="text" name="sujet" value="{$smarty.request.sujet|default:"remplir le sujet ..."}" size=55 maxlength=70></td>
87 <td colspan="2" class="center">
88 <textarea name="body" cols="72" rows="25">
89 {if $smarty.request.body}
90 {$smarty.request.body}
92 <cher> <prenom>,
94 Nous avons le plaisir de t'adresser la lettre mensuelle du groupe {$asso.nom}.
98 Le bureau du groupe {$asso.nom}.
104 <td colspan="2" align="center"><input type="submit" name="send" value="Envoyer le message"></td>
109 {* vim:set et sw=2 sts=2 sws=2: *}