Ajout navigation next et preview

This commit is contained in:
Regis Houssin 2006-02-19 17:47:05 +00:00
parent f902ef0541
commit 5759fdae3f

View File

@ -35,10 +35,10 @@ $types[1] = $langs->trans("Service");
/* /*
* Creation de l'objet produit correspondant à l'id * Creation de l'objet produit correspondant à l'id
*/ */
if ($_GET["id"]) if ($_GET["id"] || $_GET["ref"])
{ {
$product = new Product($db); if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
$result = $product->fetch($_GET["id"]); if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
} }
llxHeader("","",$langs->trans("CardProduct0")); llxHeader("","",$langs->trans("CardProduct0"));