Backport
[platal.git] / templates / listes / moderate_mail.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
23
24<h1>
25 Propriétés du mail en attente
26</h1>
27
28<table class='tinybicol' cellpadding='0' cellspacing='0'>
29 <tr>
30 <td class='titre'>émetteur</td>
c8529706 31 <td>{mailto address=$mail.sender}</td>
0337d704 32 </tr>
33 <tr>
34 <td class='titre'>sujet</td>
c8529706 35 <td>{$mail.subj|hdc}</td>
0337d704 36 </tr>
37 <tr>
38 <td class='titre'>taille</td>
39 <td>{$mail.size} octets</td>
40 </tr>
41 <tr>
42 <td class='titre'>date</td>
43 <td>{$mail.stamp|date_format:"%X le %x"}</td>
44 </tr>
45</table>
46
47<h1>
48 Contenu du mail en attente
49</h1>
50
ae0508cb 51{if $mail.parts_plain|@count}
0337d704 52<table class='bicol' cellpadding='0' cellspacing='0'>
ae0508cb 53 {foreach from=$mail.parts_plain item=part key=i}
0337d704 54 <tr><th>Partie n°{$i}</th></tr>
55 <tr class='{cycle values="impair,pair"}'>
56 <td><tt>{$part|qpd|nl2br}</tt></td>
57 </tr>
58 {/foreach}
59</table>
60<br />
61{/if}
62
ae0508cb 63{if $mail.parts_html|@count}
64<table class='bicol' cellpadding='0' cellspacing='0'>
65 {foreach from=$mail.parts_html item=part key=i}
66 <tr><th>Partie n°{$i}</th></tr>
67 <tr class='{cycle values="impair,pair"}'>
68 <td><tt>{$part|qpd|clean_html|nl2br}</tt></td>
69 </tr>
70 {/foreach}
71</table>
72<br />
73{/if}
74
d1ebc57a 75<form method='post' action='{$platal->pl_self(1)}'>
0337d704 76 <table class='tinybicol' cellpadding='0' cellspacing='0'>
77 <tr>
78 <th class='titre'>Modérer le mail</th>
79 </tr>
80 <tr>
81 <td>raison (pour les refus) :
c6eb6822 82 <textarea cols='50' rows='10' name='reason'>
83--
84{$smarty.session.prenom} {$smarty.session.nom} (X{$smarty.session.promo})
85</textarea>
0337d704 86 </td>
87 </tr>
88 <tr>
89 <td class='center'>
90 <input type='hidden' name='mid' value='{$smarty.get.mid}' />
91 <input type='submit' name='mok' value='Accepter !' />&nbsp;
92 <input type='submit' name='mno' value='Refuser !' />&nbsp;
93 <input type='submit' name='mdel' value='Détruire !' style='color:red;' />
94 </td>
95 </tr>
96 </table>
97 <ul>
98 <li>« Refuser » rejette le mail avec un message à son auteur (celui que tu tapes dans le cadre)</li>
99 <li>
100 Détruire efface le mail sans autre forme de procès, et c'est à utiliser UNIQUEMENT pour les
101 virus et les courriers indésirables
102 </li>
103 </ul>
104</form>
105<p>
106En cas de refus, le mail envoyé à l'auteur du mail que tu modères actuellement sera de la forme suivante :
107</p>
108<pre>{$msg}</pre>
109
110
111{* vim:set et sw=2 sts=2 sws=2: *}