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]; $source=$tabSource[0];
$firephp->log($source,'Source'); $firephp->log($source,'Source');
$idSource=@$tabSource[1]; $idSource=@$tabSource[1];
if ($source=='GC' || $source=='TS') if ($source[0] == 'B'){
echo '<img src="./img/logo_greffe.png"/>&nbsp;&nbsp;Source Tribunal'; if ($ann['BodaccNum']==0)
elseif ($source=='PC') 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']);
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 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>.<? 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']); if ($ann['dateInsertionSD']<>'') echo ' Entr&eacute;e en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?> ?>
</td> </td>
</tr> </tr>
<? <?
@ -265,16 +267,16 @@ if ($idan && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
$source=$tabSource[0]; $source=$tabSource[0];
$firephp->log($source, 'Source List'); $firephp->log($source, 'Source List');
$idSource=@$tabSource[1]; $idSource=@$tabSource[1];
if ($source=='BODA' || $source=='BODB' || $source=='BODC') if ($source[0] == 'B'){
echo '<img src="./img/logo_jo.png" title="Source BODACC '.$ann['BodaccNum'].' '.substr($source,-1).' '.substr($ann['DateParution'],0,4).'"/>'; print '<img src="./img/logo_jo.png" title="Source BODACC '.$ann['BodaccNum'].' '.substr($source,-1).' '.substr($ann['DateParution'],0,4).'"/>';
elseif ($source=='GC' || $source=='TS' ) }elseif ($source[0] == 'G' || $source[0] == 'T'){
echo '<img src="./img/logo_greffe.png" title="Source Collecte Greffe"/>'; print '<img src="./img/logo_greffe.png" title="Source Collecte Greffe"/>';
elseif ($source=='PC') }elseif ($source[0] == 'P'){
echo '<img src="./img/logo_inpi.png" title="Source Collecte RNCS"/>'; print '<img src="./img/logo_inpi.png" title="Source Collecte RNCS"/>';
else { }else{
echo '<img src="./img/logo_jal.png" title="Source Collecte JAL'; print '<img src="./img/logo_jal.png" title="Source Collecte JAL';
if ($idSource>0) echo " $idSource"; if ($idSource>0) print ' $idSource';
echo '"/>'; print '"/>';
} }
} }
?> ?>