vire un bouton valider inutile
authorPascal Corpet <pascal.corpet@m4x.org>
Sat, 28 May 2005 17:10:05 +0000 (17:10 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:03 +0000 (23:29 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-660

htdocs/antispam.php
templates/antispam.tpl

index b835c73..4c61a5a 100644 (file)
@@ -25,7 +25,7 @@ require_once("emails.inc.php");
 
 $bogo = new Bogo(Session::getInt('uid'));
 
-if (Env::has('filtre') and Env::has('statut_filtre')) {
+if (Env::has('statut_filtre')) {
     $bogo->change(Session::getInt('uid'), Env::getInt('statut_filtre'));
 }
 
index ad39b29..922c3ca 100644 (file)
@@ -46,19 +46,14 @@ Trois r
     <tr>
       <td>
         <strong>Choisis ton propre réglage :</strong><br />
-                <input type='radio' name='statut_filtre' value='0' {if $filtre eq 0}checked="checked"{/if} />
+                <input type='radio' name='statut_filtre' value='0' {if $filtre eq 0}checked="checked"{/if} onchange='submit()' />
         (1) le filtre anti-spam est coupé<br />
-        <input type='radio' name='statut_filtre' value='1' {if $filtre eq 1}checked="checked"{/if} />
+        <input type='radio' name='statut_filtre' value='1' {if $filtre eq 1}checked="checked"{/if} onchange='submit()' />
         (2) le filtre anti-spam est activé, et marque les mails<br />
-        <input type='radio' name='statut_filtre' value='2' {if $filtre eq 2}checked="checked"{/if} />
+        <input type='radio' name='statut_filtre' value='2' {if $filtre eq 2}checked="checked"{/if} onchange='submit()' />
         (3) le filtre anti-spam est activé, et élimine les mails détectés comme spams<br />
               </td>
     </tr>
-    <tr>
-      <td class="center">
-        <input type="submit" name="filtre" value="Valider le filtre anti-spam" />
-      </td>
-    </tr>
   </table>
 </form>