46 lines
1.8 KiB
PHP
Executable File
46 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
if ($label=='') {$label=$menuMsg[$numeroDeMenu];}
|
|
if ($icone=='') {$icone=$menuImgPt[$numeroDeMenu];}
|
|
if (empty($lienT)) {$lienT=$menuLien[$numeroDeMenu];}
|
|
if (empty($altT)) {$altT=$menuAlt[$numeroDeMenu];}
|
|
if (empty($titreT)) {$titreT=$menuTitle[$numeroDeMenu];}
|
|
if (empty($classT)) {$classT=$menuClasse[$numeroDeMenu];}
|
|
if (empty($styleT)) {$styleT=$menuStyle[$numeroDeMenu];}
|
|
|
|
echo '<span ';
|
|
if (!empty($styleT)) {echo 'style="' .$styleT. '" ';}
|
|
echo '>';
|
|
|
|
if (!empty($classT) && ($classT!="-") )
|
|
{
|
|
echo '<i class="' .$classT. '" data-tooltip="' .$titreT. '" alt="' .$altT. '" ></i>';
|
|
}
|
|
else
|
|
{
|
|
// image petite
|
|
if (!empty($icone!='' && $icone!='-'))
|
|
{if ($lienT!='' && $lienT!='-') {echo '<a href="' .$lienT. '" data-tooltip="' .$titreT. '" target="_self" >';}
|
|
echo '<img style="vertical-align:middle;" valign="middle" style="text-decoration: none;" border="0" src="' .$icone. '" alt="' .$altT. '" style="vertical-align : middle;" />';
|
|
if ($lienT!='' && $lienT!='-') {echo '</a>';}
|
|
}
|
|
}
|
|
|
|
// texte
|
|
if ($label!='' && $label!='-')
|
|
{
|
|
if ($lienT!='' && $lienT!='-') {echo '<a href="' .$lienT. '" data-tooltip="' .$titreT. '" target="_top" style="text-decoration:none;" >';}
|
|
echo '<span data-tooltip="' .$titreT. '" >' .$label. '</span>';
|
|
if ($lienT!='' && $lienT!='-') {echo '</a>';}
|
|
}
|
|
|
|
// bouton retour
|
|
if ($btnRetour=='oui')
|
|
{
|
|
echo '         ';
|
|
echo '<a href="' .$lienRetour. '" style="text-decoration:none;" >';
|
|
echo '<img style="vertical-align : middle; cursor:pointer;" border="0" src="' .$boutonImgPt[14]. '" data-tooltip="' .$boutonTitle[14]. '" alt="' .$boutonAlt[14]. '" />';
|
|
echo '</a>';
|
|
}
|
|
if ($styleT!='') {echo '</span>';}
|
|
?>
|