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