From b85c14ae2f51072f85780d9f52a4a4bcb014a3d3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2006 17:33:36 +0000 Subject: [PATCH] Ajout navigation next et preview --- htdocs/product/categorie.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 3c3c51c2f94..893ffbb03b1 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -132,10 +132,15 @@ if ($_GET["id"]) print($mesg); print ''; print ""; - print ''; - - print ''; - print "
'.$langs->trans("Ref").''.$product->ref.'
'.$langs->trans("Label").''.$product->libelle.'

\n"; + // Reference + print ''.$langs->trans("Ref").''; + $product->load_previous_next_ref(); + $previous_ref = $product->ref_previous?''.img_previous().'':''; + $next_ref = $product->ref_next?''.img_next().'':''; + if ($previous_ref || $next_ref) print '
'; + print ''.$product->ref.''; + if ($previous_ref || $next_ref) print ''.$previous_ref.''.$next_ref.'
'; + print ''; $c = new Categorie($db); $cats = $c->containing($_REQUEST['id']);