From d0d21bd1ad217fb93994aa2faa305788834bf8f6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 11 Apr 2005 15:30:46 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20le=20nom=20de=20la=20soci=E9t=E9=20=E0?= =?UTF-8?q?=20gauche=20en=20tete=20de=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/commande/history.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/htdocs/fourn/commande/history.php b/htdocs/fourn/commande/history.php index 0ea2f427f8f..5c43d4710bc 100644 --- a/htdocs/fourn/commande/history.php +++ b/htdocs/fourn/commande/history.php @@ -40,23 +40,27 @@ if (!$user->rights->fournisseur->commande->lire) accessforbidden(); /* * */ -llxHeader('',$langs->trans("History"),"Commande"); - -$html = new Form($db); /* *************************************************************************** */ /* */ -/* Mode vue et edition */ +/* Mode vue */ /* */ /* *************************************************************************** */ if ($_GET["id"] > 0) { + $soc = new Societe($db); $commande = new CommandeFournisseur($db); + if ( $commande->fetch($_GET["id"]) == 0) { - $soc = new Societe($db); $soc->fetch($commande->soc_id); + + $addons[0][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$soc->id; + $addons[0][1] = $soc->nom; + + llxHeader('',$langs->trans("History"),"CommandeFournisseur",$addons); + $author = new User($db); $author->id = $commande->user_author_id; $author->fetch(); @@ -66,6 +70,10 @@ if ($_GET["id"] > 0) $head[$h][1] = $langs->trans("Order").": $commande->ref"; $h++; + $head[$h][0] = DOL_URL_ROOT.'/fourn/commande/note.php?id='.$commande->id; + $head[$h][1] = $langs->trans("Note"); + $h++; + $head[$h][0] = DOL_URL_ROOT.'/fourn/commande/history.php?id='.$commande->id; $head[$h][1] = $langs->trans("History"); $a = $h;