From b0dcf70b0d3cf0dc0c6e31ad51e44c13160a4b8d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 17 Mar 2006 00:24:52 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tiques=20mineures.=20Ajo?= =?UTF-8?q?ut=20du=20picto=20statut=20sur=20les=20produits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/index.php | 2 +- htdocs/fourn/product/fiche.php | 11 ++--------- htdocs/fourn/product/photos.php | 9 +-------- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index f93aa37cdc0..9ac7a34379a 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index 14b53e3a151..dda521e71bc 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -67,7 +67,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer) $product->catid = $_POST["catid"]; $product->tva_tx = $_POST["tva_tx"]; $product->type = $_POST["type"]; - $product->envente = $_POST["statut"]; + $product->status = $_POST["statut"]; $product->description = $_POST["desc"]; $product->duration_value = $_POST["duration_value"]; $product->duration_unit = $_POST["duration_unit"]; @@ -361,14 +361,7 @@ else print ""; print ''.$langs->trans("Ref").''.$product->ref.''; print ''; - if ($product->envente) - { - print $langs->trans("OnSell"); - } - else - { - print $langs->trans("NotOnSell"); - } + print $product->getLibStatut(2); print ''; print ''.$langs->trans("Label").''.$product->libelle.''; print ''.$langs->trans("SellingPrice").''.price($product->price).''; diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php index aeff8b08669..f97fd35e366 100644 --- a/htdocs/fourn/product/photos.php +++ b/htdocs/fourn/product/photos.php @@ -108,14 +108,7 @@ if ($_GET["id"]) print ""; print ''.$langs->trans("Ref").''.$product->ref.''; print ''; - if ($product->envente) - { - print $langs->trans("OnSell"); - } - else - { - print $langs->trans("NotOnSell"); - } + print $product->getLibStatut(2); print ''; print ''.$langs->trans("Label").''.$product->libelle.''; print ''.$langs->trans("SellingPrice").''.price($product->price).'';