diff --git a/htdocs/telephonie/ca/pre.inc.php b/htdocs/telephonie/ca/pre.inc.php index 4b38a14c598..78107cd29ba 100644 --- a/htdocs/telephonie/ca/pre.inc.php +++ b/htdocs/telephonie/ca/pre.inc.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * 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 @@ -26,10 +26,6 @@ $user->getrights('telephonie'); function llxHeader($head = "", $title="") { global $user, $conf; - /* - * - * - */ top_menu($head, $title); $menu = new Menu(); @@ -42,8 +38,6 @@ function llxHeader($head = "", $title="") { $menu->add_submenu(DOL_URL_ROOT."/telephonie/simulation/fiche.php?action=create", "Nouvelle"); } - - $menu->add(DOL_URL_ROOT."/telephonie/client/index.php", "Clients"); $menu->add(DOL_URL_ROOT."/telephonie/contrat/", "Contrats"); @@ -53,14 +47,15 @@ function llxHeader($head = "", $title="") { if ($user->rights->telephonie->ligne_commander) $menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commande"); - $menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques"); + if ($user->rights->telephonie->stats->lire) + $menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques"); $menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures"); $menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs"); if ($user->rights->telephonie->fournisseur->lire) - $menu->add(DOL_URL_ROOT."/telephonie/fournisseurs.php", "Fournisseurs"); + $menu->add(DOL_URL_ROOT."/telephonie/fournisseur/", "Fournisseurs"); if ($user->rights->telephonie->ca->lire) {