backport : demande de confirmation pour la suppression d'un evenement
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Feb 2006 23:59:13 +0000 (23:59 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Feb 2006 23:59:13 +0000 (23:59 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@242 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
htdocs.net/groupe/evt-modif.php
templates/xnet/groupe/evenements.tpl

index a3f0bce..2007b82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 ================================================================================
-VERSION 0.9.9                                                    08 Janvier 2005
+VERSION 0.9.10                                                   ??      2006
+
+From 0.9.8 Branch :
+
+    * Xnet :
+        - #393: Ask for confirmation to remove an event.                    -Car
+
+================================================================================
+VERSION 0.9.9                                                    08 Janvier 2006
 
 New :
 
index e56501f..c331916 100644 (file)
@@ -201,6 +201,8 @@ if (Env::has('sup') && $eid) {
     // delete the requests for payments
     require_once('validations.inc.php');
     $globals->xdb->execute("DELETE FROM requests WHERE type = 'paiements' AND data  LIKE {?}", PayReq::same_event($eid, $globals->asso('id')));
+    header("Location: evenements.php");
+    die();
 }
 
 if (!$get_form)
index c5f07df..8282772 100644 (file)
@@ -52,7 +52,7 @@ Ev
         {$e.intitule}
         {if $admin}
         <a href="evt-modif.php?mod=1&amp;eid={$e.eid}"><img src="{rel}/images/profil.png" title="Edition de l'événement" alt="Edition de l'événement" /></a>
-        <a href="evt-modif.php?sup=1&amp;eid={$e.eid}"><img src="{rel}/images/del.png" alt="Suppression de {$e.intitule}" title="Suppression de {$e.intitule}" /></a>
+        <a href="evt-modif.php?sup=1&amp;eid={$e.eid}" onclick="return confirm('Supprimer l\'événement effacera la liste des inscrits et des paiements.\n Es-tu sûr de vouloir supprimer l\'événement ?')"><img src="{rel}/images/del.png" alt="Suppression de {$e.intitule}" title="Suppression de {$e.intitule}" /></a>
         {/if}
       </th>
     </tr>