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