From f997632b1e20725030452af20721328624be6d22 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Feb 2004 01:38:07 +0000 Subject: [PATCH] Application du nouveau style des boutons d'actions sur la page de fiche des produits. --- htdocs/product/fiche.php | 47 ++++++++++++---------------------------- 1 file changed, 14 insertions(+), 33 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 3e7f6baa755..165ac75731a 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -270,7 +270,7 @@ else print "Libellé$product->libelle"; print 'Statistiques'; print 'Prix de vente'.price($product->price).''; - print ''; + print ''; print 'Fournisseurs [Ajouter]'; $sql = "SELECT s.nom, s.idp"; @@ -350,7 +350,7 @@ else if ($action == 'edit_price' && $user->rights->produit->creer) { - print '
Nouveau prix

'; + print '
Nouveau prix
'; print "
\n"; print ''; print ''; @@ -496,50 +496,31 @@ else /* */ /* ************************************************************************** */ -print '
'; -if ($action == '') -{ - if ($user->rights->produit->modifier || $user->rights->produit->creer) - { - print ''; - } - else - { - print ''; - } -} -else -{ - print ''; -} -print ''; +print "
\n"; if ($action == '') { if ($user->rights->produit->modifier || $user->rights->produit->creer) { - print '
'; - } - else - { - print ''; + print 'Changer le prix'; } } -else + +if ($action == '') { - print ''; + if ($user->rights->produit->modifier || $user->rights->produit->creer) + { + print 'Editer'; + } } -print ''; if ($product->type == 0 && defined("MAIN_MODULE_STOCK")) { - print ''; -} -else -{ - print ''; + print 'Correction stock'; } -print '
Changer le prix---Editer---Correction stock-

'; +print ""; + + if ($id && $action == '' && $product->envente) {