Diverse corrections libellé, issue #0000380

This commit is contained in:
Michael RICOIS 2010-09-30 15:59:49 +00:00
parent 1192adb674
commit eb2b0f295e
2 changed files with 19 additions and 5 deletions

View File

@ -85,16 +85,29 @@ class Annonces
{
$src = '';
$title = '';
if ($ann['BodaccCode'] == 'BALO')
if ($this->isBalo($ann['BodaccCode']))
{
$src = './img/logo_jo.png';
$title = 'Source BALO n°'.$ann['BodaccNum'];
}
elseif ($ann['BodaccCode'] == 'ASSO')
elseif ($this->isAsso($ann['BodaccCode']))
{
$src = './img/logo_jo.png';
$title = 'Source JO ASSOCIATION n°'.$ann['BodaccNum'];
}
elseif ($this->isBomp($ann['BodaccCode']))
{
$src = './img/logo_jo.png';
if ($ann['BodaccCode'] == 'MAPA' ){
$title = 'Source '.$ann['BodaccCode'] . ' ' .
($ann['BodaccNum']*1);
}else {
$title = 'Source '.$ann['BodaccCode'] . ' ' .
'n°' . ($ann['BodaccNum']*1) . ' de ' .
substr($ann['DateParution'],0,4);
}
}
else
{
$tabSource = explode('-', $ann['BodaccCode']);
@ -105,7 +118,7 @@ class Annonces
$src = './img/logo_jo.png';
$title = 'Source BODACC ' . $ann['BodaccNum'] . ' ' .
substr($source,-1) . ' ' .
substr($ann['DateParution'],0,4);
'de ' . substr($ann['DateParution'],0,4);
}
else if ($source[0] == 'G' || $source[0] == 'T')
{

View File

@ -194,8 +194,9 @@ if ($idan && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')))
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData">
<?php
$libelle = 'Source BOMP n&deg;'.$ann['BodaccNum'].'&nbsp;'.
substr($ann['BodaccCode'],-1).
$libelle = 'Annonce n&deg;'.$ann['NumAnnonce'] . '. ' .
'Source ' . $ann['BodaccCode'] . ' ' .
'n&deg;' . ($ann['BodaccNum']*1) . ' ' .
' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']).
'. D&eacute;partement n&deg;'.$ann['Departement'].'.';
echo $libelle;