2
0
forked from Wavyzz/dolibarr

New: Ajout option pour dsactiver les notifications

Qual: Factorisation de code sur onglet socit
This commit is contained in:
Laurent Destailleur
2006-04-08 22:47:51 +00:00
parent 0447504934
commit 150362780f
19 changed files with 302 additions and 686 deletions

View File

@@ -223,7 +223,7 @@ function dolibarr_syslog($message, $level=LOG_ERR)
\param active 0=onglet non actif, 1=onglet actif
\param title Titre tabelau ("" par defaut)
*/
function dolibarr_fiche_head($links, $active=0, $title='')
function dolibarr_fiche_head($links, $active='0', $title='')
{
print '<div class="tabs">'."\n";
@@ -248,7 +248,9 @@ function dolibarr_fiche_head($links, $active=0, $title='')
}
else
{
if ($i == $active)
//print "x $i $active ".$links[$i][2]." z";
if ((is_numeric($active) && $i == $active)
|| (! is_numeric($active) && $active == $links[$i][2]))
{
print '<a id="active" class="tab" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
}