This commit is contained in:
Rodolphe Quiedeville 2004-07-12 14:27:41 +00:00
parent 2ee3a442b1
commit a12f0f8f23

View File

@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
@ -23,7 +23,6 @@
global $PHP_SELF;
$nbofentries=0;
if ($conf->commercial->enabled) $nbofentries++;
if ($conf->adherent->enabled) $nbofentries++;
@ -31,16 +30,16 @@ if ($conf->compta->enabled) $nbofentries++;
if ($conf->produit->enabled || $conf->service->enabled) $nbofentries++;
if ($conf->webcalendar->enabled) $nbofentries++;
print '<table cellpadding=0 cellspacing=0 width="100%"><tr>';
print '<table cellpadding="0" cellspacing="0" width="100%"><tr>';
if (! $nbofentries) {
print '<td>&nbsp;</td>';
print '<td>&nbsp;</td>';
}
else {
$widthtd=floor(100/$nbofentries);
if ($conf->commercial->enabled)
else
{
$widthtd=floor(100/$nbofentries);
if ($conf->commercial->enabled)
{
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "commercial") { $class="menusel"; }
@ -75,7 +74,7 @@ else {
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "product") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/product\/",$PHP_SELF)) { $class="menusel"; }
$chaine="";
$chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }