From 5ac4796c7c70503fc3de8011fe4b6af8e683d703 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 15 Sep 2003 16:00:16 +0000 Subject: [PATCH] Nettoyage code --- htdocs/product/fiche.php | 136 +++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 70 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index fee039bc62c..5fc49401151 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -205,86 +205,82 @@ else { if ($action <> 'edit' && $action <> 're-edit') { - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print '
Réf :  
Libellé :   
'; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print '
Réf :  
Libellé :   
'; - print_fiche_titre('Fiche '.$types[$product->type].' : '.$product->ref, $mesg); + print_fiche_titre('Fiche '.$types[$product->type].' : '.$product->ref, $mesg); - print ''; - print ""; - print ''; - print ''; - print ""; - print ''; - print ''; - print ''; - - print "".''; - print ""; - - if ($product->type == 1) - { - print "".'
Référence'.$product->ref.''; - if ($product->envente) - { - print "En vente"; - } - else - { - print "Cet article n'est pas en vente"; - } - print '
Libellé$product->libelleStatistiques
Prix de vente'.price($product->price).''; - print "Propositions commerciales : ".$product->count_propale(); - print "
Proposé à ".$product->count_propale_client()." clients"; - print "
Factures : ".$product->count_facture(); - print '
Taux TVA'.$product->tva_tx.' %
Description".nl2br($product->description)."
Durée'.$product->duration_value.' '; - if ($product->duration_value > 1) + print ''; + print ""; + print ''; + print ''; + print ""; + print ''; + print ''; + print ''; + + print "".''; + print ""; + + if ($product->type == 1) + { + print "".''; + } + + print "
Référence'.$product->ref.''; + if ($product->envente) { - $plu = "s"; + print "En vente"; } - switch ($product->duration_unit) + else { - case "d": - print "jour$plu "; - break; - case "w": - print "semaine$plu "; - break; - case "m": - print 'mois '; - break; - case "y": - print "an$plu "; - break; + print "Cet article n'est pas en vente"; } print '
Libellé$product->libelleStatistiques
Prix de vente'.price($product->price).''; + print "Propositions commerciales : ".$product->count_propale(); + print "
Proposé à ".$product->count_propale_client()." clients"; + print "
Factures : ".$product->count_facture(); + print '
Taux TVA'.$product->tva_tx.' %
Description".nl2br($product->description)."
Durée'.$product->duration_value.' '; + if ($product->duration_value > 1) + { + $plu = "s"; + } + switch ($product->duration_unit) + { + case "d": + print "jour$plu "; + break; + case "w": + print "semaine$plu "; + break; + case "m": + print 'mois '; + break; + case "y": + print "an$plu "; + break; + } + print '
"; } - print "
"; - } - - if ($action == 'edit_price' && $user->rights->produit->creer) - { - print '
Nouveau prix

'; - - print "
\n"; - print ''; - - print ''; - - print "".''; - - print "".''; - print '
Prix de vente
 '; - print '
'; - print '
'; - } + if ($action == 'edit_price' && $user->rights->produit->creer) + { + print '
Nouveau prix

'; + print "
\n"; + print ''; + print ''; + print ''; + print ''; + print '
Prix de vente
 '; + print '
'; + print '
'; + } }