1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 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="{$smarty.server.PHP_SELF}" 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}" />
46 <th colspan="2">Destinataires</th>
49 <td style='padding-left: 1em' class='titre'>
50 * <em>membres</em>
53 <input type="checkbox" name="membres" value="1" {if $smarty.request.membres}checked="checked"{/if} />
54 <em>écrit à tous les membres du groupe</em> <a href="annuaire.php" class='popup'>(voir membres)</a>
58 {foreach from=$listes item=l}
60 <td style='padding-left: 1em' class='titre'>
64 <input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} />
66 <a href="listes-admin.php?liste={$l.list}" class="popup">(voir composition)</a>
72 {foreach from=$alias item=a}
73 {assign var=b value=$a|regex_replace:"!@.*!":""}
75 <td style='padding-left: 1em' class='titre'>
79 <input type="checkbox" name="al[{$b}]" value="1" {if $smarty.request.al[$b]}checked="checked"{/if} />
80 {$a} <a href="alias-admin.php?liste={$b}" class='popup'>(voir composition)</a>
87 <th colspan="2">Contenu du mail</th>
93 <td><input type="text" name="sujet" value="{$smarty.request.sujet|default:"remplir le sujet ..."}" size=55 maxlength=70></td>
97 <textarea name="body" cols="72" rows="25">{if $smarty.request.body}{$smarty.request.body}{else} <cher> <prenom>,
99 Nous avons le plaisir de t'adresser la lettre mensuelle du groupe {$asso.nom}.
101 (insérer le texte...)
103 Le bureau du groupe {$asso.nom}.{/if}
108 <td colspan="2" align="center"><input type="submit" name="send" value="Envoyer le message"></td>
113 {* vim:set et sw=2 sts=2 sws=2: *}