719 lines
20 KiB
PHP
719 lines
20 KiB
PHP
<?php
|
|
//Traitement des paramètres
|
|
if (!page_checkParams()) die('Paramètres incorrects !');
|
|
|
|
require_once 'scoresws/scoresws.php';
|
|
require_once 'common/dates.php';
|
|
require_once 'utils.php';
|
|
|
|
$etab = scoresws_identite($siret, $siren, $idEntreprise);
|
|
?>
|
|
<div id="center">
|
|
<h1>RAPPORT DE SYNTHESE</h1>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Numéro identifiant Siret du siège</td>
|
|
<td width="350" class="StyleInfoData"><?=substr($etab['SiretSiege'],0,3).' '.substr($etab['SiretSiege'],3,3).' '.substr($etab['SiretSiege'],6,3).' <i>'.substr($etab['SiretSiege'],9,5).'</i>'?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<?php
|
|
$numRC = $etab['NumRC'];
|
|
$tribunalLib = $etab['TribunalLib'];
|
|
if (isset($numRC) && $numRC!='')
|
|
{
|
|
$lib = 'Numéro R.C.';
|
|
$libTrib = '';
|
|
if (preg_match('/(A|B|C|D)/i', $numRC))
|
|
{
|
|
$lib = 'Numéro R.C.';
|
|
$libTrib = ' RCS '.preg_replace('/(^TC |^TI |^TGIcc |^TMX )/i','',$tribunalLib);
|
|
}
|
|
elseif (preg_match('/(P)/i', $numRC))
|
|
{
|
|
$lib = 'Numéro R.S.A.C.';
|
|
$libTrib = ' RSAC '.preg_replace('/(^TC |^TI |^TGIcc |^TMX )/i','',$tribunalLib);
|
|
}
|
|
$data = $numRC.$libTrib;
|
|
}
|
|
?>
|
|
<td width="200" class="StyleInfoLib"><?=$lib?></td>
|
|
<td width="350" class="StyleInfoData"><?=$data?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Entreprise active INSEE</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
if ($etab['Actif']==1)
|
|
echo 'Oui';
|
|
else {
|
|
echo '<b>NON</b>';
|
|
$dateCloture=str_replace('-','',$etab['DateClotEt']);
|
|
if ($etab['DateClotEt']<>'')
|
|
echo "<i> (Fin d'activité en ".WDate::dateT('Ymd', 'm/Y', $dateCloture).')</i>';
|
|
}
|
|
if ($etab['Siren']*1<>0 && preg_match('/\bAVISINSEE\b/i', $_SESSION['tabInfo']['droits']))
|
|
echo ' <a title="Voir l\'avis de situation correspondant de l\'INSEE" target="_blank" href="/?page=avis&siret='.$siret.'">(Situation au répertoire SIRENE)</a>';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php
|
|
require_once 'identite/news.php';
|
|
require_once 'surveillance/surveillance_identite.php';
|
|
?>
|
|
|
|
<h2>Raison sociale & Coordonnées</h2>
|
|
<table>
|
|
<?php
|
|
//Nom
|
|
$title = '';
|
|
if(isset($etab['NomLong']) && $etab['NomLong']!='' && $etab['NomLong']!=$etab['Nom'] )
|
|
$title = $etab['NomLong'];
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="350" class="StyleInfoData" title="<?=$title?>">
|
|
<?=$etab['Nom']; if ($etab['Nom2']<>'') echo '<br/>'.$etab['Nom2'];?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
//Forme juridique
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Forme juridique</td>
|
|
<td width="350" class="StyleInfoData"><?=$etab['FJ'].' : '.strWsToHtml($etab['FJ_lib']);?>
|
|
<?php
|
|
if(isset($etab['FJ2']) && $etab['FJ2']!='' && isset($etab['FJ2_Lib']) && $etab['FJ2_Lib']!='')
|
|
{
|
|
?>
|
|
<img src="./img/exclamation.png" title="Forme jurique au RCS : <?=$etab['FJ2_Lib']?> (<?=$etab['FJ2']?>)"/>
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
//Date d'immatriculation
|
|
$dateImmat = '';
|
|
if(isset($etab['DateImmat']) && $etab['DateImmat']!='' && $etab['DateImmat']!='0000-00-00'){
|
|
$dateImmat = WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['DateImmat']));
|
|
}
|
|
if($dateImmat!=''){
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Date d'immatriculation</td>
|
|
<td width="350" class="StyleInfoData"><?=$dateImmat?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
//Date de création de l'établissement
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Création de l'établissement</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
$dateCreationEt=str_replace('-','',$etab['DateCreaEt']);
|
|
if ($dateCreationEt*1<>0) {
|
|
if (substr($dateCreationEt,-2)*1==0)
|
|
echo WDate::dateT('Ymd', 'm/Y', $dateCreationEt);
|
|
else
|
|
echo WDate::dateT('Ymd', 'd/m/Y', $dateCreationEt);
|
|
} else echo 'N/C';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Adresse</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
if($etab['AdresseRue'] == ''){ $voie = $etab['Adresse2']; }else{ $voie = $etab['AdresseRue']; }
|
|
?>
|
|
<a href="/?page=recherche&vue=list&formR[type]=ent&formR[numVoie]=<?=urlencode($etab['AdresseNum'])?>&formR[voie]=<?=urlencode($voie)?>&formR[cpVille]=<?=urlencode($etab['CP'])?>" title="Rechercher à partir de cette adresse">
|
|
<span class="adresse"><?php print $etab['Adresse'];?></span>
|
|
|
|
<?php
|
|
if (preg_match('/CHEZ SOFRADOM/i',$etab['Adresse2']))
|
|
$etab['Adresse2']='<a title="Voir la fiche d\'identité du domiciliataire de cette entreprise" href="/?page=identite&siret=42495045900018&idEntreprise=6720043">CHEZ SOFRADOM</a>';
|
|
//http://extranet.devlocal.com/?page=identite&siret=42495045900018&idEntreprise=6720043
|
|
if ($etab['Adresse2']<>'')
|
|
print '<span class="adresse">'.$etab['Adresse2'].'</span>';
|
|
?>
|
|
<?php
|
|
$cp=$etab['CP']*1;
|
|
if ($cp<>0)
|
|
print '<span class="adresse">'.$etab['CP'].' '.strWsToHtml($etab['Ville']).'</span>';
|
|
if ($etab['Pays']<>'' && strtoupper(substr($etab['Pays'],0,3))<>'FRA')
|
|
print '<span class="adresse">'.strWsToHtml($etab['Pays']).'</span>';
|
|
?>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Activité(s) & Chiffre d'affaire</h2>
|
|
<table>
|
|
<?php
|
|
//Activité de l'entreprise
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Activité de l'entreprise</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
if ($etab['Activite']<>'' && !preg_match('/non pr(e|é)cis(e|é)/i',utf8_decode($etab['Activite']))) {
|
|
$texte=preg_replace_callback("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", replace_siren, strWsToHtml($etab['Activite']));
|
|
echo $texte.' ('.$etab['NafEnt'].' : '. strWsToHtml($etab['NafEntLib']).')';
|
|
} else
|
|
echo $etab['NafEnt'].' : '. strWsToHtml($etab['NafEntLib']);
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
//NAF4
|
|
if (preg_match('/\bNAF4\b/i', $_SESSION['tabInfo']['pref']) && trim(@$etab['Naf4Ent'])<>'') {
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Anciens codes NAF</td>
|
|
<td width="350" class="StyleInfoData"><b>Entr. : </b><?=$etab['Naf4Ent'].' - '. strWsToHtml($etab['Naf4EntLib']);?><br/><b>Étab. :</b> <?=$etab['Naf4Etab'].' - '. strWsToHtml($etab['Naf4EtabLib']);?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
//Origine du fond
|
|
if ( ($etab['OrigineCreation']*1>0 && $etab['OrigineCreation']*1<9) ||
|
|
$etab['OrigineCreation']=='A' ||
|
|
$etab['OrigineCreation']=='B' ||
|
|
$etab['OrigineCreation']=='C' ||
|
|
$etab['OrigineCreation']=='D' ||
|
|
$etab['OrigineCreation']=='E' ){
|
|
$tabCreation = array(
|
|
'a1'=>'Création',
|
|
'a3'=>'Achat',
|
|
'a4'=>'Apport',
|
|
'a6'=>'Prise en location gérance',
|
|
'a7'=>'Partage',
|
|
'a8'=>'Reprise',
|
|
'aA'=>'Reprise globale de l\'exploitation agricole',
|
|
'aB'=>'Poursuite de l\'exploitation agricole par le conjoint',
|
|
'aC'=>'Transfert de propriété de l\'exploitation agricole',
|
|
'aD'=>'Apport d\'exploitation(s) agricole(s) individuelle(s)',
|
|
'aE'=>'Reprise d\'exploitation agricole individuelle',
|
|
);
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Origine du fonds</td>
|
|
<td width="350" class="StyleInfoData"><?=$tabCreation['a'.$etab['OrigineCreation']]?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
//Chiffre d'affaire
|
|
$title = '';
|
|
if(isset($etab['Bilan']['CA'])) $title.='Chiffre d\'affaire de '.moneyKM($etab['Bilan']['CA']).deviseText($etab['Bilan']['Devise']);
|
|
if(isset($etab['Bilan']['Resultat'])) $title.=' et Résultat de '.moneyKM($etab['Bilan']['Resultat']).deviseText($etab['Bilan']['Devise']);
|
|
if(isset($etab['Bilan']['Cloture'])) $title.=' au '.WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['Bilan']['Cloture']));
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Chiffre d'affaire</td>
|
|
<td width="350" class="StyleInfoData" title="<?=$title?>">
|
|
<?php
|
|
if(isset($etab['Bilan']['CA']) && (!isset($etab['TrancheCALib']) || $etab['TrancheCALib']=='N/C'))
|
|
{
|
|
echo moneyKM($etab['Bilan']['CA']).deviseText($etab['Bilan']['Devise']).' au '.WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['Bilan']['Cloture']));
|
|
}elseif(isset($etab['TrancheCALib']) && $etab['TrancheCALib']!='N/C'){
|
|
echo strWsToHtml($etab['TrancheCALib']);
|
|
}else{
|
|
echo 'N/C';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
//Capital
|
|
if (isset($etab['Capital']) && $etab['Capital']*1>0)
|
|
{
|
|
$title = '';
|
|
if(isset($etab['Bilan']['Capital'])) $title.='Capital de '.moneyKM($etab['Bilan']['Capital']).deviseText($etab['Bilan']['Devise']);
|
|
if(isset($etab['Bilan']['Cloture'])) $title.=' au '.WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['Bilan']['Cloture']));
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Capital <?php if (isset($etab['CapitalType']) && $etab['CapitalType']=='V'){echo 'variable';}?></td>
|
|
<td width="350" class="StyleInfoData" title="<?=$title?>"><?=number_format($etab['Capital'],0,',',' ')?>
|
|
<?php
|
|
if ($etab['CapitalDev']=='EUR') echo '€';
|
|
else {
|
|
echo $etab['CapitalDev'].' ('.strWsToHtml($etab['CapitalLib']).')';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
//Type d'exploitation
|
|
if ( isset($etab['TypeExploitation']) && $etab['TypeExploitation']!=0 )
|
|
{
|
|
$tabTypeExploitation = array(
|
|
1 => "Locataire du fond de commerce",
|
|
2 => "Loueur du fond de commerce",
|
|
3 => "Prestation de personnel",
|
|
10 => "Exploitation directe"
|
|
);
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Type d'exploitation</td>
|
|
<td width="350" class="StyleInfoData"><?=$tabTypeExploitation[$etab['TypeExploitation']]?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
|
|
<h2>Dirigeants</h2>
|
|
<?php
|
|
$dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
|
?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2" width="550" class="StyleInfoData">
|
|
<table>
|
|
<?php
|
|
if (count($dirs)>0)
|
|
{
|
|
foreach ($dirs as $i=>$dir)
|
|
{
|
|
$societe = str_replace('&#160;',' ', $dir['Societe']);
|
|
$nom = str_replace('&#160;',' ', $dir['Societe'].' '.$dir['Nom'].' '.$dir['Prenom']);
|
|
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
|
|
?>
|
|
<tr>
|
|
<td class="StyleInfoData" width="120"><?php print $dir['Titre'];?></td>
|
|
<td class="StyleInfoData" width="200">
|
|
<?php
|
|
if($societe != '')
|
|
{
|
|
?>
|
|
<a href="/?page=recherche&vue=list&formR[type]=ent&formR[raisonSociale]=<?=$societe?>" title="Recherche à partir de la raison sociale">
|
|
<?=$societe;?>
|
|
</a>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
if($nom != ''){
|
|
?>
|
|
<a href="/?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?=$dir['Nom']?>&formR[dirPrenom]=<?=$dir['Prenom']?>&formR[dirDateNaissJJ]=<?=substr($dir['NaissDate'],0,2)?>&formR[dirDateNaissMM]=<?=substr($dir['NaissDate'],3,2)?>&formR[dirDateNaissAAAA]=<?=substr($dir['NaissDate'],6,4)?>" title="Recherche à partir du nom du dirigeant">
|
|
<?php print $nom;?>
|
|
</a>
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoData" width="230"><?
|
|
if (trim($dir['NaissDate'])<>'' && trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
|
|
echo 'né(e) le '.$dir['NaissDate'].' à '.$dir['NaissVille'];
|
|
if (trim($dir['NaissDepPays'])<>'')
|
|
echo ' ('.$dir['NaissDepPays'].')';
|
|
} elseif (trim($dir['NaissDate'])<>'') {
|
|
echo 'né(e) le '.$dir['NaissDate'];
|
|
} elseif (trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
|
|
echo 'né(e) à '.$dir['NaissVille'];
|
|
echo ' ('.$dir['NaissDepPays'].')';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo '<tr><td class="StyleInfoData" width="550"> Aucune donnée n\'est présente dans notre base</td></tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
<h2>Actionnaires</h2>
|
|
<?php
|
|
require_once 'partenaires/classMTva.php';
|
|
require_once 'partenaires/classMMap.php';
|
|
|
|
$liens = scoresws_liens($siret, $siren, $idEntreprise);
|
|
?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2" width="550" class="StyleInfoData">
|
|
<table>
|
|
<?php
|
|
if( ($_SESSION['tabInfo']['entrep']['fj']>=1000 && $_SESSION['tabInfo']['entrep']['fj']<=1999)
|
|
|| ($_SESSION['tabInfo']['entrep']['fj']>=10 && $_SESSION['tabInfo']['entrep']['fj']<=19) )
|
|
{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">Cette entreprise est une personne physique.</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
else
|
|
{
|
|
if (@count($liens['actionnaires'])>0)
|
|
{
|
|
foreach ($liens['actionnaires'] as $i=>$lien)
|
|
{
|
|
if ($lien['Actif']==0)
|
|
{
|
|
$font1='<font color="gray"><i>';
|
|
$font2='</i></font>';
|
|
} else
|
|
$font1=$font2='';
|
|
?>
|
|
<tr>
|
|
<td class="StyleInfoData" width="100">
|
|
<?php
|
|
echo $font1;
|
|
if ($lien['Pmin']*1>0) echo $lien['Pmin'].' %';
|
|
elseif ($lien['MajMin']=='+') echo 'major.';
|
|
elseif ($lien['MajMin']=='-') echo 'minor.';
|
|
elseif ($lien['MajMin']=='C') echo 'major.';
|
|
elseif ($lien['MajMin']=='S') echo 'minor.';
|
|
else echo ' ';
|
|
echo $font2;
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoLib" width="300">
|
|
<?php
|
|
echo $font1;
|
|
echo utf8_decode($lien['RaisonSociale']);
|
|
echo $font2;
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoData" width="150">
|
|
<?php
|
|
echo $font1;
|
|
if ( $lien['Siren']<>'' && $lien['Siren']<>0)
|
|
{
|
|
echo 'Siren <a href="./?page=identite&siret='. $lien['Siren'] .'">'. $lien['Siren'].'</a>';
|
|
}
|
|
else ' ';
|
|
|
|
if ($lien['Pays']<>'France') echo '<b>'.utf8_decode($lien['Pays']).'</b>';
|
|
echo $font2;
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
} //Fin pour chaque actionnaire
|
|
} else {
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">Aucun actionnaire référencé par nos services</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}//Fin test personne physique
|
|
?>
|
|
<tr><td colspan="3"> </td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<h2>Participations</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2" width="550" class="StyleInfoData">
|
|
<table>
|
|
<?php
|
|
if (@count($liens['participations'])>0)
|
|
{
|
|
foreach ($liens['participations'] as $i=>$lien)
|
|
{
|
|
if ($lien['Actif']==0) {
|
|
$font1='<font color="gray"><i>';
|
|
$font2='</i></font>';
|
|
} else
|
|
$font1=$font2='';
|
|
?>
|
|
<tr>
|
|
<td class="StyleInfoData" width="100">
|
|
<?php
|
|
echo $font1;
|
|
if ($lien['Pmin']*1>0) echo $lien['Pmin'].' %';
|
|
elseif ($lien['MajMin']=='+') echo 'major.';
|
|
elseif ($lien['MajMin']=='-') echo 'minor.';
|
|
elseif ($lien['MajMin']=='C') echo 'major.';
|
|
elseif ($lien['MajMin']=='S') echo 'minor.';
|
|
else echo ' ';
|
|
echo $font2;
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoLib" width="300"><?
|
|
echo $font1;
|
|
echo utf8_decode($lien['RaisonSociale']);
|
|
echo $font2;
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoData" width="150"><?
|
|
echo $font1;
|
|
if ( $lien['Siren']<>'' && $lien['Siren']<>0) {
|
|
echo 'Siren <a href="./?page=identite&siret='. $lien['Siren'] .'">'. $lien['Siren'].'</a>';
|
|
}
|
|
else ' ';
|
|
|
|
if ($lien['Pays']<>'France') echo '<b>'.utf8_decode($lien['Pays']);
|
|
echo $font2;?></b>
|
|
</td>
|
|
</tr>
|
|
<?
|
|
} // Fin pour chaque participations
|
|
}else{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">Aucune participation référencée par nos services</td>
|
|
</tr>
|
|
<?
|
|
}//Fin conditions participations
|
|
?>
|
|
<tr><td colspan="3"> </td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<h2>Eléments Financiers</h2>
|
|
<?php
|
|
require_once 'ratios/ratios.php';
|
|
$result = scoresws_ratios($siret, $siren, $idEntreprise);
|
|
$bilansInfos = $result['bilansInfos'];
|
|
$ratiosInfos = $result['ratiosInfos'];
|
|
$ratiosEntrep = $result['ratiosEntrep'];
|
|
$ratiosEntrepEvol = $result['ratiosEntrepEvol'];
|
|
$ratiosSecteur = $result['ratiosSecteur'];
|
|
$dataActif = $result['dataActif'];
|
|
$dataPassif = $result['dataPassif'];
|
|
$dataSIG = $result['dataSIG'];
|
|
|
|
list($typeBilan, $numBilan) = countBilans($bilansInfos, $typeBilan);
|
|
$numBilanN = $numBilan['N'];
|
|
$numBilanC = $numBilan['C'];
|
|
$numBilanB = $numBilan['B'];
|
|
$numBilanA = $numBilan['A'];
|
|
list($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol, $ratiosSecteur, $dataActif, $dataPassif, $dataSIG) = filtreTypeBilans($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol, $ratiosSecteur, $dataActif, $dataPassif, $dataSIG, $typeBilan);
|
|
$nbrAnnees = count($bilansInfos)-1;
|
|
$data = synthese_datagraphmin($bilansInfos, $ratiosEntrep);
|
|
$dataGraph = $data['graph'];
|
|
$dataEvol = $data['evol'];
|
|
|
|
if ($numBilanN==0 && $numBilanC==0)
|
|
{
|
|
?>
|
|
<table>
|
|
<tr><td width="30"> </td><td><b>Aucun bilan disponible pour cette entreprise !</b></td></tr>
|
|
</table>
|
|
<?php
|
|
}else{
|
|
?>
|
|
<table id="synthese">
|
|
<thead>
|
|
<tr>
|
|
<th align="center"></th>
|
|
<th class="date" colspan="2"><?=synthese_formatdateCloture($bilansInfos, 2)?></th>
|
|
<th class="date" colspan="2"><?=synthese_formatdateCloture($bilansInfos, 1)?></th>
|
|
<th class="date" colspan="2"><?=synthese_formatdateCloture($bilansInfos, 0)?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?=synthese_tablerowmin($ratiosInfos, $dataEvol)?>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<h2>Paiements</h2>
|
|
<?php
|
|
require_once 'partenaires/classMCoface.php';
|
|
|
|
$etab = scoresws_indiscore($siret, $siren, $idEntreprise);
|
|
$firephp->log($etab,'indiscore');
|
|
?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">
|
|
<?=html_entity_decode($etab['infoPaiement'])?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Procédures collectives</h2>
|
|
<table>
|
|
<?php
|
|
//Situation Jurique + affichage date de radiation
|
|
$dateRadiation = '';
|
|
if(isset($etab['DateRadiation']) && $etab['DateRadiation']!='' && $etab['DateRadiation']!='0000-00-00'){
|
|
$dateRadiation = WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['DateRadiation']));
|
|
}
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Situation juridique</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
//Procédure collective
|
|
if ($etab['SituationJuridique']=='P')
|
|
{
|
|
?>
|
|
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
|
|
<font color="red"><b>En procédure collective</b></font>
|
|
</a>
|
|
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php echo $dateRadiation; } ?>
|
|
<?php
|
|
}/*else{
|
|
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
|
|
}*/
|
|
//Radiation
|
|
elseif($etab['SituationJuridique']=='RR')
|
|
{
|
|
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php echo $dateRadiation; }
|
|
}elseif($etab['SituationJuridique']=='RP'){
|
|
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php echo $dateRadiation; }
|
|
}else{
|
|
?>Aucune procédure enregistrée à ce jour par nos services.<?php
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
// Fin Situation juridique
|
|
?>
|
|
</table>
|
|
|
|
<h2>Scores et encours</h2>
|
|
<table>
|
|
<?php
|
|
if(!empty($etab['scores']['ConanH']))
|
|
{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Score Conan Holder</td>
|
|
<td width="350" class="StyleInfoData scoreTip" titre="Score Conan Holder" rel="./pages/scorestooltip.php?score=conanh&val=<?=$etab['scores']['ConanH']?>"><?=$etab['scores']['ConanH']?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
if(!empty($etab['scores']['Afdcc2']))
|
|
{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Score Afdcc 2</td>
|
|
<td width="350" class="StyleInfoData scoreTip" titre="Score Afdcc2" rel="./pages/scorestooltip.php?score=afdcc2&val=<?=$etab['scores']['Afdcc2']?>"><?=$etab['scores']['Afdcc2']?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
if(!empty($etab['scores']['Z']))
|
|
{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Score Z</td>
|
|
<td width="350" class="StyleInfoData scoreTip" titre="Score Z" rel="./pages/scorestooltip.php?score=scorez&val=<?=$etab['scores']['Z']?>"><?=$etab['scores']['Z']?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
switch($_SESSION['tabInfo']['typeScore'])
|
|
{
|
|
case '20':
|
|
$maxIndiscore = $_SESSION['tabInfo']['typeScore'];
|
|
$indiscore = $etab['Indiscore20'];
|
|
break;
|
|
case '100':
|
|
default:
|
|
$maxIndiscore = empty($_SESSION['tabInfo']['typeScore'])? '100' : $_SESSION['tabInfo']['typeScore'];
|
|
$indiscore = $etab['Indiscore'];
|
|
break;
|
|
}
|
|
|
|
if(!empty($indiscore))
|
|
{
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">IndiScore</td>
|
|
<td width="350" class="StyleInfoData scoreTip" titre="Indiscore"
|
|
rel="./pages/scorestooltip.php?score=indiscore&val=<?=$indiscore?>">
|
|
<?=$indiscore?> (<?=$etab['TendanceIndiscore']?>)
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Encours conseillé</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
if($etab['infoEncours']!='' && !is_numeric($etab['encours']) && $etab['encours']=='N/A'){
|
|
?><?=$etab['infoEncours']?>
|
|
<?php
|
|
}else{
|
|
if ($etab['Indiscore']!=0)
|
|
{
|
|
?>
|
|
<?=round($etab['encours']/1000)?> K€
|
|
<?php
|
|
}
|
|
?>
|
|
<?php print $etab['infoEncours'];?>
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php ?>
|
|
</table>
|
|
|
|
<p class="confidentiel blockh2">
|
|
<?php
|
|
require_once 'cgu/cgu.php';
|
|
echo afficheCgu();
|
|
?>
|
|
</p>
|
|
|
|
</div>
|