1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 {include file="lists/header_listes.tpl" on=moderate}
26 Inscriptions en attente de modération
30 <table class='bicol' cellpadding='0' cellspacing='0'>
36 {foreach from=$subs item=s}
37 <tr class='{cycle values="pair,impair"}'>
38 <td>{$s.name}{if $s.login}
39 <a href="profile/{$s.login}" class="popup2">{*
40 *}{icon name=user_suit title="Afficher la fiche"}</a>
45 <a href='{$platal->pl_self(1)}?sadd={$s.id}&token={xsrf_token}'>{icon name=tick title="Valider l'inscription"}</a>
46 <a href='{$platal->pl_self(1)}?sid={$s.id}'>{icon name=delete title="Refuser l'inscription"}</a>
52 <p>Il n'y a pas d'inscriptions en attente de modération.</p>
56 Emails en attente de modération
62 <strong>{icon name=tick}accepter :</strong> l'email est immédiatement libéré, et envoyé à la
66 <strong>{icon name=magnifier}refuser :</strong> pour refuser un email, suivre le lien {icon name=magnifier} et
67 remplir le formulaire en bas de page.
70 <strong>{icon name=delete}spam :</strong> l'email est effacé sans autre forme de procès.
71 N'utiliser <strong>QUE</strong> pour les virus et les emails indésirables.<br/>
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
77 l'<a href="{$platal->ns}lists/options/{$platal->argv[1]}#antispam">antispam</a>.
80 <script type="text/javascript">//<![CDATA[
82 var toggleState = false;
83 function toggleAll() {
84 toggleState = !toggleState;
85 var boxes = $(":checkbox.moderate_email");
87 boxes.attr("checked", "checked");
89 boxes.removeAttr("checked");
95 <form method="post" action="{$platal->pl_self(1)}">
98 <table class="bicol" style="margin-bottom: 1ex">
100 <th colspan="2"></th>
103 <th colspan="2"></th>
106 <th class="smaller" colspan="6">
107 Les emails suivants proviennent d'adresses identifiées comme étant celles de camarades.
110 {foreach from=$mails item=m name=mail}
112 <tr class='{cycle values="pair,impair"}'>
113 <td class="checkboxToggle">
114 <input type="checkbox" name="select_mails[{$m.id}]" {if $smarty.foreach.mail.total eq 1}checked="checked"{/if}/>
116 <td class="checkboxToggle">
117 <strong>De :</strong><br />
118 <strong>Sujet :</strong>
120 <td class="checkboxToggle">
122 {$m.subj|hdc|smarty:nodefaults}
124 <td class='right checkboxToggle'>
125 <small>le {$m.stamp|date_format:"%x"} à {$m.stamp|date_format:"%X"}<br />
126 {$m.size} octets</small>
129 <a href='{$platal->pl_self(1)}?mid={$m.id}&mok=1&token={xsrf_token}'>{icon name=tick title="Accepter le message"}</a>
132 <a href='{$platal->pl_self(1)}?mid={$m.id}'>{icon name=magnifier title="Voir le message"}</a><br/>
133 <a href='{$platal->pl_self(1)}?mid={$m.id}&mdel=1&token={xsrf_token}'>{icon name=delete title="Spam !"}</a>
142 <table class='bicol' cellpadding='0' cellspacing='0'>
145 <a href="javascript:toggleAll()">{icon name="arrow_refresh" title="Tout (dé)cocher"}</a>
150 <th colspan="2"></th>
152 {foreach from=$mails item=m name=mail}
154 <tr class='{cycle values="pair,impair"}'>
155 <td class="checkboxToggle">
156 <input type="checkbox" class="moderate_email" name="select_mails[{$m.id}]" {if $smarty.foreach.mail.total eq 1}checked="checked"{/if}/>
158 <td class='checkboxToggle'>
159 <strong>De :</strong><br />
160 <strong>Sujet :</strong>
162 <td class='checkboxToggle'>
164 {$m.subj|hdc|smarty:nodefaults}
166 <td class='right checkboxToggle'>
167 <small>le {$m.stamp|date_format:"%x"} à {$m.stamp|date_format:"%X"}<br />
168 {$m.size} octets</small>
171 <a href='{$platal->pl_self(1)}?mid={$m.id}&mok=1&token={xsrf_token}'>{icon name=tick title="Accepter le message"}</a>
174 <a href='{$platal->pl_self(1)}?mid={$m.id}'>{icon name=magnifier title="Voir le message"}</a><br/>
175 <a href='{$platal->pl_self(1)}?mid={$m.id}&mdel=1&token={xsrf_token}'>{icon name=delete title="Spam !"}</a>
183 <script type="text/javascript">//<![CDATA[
185 $('.checkboxToggle').click(function (event)
187 // Don't uncheck the checkbox when clicking it
188 if (event.target.tagName === 'INPUT') {
192 var checkbox = $(this).parent().find(':checkbox');
194 checkbox = checkbox.attr('checked', !checkbox.attr('checked'));
196 event.stopPropagation();
201 <p class="center desc">
202 Utilise ces boutons pour appliquer une action à tous les emails sélectionnés.<br />
203 <input type="hidden" name="moderate_mails" value="1" />
204 <input type="submit" name="mok" value="Accepter" />
205 <input type="submit" name="mdel" value="Spam !" />
209 <p>Il n'y a pas d'emails en attente de modération.</p>
213 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}