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 '