From c8a5fd23190a7a9f2f2107de4b1c953bdc230859 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 13 Feb 2004 15:37:49 +0000 Subject: [PATCH] Nouveau look --- htdocs/commande/fiche.php | 47 +++++++++++---------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 59d19841b21..b43b74ba429 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -666,63 +666,42 @@ else */ if ($user->societe_id == 0 && $commande->statut < 3) { - print '

'; + print '

'; if ($commande->statut == 0 && $user->rights->commande->supprimer) { - print "
"; + print 'Supprimer'; } elseif ($commande->statut == 1 && abs($resteapayer) > 0 && $user->rights->commande->envoyer) { - print ""; - } - else - { - print ''; - } - - if ($commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) - { - print ''; - } - else - { - print ''; + print 'Envoyer'; } - print ''; - print ''; + if ($commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) + { + print 'Expédier'; + } + if ($commande->statut == 0) { if ($user->rights->commande->valider) { - print ""; - } - else - { - print ''; + print 'Valider'; } } - elseif ($commande->statut == 1) + + if ($commande->statut == 1) { $nb_expedition = $commande->nb_expedition(); if ($user->rights->commande->valider && $nb_expedition == 0) { - print ""; + print 'Annuler la commande'; } - else - { - print ''; - } - } - else - { - print ''; } - print "
SupprimerEnvoyer-Expédier---Valider-Annuler la commande--
"; + print ""; } print "

\n";