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 '
'; }