From d60c6045d4a6f487609cdcf9a64c5d09299f8f9a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 14 Apr 2005 12:34:34 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20des=20onglets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/product/fiche.php | 7 ------- htdocs/fourn/product/photos.php | 20 ++++++++++++-------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index e562a312366..ff226216f35 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -316,13 +316,6 @@ else $h++; } - if ($conf->fournisseur->enabled) - { - $head[$h][0] = DOL_URL_ROOT."/fourn/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = $langs->trans("Suppliers"); - $h++; - } - } $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id; diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php index fc4482c0a00..0190c7d4f3c 100644 --- a/htdocs/fourn/product/photos.php +++ b/htdocs/fourn/product/photos.php @@ -85,18 +85,22 @@ if ($_GET["id"]) $head[$h][1] = $langs->trans("Stock"); $h++; } - - if ($conf->fournisseur->enabled) - { - $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = $langs->trans("Suppliers"); - $h++; - } - + $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id; $head[$h][1] = $langs->trans("Photos"); $hselected = $h; $h++; + + //Affichage onglet Catégories + if ($conf->categorie->enabled){ + $head[$h][0] = DOL_URL_ROOT."/fourn/product/categorie.php?id=".$product->id; + $head[$h][1] = $langs->trans('Categories'); + $h++; + } + + $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans("CommercialCard"); + $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);