From 9cbb97c51f91232e7b4bb82169dddfa4f9310397 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 28 Jun 2003 14:08:22 +0000 Subject: [PATCH] =?UTF-8?q?Utilisation=20de=20la=20nouvelle=20fonction=20p?= =?UTF-8?q?our=20afficher=20le=20r=E9sultat=20de=20l'action=20dans=20la=20?= =?UTF-8?q?fiche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index 553c9a9c927..39c6903e880 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -26,6 +26,7 @@ require("../propal.class.php3"); llxHeader(); $db = new Db(); +$mesg = ''; if ($action == 'add') { @@ -49,10 +50,11 @@ if ($action == 'addinpropal') $propal->insert_product($id, $HTTP_POST_VARS["qty"]); $action = ''; + $mesg = 'Produit ajouté à la proposition '.$propal->ref; } -if ($action == 'update') +if ($action == 'update' && $cancel <> 'Annuler') { $product = new Product($db); @@ -64,6 +66,7 @@ if ($action == 'update') $product->update($id, $user); $action = ''; + $mesg = 'Fiche mise à jour'; } /* * @@ -71,7 +74,6 @@ if ($action == 'update') */ if ($action == 'create') { - print "
\n"; print ""; @@ -102,7 +104,7 @@ else if ( $result ) { - print '
Fiche produit : '.$product->ref.'

'; + print_fiche_titre('Fiche produit : '.$product->ref, $mesg); print ''; print ""; @@ -125,7 +127,7 @@ else print '
Edition de la fiche produit : '.$product->ref.'

'; print "\n"; - print ""; + print ''; print '
'; print ''; @@ -139,7 +141,8 @@ else print '"; - print ''; + print ''; print '
Référence
 
  '; + print '
'; print '
'; }