| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2011 Polytechnique.org *} |
| 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 | {include wiki=Xorg.Antispam part=1} |
| 24 | |
| 25 | <script type="text/javascript">//<![CDATA[ |
| 26 | {literal} |
| 27 | $(function() { |
| 28 | var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; |
| 29 | var msg = "Le changement de réglage de l'antispam a bien été effectué pour toutes tes redirections."; |
| 30 | $(':radio[name=filter_status]').change(function() { |
| 31 | var val = $(this).val(); |
| 32 | $(':radio[name*=filter_status_]').removeAttr('checked'); |
| 33 | $(':radio[name*=filter_status_]').attr('checked', function(i, v) { |
| 34 | if ($(this).val() == val) { |
| 35 | return 'checked'; |
| 36 | } |
| 37 | }); |
| 38 | $("#bogo-msg").successMessage(url + val, msg); |
| 39 | }); |
| 40 | }); |
| 41 | $(function() { |
| 42 | var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; |
| 43 | var msg = "Le changement de réglage de l'antispam a bien été effectué pour "; |
| 44 | $(':radio[name*=filter_status_]').change(function() { |
| 45 | var id = $(this).attr('name').replace('filter_status_', ''); |
| 46 | var redirection = $('#bogo_' + id).val(); |
| 47 | $(':radio[name=filter_status]').removeAttr('checked'); |
| 48 | $("#bogo-msg-mult").successMessage(url + $(this).val() + "/" + redirection, msg + redirection.replace('googleapps', 'ton compte Google Apps') + "."); |
| 49 | }); |
| 50 | }); |
| 51 | {/literal} |
| 52 | //]]></script> |
| 53 | <fieldset> |
| 54 | <legend><strong>Choisis ton propre réglage :</strong></legend> |
| 55 | {if !$single_state}<span class="erreur"> |
| 56 | Attention, tu as actuellement un réglage spécifique pour chacune de tes redirections. |
| 57 | Les modifications dans ce cadre sont globales et entraineront une uniformisation de |
| 58 | l'antispam pour toutes tes redirections au niveau demandé. |
| 59 | </span><br />{/if} |
| 60 | <input id="s0" type="radio" name="filter_status" value="0" {if $single_state && $filter eq 0}checked="checked"{/if} /> |
| 61 | <label for="s0"><strong>(0) fais confiance à Polytechnique.org et utilise le réglage recommandé</strong> |
| 62 | (actuellement, le niveau {#globals.mail.antispam#})</label> |
| 63 | <br /> |
| 64 | <input id="s1" type="radio" name="filter_status" value="1" {if $single_state && $filter eq 1}checked="checked"{/if} /> |
| 65 | <label for="s1">(1) le filtre anti-spam n'agit pas sur tes emails</label> |
| 66 | <br /> |
| 67 | <input id="s2" type="radio" name="filter_status" value="2" {if $single_state && $filter eq 2}checked="checked"{/if} /> |
| 68 | <label for="s2">(2) le filtre anti-spam marque les emails</label> |
| 69 | <br /> |
| 70 | <input id="s3" type="radio" name="filter_status" value="3" {if $single_state && $filter eq 3}checked="checked"{/if} /> |
| 71 | <label for="s3">(3) le filtre anti-spam marque les emails, et élimine les spams avec des notes les plus hautes</label> |
| 72 | <br /> |
| 73 | <input id="s4" type="radio" name="filter_status" value="4" {if $single_state && $filter eq 4}checked="checked"{/if} /> |
| 74 | <label for="s4">(4) le filtre anti-spam élimine les emails détectés comme spams</label> |
| 75 | </fieldset> |
| 76 | |
| 77 | <div id="bogo-msg" style="position:absolute;"></div><br /> |
| 78 | |
| 79 | {if !$single_redirection} |
| 80 | <h1>Réglages avancés</h1> |
| 81 | <p> |
| 82 | Si tu le souhaites, tu peux adapter le niveau de ton antispam pour chacune de tes redirections. Par exemple, |
| 83 | tu peux éliminer tous les spams (niveau 4) vers ton adresse professionnelle, mais ne faire que marquer comme |
| 84 | spams (niveau 2) de tels emails vers ton adresse personnelle. |
| 85 | </p> |
| 86 | |
| 87 | <div id="bogo-msg-mult" style="position:absolute;"></div><br /> |
| 88 | |
| 89 | <table class="bicol"> |
| 90 | <tr> |
| 91 | <th>Redirection</th> |
| 92 | <th>Niveau recommandé</th> |
| 93 | <th>Niveau 1</th> |
| 94 | <th>Niveau 2</th> |
| 95 | <th>Niveau 3</th> |
| 96 | <th>Niveau 4</th> |
| 97 | </tr> |
| 98 | {foreach from=$redirections key=i item=redirection} |
| 99 | <tr> |
| 100 | <td class="titre"> |
| 101 | {$redirection.redirect|replace:'googleapps':'Compte Google Apps'} |
| 102 | <input id="bogo_{$i}" type="hidden" value="{$redirection.redirect}" /> |
| 103 | </td> |
| 104 | <td class="center"> |
| 105 | <input id="s0_{$i}" type="radio" name="filter_status_{$i}" value="0" {if $redirection.filter eq 0}checked="checked"{/if} /> |
| 106 | </td> |
| 107 | <td class="center"> |
| 108 | <input id="s1_{$i}" type="radio" name="filter_status_{$i}" value="1" {if $redirection.filter eq 1}checked="checked"{/if} /> |
| 109 | </td> |
| 110 | <td class="center"> |
| 111 | <input id="s2_{$i}" type="radio" name="filter_status_{$i}" value="2" {if $redirection.filter eq 2}checked="checked"{/if} /> |
| 112 | </td> |
| 113 | <td class="center"> |
| 114 | <input id="s3_{$i}" type="radio" name="filter_status_{$i}" value="3" {if $redirection.filter eq 3}checked="checked"{/if} /> |
| 115 | </td> |
| 116 | <td class="center"> |
| 117 | <input id="s4_{$i}" type="radio" name="filter_status_{$i}" value="4" {if $redirection.filter eq 4}checked="checked"{/if} /> |
| 118 | </td> |
| 119 | </tr> |
| 120 | {/foreach} |
| 121 | </table> |
| 122 | |
| 123 | <h2>Légende</h2> |
| 124 | <ul> |
| 125 | <li> |
| 126 | <strong>Niveau recommandé : fais confiance à Polytechnique.org et utilise le réglage que nous recommandons</strong> |
| 127 | (actuellement, le niveau {#globals.mail.antispam#}). |
| 128 | </li> |
| 129 | <li> |
| 130 | Niveau 1 : le filtre anti-spam n'agit pas sur tes emails. |
| 131 | </li> |
| 132 | <li> |
| 133 | Niveau 2 : le filtre anti-spam marque les emails. |
| 134 | </li> |
| 135 | <li> |
| 136 | Niveau 3 : le filtre anti-spam marque les emails, et élimine les spams avec des notes les plus hautes. |
| 137 | </li> |
| 138 | <li> |
| 139 | Niveau 4 : le filtre anti-spam élimine les emails détectés comme spams. |
| 140 | </li> |
| 141 | </ul> |
| 142 | {/if} |
| 143 | |
| 144 | {include wiki=Xorg.Antispam part=2} |
| 145 | |
| 146 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |