Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 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 | ||
3eb25eb3 | 23 | {include file="lists/header_listes.tpl" on=moderate} |
0337d704 | 24 | |
25 | <h1> | |
a7de4ef7 | 26 | Inscriptions en attente de modération |
0337d704 | 27 | </h1> |
28 | ||
29 | {if $subs|@count} | |
30 | <table class='bicol' cellpadding='0' cellspacing='0'> | |
31 | <tr> | |
32 | <th>Nom</th> | |
33 | <th>Adresse</th> | |
34 | <th></th> | |
35 | </tr> | |
36 | {foreach from=$subs item=s} | |
37 | <tr class='{cycle values="pair,impair"}'> | |
38 | <td>{$s.name}{if $s.login} | |
7b2413f6 | 39 | <a href="profile/{$s.login}" class="popup2">{* |
7ac1ef77 | 40 | *}{icon name=user_suit title="Afficher la fiche"}</a> |
0337d704 | 41 | {/if} |
42 | </td> | |
43 | <td>{$s.addr}</td> | |
44 | <td class='action'> | |
2669eb7d | 45 | <a href='{$platal->pl_self(1)}?sadd={$s.id}&token={xsrf_token}'>{icon name=add title="Valider l'inscription"}</a> |
0f5c3d5c | 46 | <a href='{$platal->pl_self(1)}?sid={$s.id}'>{icon name=delete title="Refuser l'inscription"}</a> |
0337d704 | 47 | </td> |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
51 | {else} | |
b11cf21e | 52 | <p>Il n'y a pas d'inscriptions en attente de modération.</p> |
0337d704 | 53 | {/if} |
54 | ||
55 | <h1> | |
faefdbb7 | 56 | Emails en attente de modération |
0337d704 | 57 | </h1> |
58 | ||
59 | {if $mails|@count} | |
60 | <ul> | |
61 | <li> | |
faefdbb7 | 62 | <strong>{icon name=add}accepter :</strong> l'email est immédiatement libéré, et envoyé à la |
0337d704 | 63 | liste. |
64 | </li> | |
65 | <li> | |
faefdbb7 | 66 | <strong>{icon name=magnifier}refuser :</strong> pour refuser un email, suivre le lien {icon name=magnifier} et |
0337d704 | 67 | remplir le formulaire en bas de page. |
68 | </li> | |
69 | <li> | |
faefdbb7 | 70 | <strong>{icon name=delete}spam :</strong> l'email est effacé sans autre forme de procès. |
2eb2747c | 71 | N'utiliser <strong>QUE</strong> pour les virus et les emails indésirables.<br/> |
0337d704 | 72 | </li> |
73 | </ul> | |
0f5c3d5c | 74 | <p> |
a7de4ef7 | 75 | S'il y a trop d'indésirables, il est probablement plus rapide pour la suite de les |
76 | jeter directement et non de les modérer en modifant le réglage de | |
717b9fa7 | 77 | l'<a href="{$platal->ns}lists/options/{$platal->argv[1]}#antispam">antispam</a>. |
0f5c3d5c | 78 | </p> |
0337d704 | 79 | |
d6f36eda FB |
80 | <script type="text/javascript">//<![CDATA[ |
81 | {literal} | |
82 | var toggleState = false; | |
83 | function toggleAll() { | |
84 | toggleState = !toggleState; | |
85 | var boxes = $(":checkbox.moderate_email"); | |
86 | if (toggleState) { | |
87 | boxes.attr("checked", "checked"); | |
88 | } else { | |
89 | boxes.removeAttr("checked"); | |
90 | } | |
91 | } | |
92 | {/literal} | |
93 | //]]></script> | |
94 | ||
0f5c3d5c | 95 | <form method="post" action="{$platal->pl_self(1)}"> |
2669eb7d | 96 | {xsrf_token_field} |
717b9fa7 FB |
97 | {if $with_fromx} |
98 | <table class="bicol" style="margin-bottom: 1ex"> | |
99 | <tr> | |
100 | <th colspan="2"></th> | |
faefdbb7 | 101 | <th>Email</th> |
717b9fa7 FB |
102 | <th>Infos</th> |
103 | <th colspan="2"></th> | |
104 | </tr> | |
105 | <tr> | |
106 | <th class="smaller" colspan="6"> | |
faefdbb7 | 107 | Les emails suivants proviennent d'adresses identifiées comme étant celles de camarades. |
717b9fa7 FB |
108 | </th> |
109 | </tr> | |
110 | {foreach from=$mails item=m name=mail} | |
111 | {if $m.fromx} | |
112 | <tr class='{cycle values="pair,impair"}'> | |
1d08054d | 113 | <td class="checkboxToggle"> |
717b9fa7 FB |
114 | <input type="checkbox" name="select_mails[{$m.id}]" {if $smarty.foreach.mail.total eq 1}checked="checked"{/if}/> |
115 | </td> | |
1d08054d | 116 | <td class="checkboxToggle"> |
717b9fa7 FB |
117 | <strong>De :</strong><br /> |
118 | <strong>Sujet :</strong> | |
119 | </td> | |
1d08054d | 120 | <td class="checkboxToggle"> |
717b9fa7 FB |
121 | {$m.sender}<br /> |
122 | {$m.subj|hdc|smarty:nodefaults} | |
123 | </td> | |
1d08054d | 124 | <td class='right checkboxToggle'> |
717b9fa7 FB |
125 | <small>le {$m.stamp|date_format:"%x"} à {$m.stamp|date_format:"%X"}<br /> |
126 | {$m.size} octets</small> | |
127 | </td> | |
128 | <td class='action'> | |
2669eb7d | 129 | <a href='{$platal->pl_self(1)}?mid={$m.id}&mok=1&token={xsrf_token}'>{icon name=add title="Accepter le message"}</a> |
717b9fa7 FB |
130 | </td> |
131 | <td class='action'> | |
132 | <a href='{$platal->pl_self(1)}?mid={$m.id}'>{icon name=magnifier title="Voir le message"}</a><br/> | |
2669eb7d | 133 | <a href='{$platal->pl_self(1)}?mid={$m.id}&mdel=1&token={xsrf_token}'>{icon name=delete title="Spam !"}</a> |
717b9fa7 FB |
134 | </td> |
135 | </tr> | |
136 | {/if} | |
137 | {/foreach} | |
138 | </table> | |
139 | {/if} | |
140 | ||
141 | {if $with_nonfromx} | |
0337d704 | 142 | <table class='bicol' cellpadding='0' cellspacing='0'> |
143 | <tr> | |
d6f36eda FB |
144 | <th> |
145 | <a href="javascript:toggleAll()">{icon name="arrow_refresh" title="Tout (dé)cocher"}</a> | |
146 | </th> | |
147 | <th></th> | |
faefdbb7 | 148 | <th>Email</th> |
58e231db | 149 | <th>Infos</th> |
150 | <th colspan="2"></th> | |
0337d704 | 151 | </tr> |
b85de006 | 152 | {foreach from=$mails item=m name=mail} |
717b9fa7 | 153 | {if !$m.fromx} |
0337d704 | 154 | <tr class='{cycle values="pair,impair"}'> |
1d08054d | 155 | <td class="checkboxToggle"> |
d6f36eda | 156 | <input type="checkbox" class="moderate_email" name="select_mails[{$m.id}]" {if $smarty.foreach.mail.total eq 1}checked="checked"{/if}/> |
0f5c3d5c | 157 | </td> |
1d08054d | 158 | <td class='checkboxToggle'> |
58e231db | 159 | <strong>De :</strong><br /> |
160 | <strong>Sujet :</strong> | |
161 | </td> | |
1d08054d | 162 | <td class='checkboxToggle'> |
58e231db | 163 | {$m.sender}<br /> |
5fb22b39 | 164 | {$m.subj|hdc|smarty:nodefaults} |
58e231db | 165 | </td> |
1d08054d | 166 | <td class='right checkboxToggle'> |
5fb22b39 | 167 | <small>le {$m.stamp|date_format:"%x"} à {$m.stamp|date_format:"%X"}<br /> |
58e231db | 168 | {$m.size} octets</small> |
169 | </td> | |
170 | <td class='action'> | |
2669eb7d | 171 | <a href='{$platal->pl_self(1)}?mid={$m.id}&mok=1&token={xsrf_token}'>{icon name=add title="Accepter le message"}</a> |
58e231db | 172 | </td> |
0337d704 | 173 | <td class='action'> |
0f5c3d5c | 174 | <a href='{$platal->pl_self(1)}?mid={$m.id}'>{icon name=magnifier title="Voir le message"}</a><br/> |
2669eb7d | 175 | <a href='{$platal->pl_self(1)}?mid={$m.id}&mdel=1&token={xsrf_token}'>{icon name=delete title="Spam !"}</a> |
58e231db | 176 | </td> |
0337d704 | 177 | </tr> |
717b9fa7 | 178 | {/if} |
0337d704 | 179 | {/foreach} |
180 | </table> | |
717b9fa7 FB |
181 | {/if} |
182 | ||
1d08054d OLF |
183 | <script type="text/javascript">//<![CDATA[ |
184 | {literal} | |
185 | $('.checkboxToggle').click(function (event) | |
186 | { | |
187 | // Don't uncheck the checkbox when clicking it | |
188 | if (event.target.tagName === 'INPUT') { | |
189 | return; | |
190 | } | |
aab2ffdd | 191 | |
1d08054d | 192 | var checkbox = $(this).parent().find(':checkbox'); |
aab2ffdd | 193 | |
1d08054d | 194 | checkbox = checkbox.attr('checked', !checkbox.attr('checked')); |
aab2ffdd | 195 | |
1d08054d OLF |
196 | event.stopPropagation(); |
197 | }); | |
198 | {/literal} | |
199 | //]]></script> | |
200 | ||
5acaf897 | 201 | <p class="center desc"> |
faefdbb7 | 202 | Utilise ces boutons pour appliquer une action à tous les emails sélectionnés.<br /> |
0f5c3d5c | 203 | <input type="hidden" name="moderate_mails" value="1" /> |
717b9fa7 | 204 | <input type="submit" name="mok" value="Accepter" /> |
414e606a | 205 | <input type="submit" name="mdel" value="Spam !" /> |
0f5c3d5c | 206 | </p> |
207 | </form> | |
0337d704 | 208 | {else} |
faefdbb7 | 209 | <p>Il n'y a pas d'emails en attente de modération.</p> |
0337d704 | 210 | {/if} |
211 | ||
212 | ||
a7de4ef7 | 213 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |