From bcfa691c1229705b3d977ceb9aa45b637b603781 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 May 2006 01:07:29 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Ajout=20bouton=20"annuler"=20sur=20page?= =?UTF-8?q?=20modif=20soci=E9t=E9=20pour=20ne=20rien=20modifier.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 1cd0c67a9c4..b43722ff6e8 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -143,6 +143,12 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) if ($_POST["action"] == 'update') { + if ($_POST["cancel"]) + { + Header("Location: soc.php?socid=".$socid); + exit; + } + $result = $soc->update($socid,$user); if ($result >= 0) { @@ -609,7 +615,11 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') $form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); print ''; - print ''; + print ''; + print ''; + print '   '; + print ''; + print ''; print ''; print '';