From 3261af28a6f633367556188afe08a364b4e368e7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 17 Feb 2005 11:15:59 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20sur=20le=20Cancel=20et=20Am=E9lioratio?= =?UTF-8?q?n=20HTML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fournisseurs.php | 39 +++++++++++++++++---------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 312fac2a8dc..e7b6c4ac517 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2005 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -21,10 +21,11 @@ * */ -/** \file htdocs/product/fournisseurs.php - \ingroup product,fournisseur - \brief Page fournisseur de produit - \version $Revision$ +/*! + \file htdocs/product/fiche.php + \ingroup product + \brief Page de la fiche produit + \version $Revision$ */ require("./pre.inc.php"); @@ -59,12 +60,10 @@ if ($_POST["action"] == 'updateprice' && $_POST["cancel"] <> $langs->trans("Canc if ($_POST["cancel"] == $langs->trans("Cancel")) { $action = ''; - Header("Location: fournisseurs.php?id=".$_POST["id"]); + Header("Location: fournisseurs.php?id=".$_GET["id"]); } - - llxHeader("","",$langs->trans("CardProduct".$product->type)); @@ -78,7 +77,7 @@ if ($_GET["id"]) { $product = new Product($db); $result = $product->fetch($_GET["id"]); - } + } if ( $result ) { @@ -108,13 +107,13 @@ if ($_GET["id"]) $h++; } - if ($conf->fournisseur->enabled) - { + if ($conf->fournisseur->enabled) + { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; $head[$h][1] = $langs->trans("Suppliers"); - $hselected = $h; + $hselected = $h; $h++; - } + } } @@ -125,11 +124,10 @@ if ($_GET["id"]) dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref); - print($mesg); print ''; - print ''; - print ''; + print ''; - print ''; - print ''; + print ''; + print ''; + print '
'.$langs->trans("Ref").''.$product->ref.'
'.$langs->trans("Status").''; + print '
'.$langs->trans("Ref").''.$product->ref.''.$langs->trans("Status").' : '; if ($product->envente) { print $langs->trans("OnSell"); @@ -139,8 +137,11 @@ if ($_GET["id"]) print $langs->trans("NotOnSell"); } print '
'.$langs->trans("Label").''.$product->libelle.'
'.$langs->trans("SellingPrice").''.price($product->price).'
'.$langs->trans("Label").''.$product->libelle.'
'.$langs->trans("SellingPrice").''.price($product->price).'

'; + print ''; + if ($product->type == 0) { $nblignefour=4; @@ -149,7 +150,7 @@ if ($_GET["id"]) { $nblignefour=4; } - + print ''; print '';
'; print $langs->trans("Suppliers").''.$langs->trans("Ref").'