From c9b1b81c31e1a1b531a4530285f75b5af01c534a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 2 Jan 2007 15:27:51 +0000 Subject: [PATCH] Modif appel de product_prepare_head --- htdocs/product/fiche.php | 4 ++-- htdocs/product/fournisseurs.php | 4 ++-- htdocs/product/photos.php | 4 ++-- htdocs/product/price.php | 4 ++-- htdocs/product/sousproduits/fiche.php | 4 ++-- htdocs/product/stats/commande.php | 4 ++-- htdocs/product/stats/commande_fournisseur.php | 4 ++-- htdocs/product/stats/contrat.php | 11 +++++------ htdocs/product/stats/facture.php | 4 ++-- htdocs/product/stats/facture_fournisseur.php | 4 ++-- htdocs/product/stats/fiche.php | 4 ++-- htdocs/product/stats/propal.php | 4 ++-- htdocs/product/stock/product.php | 4 ++-- 13 files changed, 29 insertions(+), 30 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 770fea5e554..25c7e7c5e0c 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2006 Régis Houssin @@ -607,7 +607,7 @@ if ($_GET["id"] || $_GET["ref"]) { if ($_GET["action"] <> 'edit') { - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'card', $titre); print "\n\n"; diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 7b46e674004..7721672c2b7 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005 Regis Houssin @@ -177,7 +177,7 @@ if ($_GET["id"] || $_GET["ref"]) * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'suppliers', $titre); diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index 07c438570a2..46834a29d52 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005 Regis Houssin @@ -93,7 +93,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'photos', $titre); diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 715ce71d109..2abfb9f6cfa 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2006 Regis Houssin @@ -103,7 +103,7 @@ if ($_GET["id"]) $result = $product->fetch($_GET["id"]); llxHeader("","",$langs->trans("CardProduct".$product->type)); -$head=product_prepare_head($product); +$head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'price', $titre); diff --git a/htdocs/product/sousproduits/fiche.php b/htdocs/product/sousproduits/fiche.php index c8fabfa44cd..0ca769f6934 100644 --- a/htdocs/product/sousproduits/fiche.php +++ b/htdocs/product/sousproduits/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2006 Régis Houssin @@ -148,7 +148,7 @@ if ($id || $ref) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'subproduct', $titre); diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php index d7029842118..826dc7e6d99 100644 --- a/htdocs/product/stats/commande.php +++ b/htdocs/product/stats/commande.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * @@ -83,7 +83,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'referers', $titre); diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php index 9568a313ea8..db21706bb2a 100644 --- a/htdocs/product/stats/commande_fournisseur.php +++ b/htdocs/product/stats/commande_fournisseur.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * @@ -83,7 +83,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'referers', $titre); diff --git a/htdocs/product/stats/contrat.php b/htdocs/product/stats/contrat.php index caa740041ad..751f50100ae 100644 --- a/htdocs/product/stats/contrat.php +++ b/htdocs/product/stats/contrat.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * @@ -81,12 +81,11 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); - $titre=$langs->trans("CardProduct".$product->type); - dolibarr_fiche_head($head, 'referers', $titre); + $head=product_prepare_head($product,$user); + $titre=$langs->trans("CardProduct".$product->type); + dolibarr_fiche_head($head, 'referers', $titre); - - print ''; + print '
'; // Reference print ''; diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php index 3807d617e35..7bb226e7b3d 100644 --- a/htdocs/product/stats/facture.php +++ b/htdocs/product/stats/facture.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * @@ -77,7 +77,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'referers', $titre); diff --git a/htdocs/product/stats/facture_fournisseur.php b/htdocs/product/stats/facture_fournisseur.php index e587af64f8e..b7b9fa15f11 100644 --- a/htdocs/product/stats/facture_fournisseur.php +++ b/htdocs/product/stats/facture_fournisseur.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * @@ -78,7 +78,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'referers', $titre); diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 0e3f001c0d9..2728e69c993 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (c) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * Copyright (C) 2005 Eric Seigne @@ -74,7 +74,7 @@ if ($_GET["id"] || $_GET["ref"]) rmdir(DOL_DOCUMENT_ROOT."/document/produits"); - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'stats', $titre); diff --git a/htdocs/product/stats/propal.php b/htdocs/product/stats/propal.php index a43be3f1393..57aacbc37ae 100644 --- a/htdocs/product/stats/propal.php +++ b/htdocs/product/stats/propal.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -80,7 +80,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * En mode visu */ - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'referers', $titre); diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 76375d18fe9..1ea15fd0317 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005 Simon TOSSER @@ -109,7 +109,7 @@ if ($_GET["id"] || $_GET["ref"]) if ($result > 0) { - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'stock', $titre);