From ccb44e30c0dae1e36f02c19d1a205e59f1c579b4 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 10 Aug 2005 08:43:34 +0000 Subject: [PATCH] Ajout menu telephonie --- htdocs/includes/menus/barre_top/default.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index 378d6b9b8a5..a169c656aec 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -204,6 +204,27 @@ class MenuTop { print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").''; } + + // Entrée telephonie + if ($conf->telephonie->enabled) + { + $class=""; + if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers") + { + $class='class="tmenu" id="sel"'; + } + elseif (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"])) + { + $class='class="tmenu" id="sel"'; + } + else + { + $class = 'class="tmenu"'; + } + + print 'atarget?" target=$this->atarget":"").'>Telephonie'; + } + // Entrée webcal if ($conf->webcal->enabled)