From f913657cedacf2a493e407c92e88562635808725 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Thu, 29 Jun 2006 08:52:20 +0000 Subject: [PATCH] =?UTF-8?q?Rajout=20de=20la=20confirmation=20lors=20de=20l?= =?UTF-8?q?a=20suppression=20d'un=20type=20de=20compte,=20il=20manque=20la?= =?UTF-8?q?=20traduction,=20et=20peut=20etre=20que=20c'est=20mal=20formul?= =?UTF-8?q?=C3=83=C2=A9,=20mais=20le=20code=20est=20la=20References:=20#69?= =?UTF-8?q?9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/admin/adm_dodefquotas.php | 37 ++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/bureau/admin/adm_dodefquotas.php b/bureau/admin/adm_dodefquotas.php index 6c8f6acf..320060d8 100644 --- a/bureau/admin/adm_dodefquotas.php +++ b/bureau/admin/adm_dodefquotas.php @@ -46,14 +46,37 @@ if($_POST["action"] == "add") { } include("adm_defquotas.php"); } else if($_POST["action"] == "delete") { - if($_POST['type']) { - if($quota->deltype($_POST['type'])) { - $error=_("Account type"). " \"$type\" "._("deleted"); - } else { - $error=_("Account type"). " \"$type\" "._("could not be deleted"); + if($_POST["del_confirm"] == "y"){ + if($_POST['type']) { + if($quota->deltype($_POST['type'])) { + $error=_("Account type"). " \"$type\" "._("deleted"); + } else { + $error=_("Account type"). " \"$type\" "._("could not be deleted"); + } } + include("adm_defquotas.php"); + }else{ + include("head.php"); + ?> + + +

:

+ +
+ + " /> + +

+

+
+ " />   + " onclick="document.location='adm_defquotas.php';" /> +
+
+ + + \ No newline at end of file +?>