* Copyright (C) 2004 Laurent Destailleur * * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ * */ if (defined('MAIN_MODULE_COMMERCIAL') && MAIN_MODULE_COMMERCIAL == 1) { if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/comm/')) { print ''; if ($user->comm > 0 && $conf->commercial ) { print 'Commercial'; } else { print '-'; } } else { print ''; if ($user->comm > 0 && $conf->commercial ) { print 'Commercial'; } else { print '-'; } } } elseif (defined('MAIN_MODULE_ADHERENT') && MAIN_MODULE_ADHERENT == 1) { print ''; print 'Adhérents'; } else { print '-'; } if (defined('MAIN_MODULE_COMPTABILITE') && MAIN_MODULE_COMPTABILITE == 1) { if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/compta/')) { print ''; if ($user->compta > 0) { print 'Compta'; } else { print '-'; } } else { print ''; if ($user->compta > 0) { print 'Compta'; } else { print '-'; } } } else { print '-'; } if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/product/')) { $class = "menusel"; } else { $class = "menu"; } print ''; if ($conf->produit->enabled || $conf->service->enabled) { $chaine=""; if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } if ($conf->service->enabled) { $chaine.="Services"; } print ''.$chaine.''; } else { print '-'; } print ''; if(defined("MAIN_MODULE_WEBCALENDAR") && MAIN_MODULE_WEBCALENDAR) { print 'Calendrier'; }; print ' '; ?>