New smarty plugin {javascript} to load js-files on demand
[platal.git] / templates / emails / antispam.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 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 file=../spool/wiki.d/cache_Xorg.Antispam.tpl part=1 included=1}
24
25 {javascript name=ajax}
26 <script type="text/javascript">//<![CDATA[
27   {literal}
28   function bogoUpdated()
29   {
30     showTempMessage('bogo-msg', "Le changement de réglage de l'antispam a bien été effectué.", true);
31   }
32   {/literal}
33 </script>
34   <fieldset>
35     <legend><strong>Choisis ton propre réglage :</strong></legend>
36     <input id='s0' type='radio' name='statut_filtre' value='0' {if $filtre eq 0}checked="checked"{/if} onclick="Ajax.update_html(null, '{$globals->baseurl}/emails/antispam/'+this.value, bogoUpdated)" />
37     <label for='s0'>(1) le filtre anti-spam n'agit pas sur tes mails</label>
38     <br />
39     <input id='s1' type='radio' name='statut_filtre' value='1' {if $filtre eq 1}checked="checked"{/if} onclick="Ajax.update_html(null, '{$globals->baseurl}/emails/antispam/'+this.value, bogoUpdated)" />
40     <label for='s1'>(2) le filtre anti-spam marque les mails</label>
41     <br />
42     <input id='s2' type='radio' name='statut_filtre' value='2' {if $filtre eq 2}checked="checked"{/if} onclick="Ajax.update_html(null, '{$globals->baseurl}/emails/antispam/'+this.value, bogoUpdated)" />
43     <label for='s2'>(3) le filtre anti-spam marque les mails, et élimine les spams avec des notes les plus hautes</label>
44     <br />
45     <input id='s3' type='radio' name='statut_filtre' value='3' {if $filtre eq 3}checked="checked"{/if} onclick="Ajax.update_html(null, '{$globals->baseurl}/emails/antispam/'+this.value, bogoUpdated)" />
46     <label for='s3'>(4) le filtre anti-spam élimine les mails détectés comme spams</label>
47   </fieldset>
48
49   <div id="bogo-msg" style="position:absolute;"></div><br />
50
51 {include file=../spool/wiki.d/cache_Xorg.Antispam.tpl part=2 included=1}
52
53 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}