From b54e95ffb75211703232f67925da491a53c29d2a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 21 Jun 2003 22:44:29 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20en=20conformit=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php3 | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index d1e93b1d2a7..40604d17814 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2003 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,23 +26,27 @@ llxHeader(); $db = new Db(); -if ($action == 'add') { +if ($action == 'add') +{ $product = new Product($db); $product->ref = $ref; $product->libelle = $libelle; $product->price = $price; + $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; $product->description = $desc; $id = $product->create($user); } -if ($action == 'update') { +if ($action == 'update') +{ $product = new Product($db); $product->ref = $ref; $product->libelle = $libelle; $product->price = $price; + $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; $product->description = $desc; $product->update($id, $user); @@ -64,6 +68,10 @@ if ($action == 'create') print 'Référence'; print 'Libellé'; print 'Prix'; + print 'Taux TVA'; + $html = new Form($db); + print $html->select_tva("tva_tx"); + print ''; print "Description"; print '"; @@ -87,9 +95,10 @@ else print ''; print ""; - print "\n"; + print ''; print "\n"; - print ''; + print ''; + print ''; print ""; print "
Référence$product->ref
Référence'.$product->ref.'
Libellé$product->label
Prix'.price($product->price).'
Prix'.price($product->price).'
Taux TVA'.$product->tva_tx.'
Description".nl2br($product->description)."
"; } @@ -103,9 +112,13 @@ else print ''; print ""; - print ''; + print ''; print ''; print ''; + print ''; print "
Référence
Référence
Libellé
Prix
Taux TVA'; + $html = new Form($db); + print $html->select_tva("tva_tx", $product->tva_tx); + print '
Description"; print '