real fix to the escape problem : quoted werent escaped correctly
[platal.git] / templates / emails / send.tpl
CommitLineData
0337d704 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
25<h1>
26 Envoyer un mail
27</h1>
28
29<ul>
30 <li>
31 Les destinataires sont simplement séparés par des virgules
32 </li>
33 <li>
34 Pense à te mettre en copie cachée du mail sinon tu n'auras aucun moyen de retrouver
35 le mail que tu envoies par cette page
36 </li>
37</ul>
38
39<script type="text/javascript">//<![CDATA[
40 {literal}
41 function check(form) {
42 if(form.sujet.value == "") {
43 form.sujet.focus();
44 return confirm ("Le sujet du mail est vide, veux tu continuer ?");
45 }
46 return true;
47 }
48 {/literal}
49//]]>
50</script>
51
52<form action="{$smarty.server.REQUEST_URI}" method="post" onsubmit="return check(this);">
53 <table class="bicol" cellpadding="2" cellspacing="0">
54 <tr>
55 <th colspan="2">Destinataires</th>
56 </tr>
57 <tr>
58 <td class="titre">de&nbsp;:</td>
59 <td>
60 <input type='hidden' name='signature' value='1' />
61 <input type='text' name='from' size='60' value='{if $smarty.request.from}
62{$smarty.request.from}
63{else}
ff5e5034 64"{$smarty.session.prenom} {$smarty.session.nom}" &lt;{$smarty.session.bestalias}@{#globals.mail.domain#}&gt;
0337d704 65{/if}' />
66 </td>
67 </tr>
68 <tr>
69 <td class="titre">à&nbsp;:</td>
70 <td>
71 <input type='text' name='to' size='60' value="{$smarty.request.to}" />
72 </td>
73 </tr>
74 <tr>
75 <td class="titre">copie&nbsp;:</td>
76 <td>
77 <input type='text' name='cc' size='60' value="{$smarty.request.cc}" />
78 </td>
79 </tr>
80 <tr>
81 <td class="titre">copie cachée&nbsp;:</td>
82 <td>
83 <input type='text' name='bcc' size='60' value="{$smarty.request.bcc}" />
84 </td>
85 </tr>
86 </table>
87
88 {if $contacts|@count}
89 <ul>
90 <li>
91 <p>
92 Tu peux également ajouter certains de tes contacts aux destinataires :
93 </p>
94 </li>
95 </ul>
96
97 <table class="bicol" cellpadding="2" cellspacing="0" summary="Destinataires parmi les contacts">
98{foreach key=key item=contact from=$contacts}
99{if $key is even}
100 <tr class="{cycle values="impair,pair"}">
101{/if}
102 <td>
103 <input type="checkbox" name="contacts[{$contact.forlife}]"
104 value="{$contact.prenom} {$contact.nom} &lt;{$contact.forlife}@{#globals.mail.domain#}&gt;"
105 {if $smarty.request.contacts && $smarty.request.contacts.forlife}checked="checked"{/if} />
106 <a href="{"fiche.php"|url}?user={$contact.forlife}" class="popup2">{$contact.prenom} {$contact.nom}</a> (X{$contact.promo})
107 </td>
108{if $key is odd}
109 </tr>
110{/if}
111{/foreach}
112{if $key is even}
113 <td></td>
114 </tr>
115{/if}
116 </table>
117{/if}
118
119 <ul>
120 <li>
121 Ne mets que du texte dans le contenu, pas de tags HTML
122 </li>
123 <li>
124 Il n'est pas possible d'envoyer un fichier en attachement
125 </li>
126 </ul>
127
128 <table class="bicol" cellspacing="0" cellpadding="2" summary="Corps du message">
129 <tr>
130 <th>sujet</th>
131 </tr>
132 <tr>
133 <td class="center">
134 <input type='text' name='sujet' size='75' value="{$smarty.request.sujet}" />
135 </td>
136 </tr>
137 <tr>
138 <th>
139 Corps du mail
140 </th>
141 </tr>
142 <tr>
143 <td class="center">
144 <textarea name='contenu' rows="30" cols="75">
145{$smarty.request.contenu}
146{if !$smarty.request.contenu}
147--
148{$smarty.session.prenom} {$smarty.session.nom}
149{/if}</textarea>
150 </td>
151 </tr>
152 <tr>
153 <td class="center">
154 <input type="submit" name="submit" value="Envoyer" />
155 </td>
156 </tr>
157 </table>
158</form>
159
160
161{* vim:set et sw=2 sts=2 sws=2: *}