From ba346e4cbc3fd9d3b22b4e25e1c662571ae59f58 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 11 Jul 2003 05:56:06 +0000 Subject: [PATCH] Ajout formulaire de recherche --- htdocs/product/fiche.php3 | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index d4856b79e1e..be79c731f7b 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -32,11 +32,11 @@ if ($action == 'add') { $product = new Product($db); - $product->ref = $ref; - $product->libelle = $libelle; - $product->price = $price; + $product->ref = $HTTP_POST_VARS["ref"]; + $product->libelle = $HTTP_POST_VARS["libelle"]; + $product->price = $HTTP_POST_VARS["price"]; $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; - $product->description = $desc; + $product->description = $HTTP_POST_VARS["desc"]; $id = $product->create($user); $action = ''; @@ -54,7 +54,6 @@ if ($action == 'addinpropal') $mesg .= ''.$propal->ref.''; } - if ($action == 'update' && $cancel <> 'Annuler') { $product = new Product($db); @@ -105,19 +104,39 @@ else if ( $result ) { + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print '
Réf :  
Libellé :   
'; + + print_fiche_titre('Fiche produit : '.$product->ref, $mesg); print ''; print ""; print ''; - print ''; + print ''; print ""; + print ''; + print ''; print ''; - print ''; + print ''; print ""; print "
Référence'.$product->ref.'Statistiques
'; + if ($product->envente) + { + print "En vente"; + } + else + { + print "Cet article n'est plus en vente"; + } + print '
Libellé$product->labelStatistiques
Prix'.price($product->price).''; print "Propositions commerciales : ".$product->count_propale(); print "
Proposé à ".$product->count_propale_client()." clients"; print "
Factures : ".$product->count_facture(); print '
Prix'.price($product->price).'
Taux TVA'.$product->tva_tx.'
Description".nl2br($product->description)."
";