Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
7a3f546b | 23 | {include wiki=Xorg.Antispam part=1} |
0337d704 | 24 | |
b9dcbddd | 25 | <script type="text/javascript">//<![CDATA[ |
26 | {literal} | |
4171c0bf | 27 | $(function() { |
b0e935d6 | 28 | var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; |
3b346b99 | 29 | var msg = "Le changement de réglage de l'antispam a bien été effectué pour toutes tes redirections."; |
b4503762 | 30 | $(':radio[name=filter_status]').change(function() { |
3b346b99 SJ |
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') + "."); | |
b0e935d6 FB |
49 | }); |
50 | }); | |
b9dcbddd | 51 | {/literal} |
21b1bb6e | 52 | //]]></script> |
3b346b99 SJ |
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} /> | |
53efa85f | 61 | <label for="s0"><strong>(0) fais confiance à Polytechnique.org et utilise le réglage recommandé</strong> (actuellement, le niveau {#globals.mail.antispam#})</label> |
3b346b99 SJ |
62 | <br /> |
63 | <input id="s1" type="radio" name="filter_status" value="1" {if $single_state && $filter eq 1}checked="checked"{/if} /> | |
64 | <label for="s1">(1) le filtre anti-spam n'agit pas sur tes emails</label> | |
65 | <br /> | |
66 | <input id="s2" type="radio" name="filter_status" value="2" {if $single_state && $filter eq 2}checked="checked"{/if} /> | |
67 | <label for="s2">(2) le filtre anti-spam marque les emails</label> | |
68 | <br /> | |
69 | <input id="s3" type="radio" name="filter_status" value="3" {if $single_state && $filter eq 3}checked="checked"{/if} /> | |
70 | <label for="s3">(3) le filtre anti-spam marque les emails, et élimine les spams avec des notes les plus hautes</label> | |
71 | <br /> | |
72 | <input id="s4" type="radio" name="filter_status" value="4" {if $single_state && $filter eq 4}checked="checked"{/if} /> | |
73 | <label for="s4">(4) le filtre anti-spam élimine les emails détectés comme spams</label> | |
74 | </fieldset> | |
75 | ||
76 | <div id="bogo-msg" style="position:absolute;"></div><br /> | |
77 | ||
78 | {if !$single_redirection} | |
79 | <h1>Réglages avancés</h1> | |
80 | <p> | |
81 | Si tu le souhaites, tu peux adapter le niveau de ton antispam pour chacune de tes redirections. Par exemple, | |
82 | tu peux éliminer tous les spams (niveau 4) vers ton adresse professionnelle, mais ne faire que marquer comme | |
83 | spams (niveau 2) de tels emails vers ton adresse personnelle. | |
84 | </p> | |
85 | ||
86 | <div id="bogo-msg-mult" style="position:absolute;"></div><br /> | |
87 | ||
4e9c61ac SJ |
88 | <table class="bicol"> |
89 | <tr> | |
90 | <th>Redirection</th> | |
91 | <th>Niveau recommandé</th> | |
92 | <th>Niveau 1</th> | |
93 | <th>Niveau 2</th> | |
94 | <th>Niveau 3</th> | |
95 | <th>Niveau 4</th> | |
96 | </tr> | |
97 | {foreach from=$redirections key=i item=redirection} | |
98 | <tr> | |
99 | <td class="titre"> | |
100 | {$redirection.redirect|replace:'googleapps':'Compte Google Apps'} | |
101 | <input id="bogo_{$i}" type="hidden" value="{$redirection.redirect}" /> | |
102 | </td> | |
103 | <td class="center"> | |
104 | <input id="s0_{$i}" type="radio" name="filter_status_{$i}" value="0" {if $redirection.filter eq 0}checked="checked"{/if} /> | |
105 | </td> | |
106 | <td class="center"> | |
107 | <input id="s1_{$i}" type="radio" name="filter_status_{$i}" value="1" {if $redirection.filter eq 1}checked="checked"{/if} /> | |
108 | </td> | |
109 | <td class="center"> | |
110 | <input id="s2_{$i}" type="radio" name="filter_status_{$i}" value="2" {if $redirection.filter eq 2}checked="checked"{/if} /> | |
111 | </td> | |
112 | <td class="center"> | |
113 | <input id="s3_{$i}" type="radio" name="filter_status_{$i}" value="3" {if $redirection.filter eq 3}checked="checked"{/if} /> | |
114 | </td> | |
115 | <td class="center"> | |
116 | <input id="s4_{$i}" type="radio" name="filter_status_{$i}" value="4" {if $redirection.filter eq 4}checked="checked"{/if} /> | |
117 | </td> | |
118 | </tr> | |
119 | {/foreach} | |
120 | </table> | |
121 | ||
122 | <h2>Légende</h2> | |
123 | <ul> | |
124 | <li> | |
125 | <strong>Niveau recommandé : fais confiance à Polytechnique.org et utilise le réglage que nous recommandons</strong> | |
126 | (actuellement, le niveau {#globals.mail.antispam#}). | |
127 | </li> | |
128 | <li> | |
129 | Niveau 1 : le filtre anti-spam n'agit pas sur tes emails. | |
130 | </li> | |
131 | <li> | |
132 | Niveau 2 : le filtre anti-spam marque les emails. | |
133 | </li> | |
134 | <li> | |
135 | Niveau 3 : le filtre anti-spam marque les emails, et élimine les spams avec des notes les plus hautes. | |
136 | </li> | |
137 | <li> | |
138 | Niveau 4 : le filtre anti-spam élimine les emails détectés comme spams. | |
139 | </li> | |
140 | </ul> | |
3b346b99 | 141 | {/if} |
b9dcbddd | 142 | |
7a3f546b | 143 | {include wiki=Xorg.Antispam part=2} |
0337d704 | 144 | |
a7de4ef7 | 145 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |