Correction sur l'affichage des sources

This commit is contained in:
Michael RICOIS 2009-04-23 14:09:07 +00:00
parent df3b40bc85
commit 245e4947f1

View File

@ -170,19 +170,21 @@ if ($idan && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
$source=$tabSource[0];
$firephp->log($source,'Source');
$idSource=@$tabSource[1];
if ($source=='GC' || $source=='TS')
echo '<img src="./img/logo_greffe.png"/>&nbsp;&nbsp;Source Tribunal';
elseif ($source=='PC')
echo '<img src="./img/logo_inpi.png"/>&nbsp;&nbsp;Source Registre National du Commerce';
elseif (/*$source=='' ||*/ $source=='JS')
echo '<img src="./img/logo_jal.png"/>&nbsp;&nbsp;Source Journal Annonces L&eacute;gales';
elseif ($ann['BodaccNum']==0)
echo '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
else
echo '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;&nbsp;Source BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. D&eacute;partement n&deg;<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
if ($ann['dateInsertionSD']<>'') echo 'Entr&eacute;e en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?>
if ($source[0] == 'B'){
if ($ann['BodaccNum']==0)
print '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
else
print '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;&nbsp;Source BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']).'. D&eacute;partement n&deg;'.$ann['Departement'].'. <a href="/?page=competences&siret='.$siret.'&type=tri">'.$ann['Tribunal'].'</a>';
}elseif ($source[0] == 'G' || $source[0] == 'T'){
print '<img src="./img/logo_greffe.png"/>&nbsp;&nbsp;Source Greffe du Tribunal';
}elseif ($source[0] == 'P'){
print '<img src="./img/logo_inpi.png"/>&nbsp;&nbsp;Source Registre National du Commerce';
}else{
print '<img src="./img/logo_jal.png"/>&nbsp;&nbsp;Source Journal Annonces L&eacute;gales';
}
if ($ann['dateInsertionSD']<>'') echo ' Entr&eacute;e en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?>
</td>
</tr>
<?
@ -265,16 +267,16 @@ if ($idan && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
$source=$tabSource[0];
$firephp->log($source, 'Source List');
$idSource=@$tabSource[1];
if ($source=='BODA' || $source=='BODB' || $source=='BODC')
echo '<img src="./img/logo_jo.png" title="Source BODACC '.$ann['BodaccNum'].' '.substr($source,-1).' '.substr($ann['DateParution'],0,4).'"/>';
elseif ($source=='GC' || $source=='TS' )
echo '<img src="./img/logo_greffe.png" title="Source Collecte Greffe"/>';
elseif ($source=='PC')
echo '<img src="./img/logo_inpi.png" title="Source Collecte RNCS"/>';
else {
echo '<img src="./img/logo_jal.png" title="Source Collecte JAL';
if ($idSource>0) echo " $idSource";
echo '"/>';
if ($source[0] == 'B'){
print '<img src="./img/logo_jo.png" title="Source BODACC '.$ann['BodaccNum'].' '.substr($source,-1).' '.substr($ann['DateParution'],0,4).'"/>';
}elseif ($source[0] == 'G' || $source[0] == 'T'){
print '<img src="./img/logo_greffe.png" title="Source Collecte Greffe"/>';
}elseif ($source[0] == 'P'){
print '<img src="./img/logo_inpi.png" title="Source Collecte RNCS"/>';
}else{
print '<img src="./img/logo_jal.png" title="Source Collecte JAL';
if ($idSource>0) print ' $idSource';
print '"/>';
}
}
?>