From 8493f03246c4ba30a555411151279558d39d1d1d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 6 Dec 2006 20:50:54 +0000 Subject: [PATCH] Ajout menu stats --- htdocs/fourn/pre.inc.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/fourn/pre.inc.php b/htdocs/fourn/pre.inc.php index 640287bb824..0257cd2f1d9 100644 --- a/htdocs/fourn/pre.inc.php +++ b/htdocs/fourn/pre.inc.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2006 Rodolphe Quiedeville * Copyright (C) 2005-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -58,13 +58,15 @@ function llxHeader($head = "", $title="", $addons='') { { $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier")); } - } + - if ($conf->societe->enabled && $user->rights->societe->lire) - { - $menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts")); - } + if ($conf->societe->enabled ) + { + $menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts")); + } + $menu->add_submenu(DOL_URL_ROOT."/fourn/stats.php",$langs->trans("Statistics")); + } $langs->load("bills"); if ($user->societe_id == 0 && $user->rights->fournisseur->facture->lire)