diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index 1e1485ab9b7..e562a312366 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -47,25 +47,6 @@ $types[1] = $langs->trans("Service"); * */ -if ( $_POST["sendit"] && defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1) -{ - if ($_GET["id"]) - { - $product = new Product($db); - $result = $product->fetch($_GET["id"]); - - // if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name'])) - - // var_dump($_FILES); - - $product->add_photo($conf->produit->dir_output, $_FILES['photofile']); - } -} -/* - * - */ - - if ($_GET["action"] == 'fastappro') { $product = new Product($db); @@ -344,8 +325,8 @@ else } - $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('Statistics'); + $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id; + $head[$h][1] = $langs->trans("Photos"); $h++; //Affichage onglet Catégories @@ -355,6 +336,9 @@ else $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); @@ -398,8 +382,8 @@ else $nblignefour=3; - print '