extranet/includes/identite/datemaj.php
2010-05-07 13:50:16 +00:00

42 lines
1.4 KiB
PHP

<?php
$texte = '';
if (isset($etab['DateMajINSEE']) && !empty($etab['DateMajINSEE'])
&& $etab['DateMajINSEE']!='0000-00-00'){
$texte.= "Insee&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ";
$texte.= WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajINSEE']);
$texte.= '<br/>';
}
if (isset($etab['DateMajRCS']) && !empty($etab['DateMajRCS'])
&& $etab['DateMajRCS']!='0000-00-00'){
$texte.= "RCS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ";
$texte.= WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajRCS']);
$texte.= '<br/>';
}
if (isset($etab['DateMajBILAN']) && !empty($etab['DateMajBILAN'])
&& $etab['DateMajBILAN']!='0000-00-00'){
$texte.= "Bilans&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ";
$texte.= WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajBILAN']);
$texte.= '<br/>';
}
if (isset($etab['DateMajANN']) && !empty($etab['DateMajANN'])
&& $etab['DateMajANN']!='0000-00-00'){
$texte.= "Annonces : ";
$texte.= WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajANN']);
$texte.= '<br/>';
}
$dateDerMaj = '';
if (isset($etab['DateMajID']) && !empty($etab['DateMajID'])
&& $etab['DateMajID']!='0000-00-00' ){
if (hasModeEdition()){
$texte.= "Scores & Décisions : ";
$texte.= WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajID']);
$texte.= '<br/>';
}
$dateDerMaj = ' le '.WDate::dateT('Y-m-d', 'd/m/Y', $etab['DateMajID']);
}
?>
<div>
<a class="datemaj" alt="<?=$texte?>" href="#">
Dernière mise à jour<?=$dateDerMaj?>
</a>
</div>