From 4bf43cf5dcfe1fc42f15c3779468d6de1e4cd616 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 20 Aug 2005 18:45:49 +0000 Subject: [PATCH] Ajout projet --- htdocs/includes/menus/barre_top/default.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index a372930e2b5..db1c2ab2c73 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -161,6 +161,26 @@ class MenuTop { } + // Entrée projets + if ($conf->projet->enabled) + { + $langs->load("projects"); + + $class=""; + + if (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"])) + { + $class='class="tmenu" id="sel"'; + } + else + { + $class = 'class="tmenu"'; + } + + $chaine.=$langs->trans("Projects"); + print ''.$chaine.''; + } + // Entrée produit/service if ($conf->produit->enabled || $conf->service->enabled) {