diff --git a/includes/annonces/annonces.php b/includes/annonces/annonces.php index 2bed849e5..4aeb0326f 100644 --- a/includes/annonces/annonces.php +++ b/includes/annonces/annonces.php @@ -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') { diff --git a/www/pages/annonces.php b/www/pages/annonces.php index 374d18419..909d85dde 100644 --- a/www/pages/annonces.php +++ b/www/pages/annonces.php @@ -194,8 +194,9 @@ if ($idan && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')))