From ad5aa509b4cf897434dcde8515e0c606ab35e194 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 23 Mar 2003 21:39:25 +0000 Subject: [PATCH] Gestion des categories --- htdocs/boutique/livre/fiche.php | 56 +++++++++------ htdocs/boutique/livre/livre.class.php | 72 ++++++++++++++++++++ htdocs/product/categorie/categorie.class.php | 30 ++++---- htdocs/product/categorie/index.php | 13 +--- 4 files changed, 126 insertions(+), 45 deletions(-) diff --git a/htdocs/boutique/livre/fiche.php b/htdocs/boutique/livre/fiche.php index 3b4fcf0bc11..78d7a18be9b 100644 --- a/htdocs/boutique/livre/fiche.php +++ b/htdocs/boutique/livre/fiche.php @@ -39,12 +39,19 @@ if ($action == 'add') { $id = $livre->create($user); } -if ($action == 'addga') { +if ($action == 'addga') +{ $livre = new Livre($db); - $livre->linkga($id, $coauteurid); } +if ($action == 'linkcat') +{ + $livre = new Livre($db); + $livre->fetch($id); + $livre->linkcategorie( $catid); +} + if ($action == 'update' && !$cancel) { $livre = new Livre($db); @@ -83,6 +90,14 @@ if ($action == 'create') print 'Référence'; print 'Titre'; print 'Prix'; + + $htmls = new Form($db); + $edits = new Editeur($db); + + print "Editeur"; + $htmls->select_array("editeurid", $edits->liste_array(), $livre->editeurid); + print ""; + print "Description"; print '"; @@ -116,7 +131,6 @@ else print ""; print 'Référence'; print "Description"; - print 'Titre'; print '