From 4af98936a1dd1f9ffb5a99195721d36c21ffa843 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 21 Jul 2003 14:27:37 +0000 Subject: [PATCH] Ajout gestion frais de port --- htdocs/boutique/livre/fiche.php | 37 ++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/htdocs/boutique/livre/fiche.php b/htdocs/boutique/livre/fiche.php index 50e1adbc9c4..08edb9a6493 100644 --- a/htdocs/boutique/livre/fiche.php +++ b/htdocs/boutique/livre/fiche.php @@ -34,6 +34,7 @@ if ($action == 'add') $livre->annee = $annee; $livre->editeurid = $editeurid; $livre->description = $desc; + $livre->frais_de_port = $HTTP_POST_VARS["fdp"]; $id = $livre->create($user); } @@ -91,6 +92,7 @@ if ($action == 'update' && !$cancel) $livre->titre = $titre; $livre->ref = $ref; $livre->price = $price; + $livre->frais_de_port = $HTTP_POST_VARS["fdp"]; $livre->annee = $annee; $livre->editeurid = $editeurid; $livre->description = $desc; @@ -135,6 +137,10 @@ if ($action == 'create') print 'Titre'; print 'Prix'; + print 'Frais de port"; print 'Titre'; print 'Année'; - print 'Prix'; + print 'Prix'; + print 'Frais de port'; + $htmls = new Form($db); $edits = new Editeur($db); @@ -298,7 +317,7 @@ else print '
Changer'; } print "\n"; - print ''.nl2br($livre->description); + print ''.nl2br($livre->description); $img = OSC_CATALOG_DIRECTORY."images/".$livre->image; @@ -308,7 +327,7 @@ else } print ""; - print ''; + print ''; $livre->listcategorie(); print ""; @@ -333,7 +352,15 @@ else } print ""; print 'Prix'.price($livre->price).''; - + print 'Frais de port'; + if ($livre->frais_de_port) + { + print 'oui'; + } + else + { + print 'non'; + } print ""; } else