2009-10-15 15:09:54 +00:00
< ? php
if ( ! $_SESSION [ 'connected' ]) die ();
2010-02-10 17:27:03 +00:00
//Traitement des paramètres
2009-10-15 15:09:54 +00:00
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'siret' ]));
2010-02-10 17:27:03 +00:00
if ( strlen ( $siret ) <> 0 && strlen ( $siret ) <> 9 && strlen ( $siret ) <> 14 ) die ( 'Paramètres incorrects !' );
2009-10-15 15:09:54 +00:00
2010-02-10 17:27:03 +00:00
$idEntreprise = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'idEntreprise' ])) * 1 ; // Si id=0 alors non communiqué
if (( $siret * 1 ) == 0 && $idEntreprise == 0 ) die ( 'Paramètres incorrects !' );
2009-10-15 15:09:54 +00:00
$siren = substr ( $siret , 0 , 9 );
require_once 'scoresws/scoresws.php' ;
require_once 'common/dates.php' ;
require_once 'utils.php' ;
require_once 'user/user.php' ;
$etab = scoresws_identite ( $siret , $siren , $idEntreprise );
?>
2009-12-07 08:07:04 +00:00
< script type = " text/javascript " >
$ ( document ) . ready ( function ()
{
$ ( '.scoreTip' ) . each ( function ()
{
$ ( this ) . qtip (
{
content : {
text : 'Chargement...' ,
url : $ ( this ) . attr ( 'rel' ),
title : { text : $ ( this ) . attr ( 'titre' )}
},
position : {
corner : {
target : 'leftMiddle' ,
tooltip : 'rightMiddle'
}
},
show : { solo : true },
style : {
tip : true ,
border : { width : 1 , radius : 0 },
name : 'light' ,
width : 400
}
})
});
});
</ script >
2009-10-15 15:09:54 +00:00
< div id = " center " >
< h1 > RAPPORT DE SYNTHESE </ h1 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siret du si & egrave ; 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 " >& nbsp ; </ td >
2010-01-13 09:14:51 +00:00
< ? 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>
2009-10-15 15:09:54 +00:00
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ 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' ] <> '' )
2010-02-10 17:27:03 +00:00
echo " <i> (Fin d'activité en " . WDate :: dateT ( 'Ymd' , 'm/Y' , $dateCloture ) . ')</i>' ;
2009-10-15 15:09:54 +00:00
}
2009-12-10 09:54:47 +00:00
if ( $etab [ 'Siren' ] * 1 <> 0 && preg_match ( '/\bAVISINSEE\b/i' , $_SESSION [ 'tabInfo' ][ 'droits' ]))
2009-10-15 15:09:54 +00:00
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 >
2010-02-10 17:27:03 +00:00
< h2 > Raison sociale & amp ; Coordonnées </ h2 >
2009-10-15 15:09:54 +00:00
< table >
< ? php
//Nom
$title = '' ;
if ( isset ( $etab [ 'NomLong' ]) && $etab [ 'NomLong' ] != '' && $etab [ 'NomLong' ] != $etab [ 'Nom' ] )
$title = $etab [ 'NomLong' ];
?>
< tr >
< td width = " 30 " >& nbsp ; </ 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 " >& nbsp ; </ 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 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Date d ' immatriculation </ td >
< td width = " 350 " class = " StyleInfoData " >< ? = $dateImmat ?> </td>
</ tr >
< ? php
}
?>
< ? php
2010-02-10 17:27:03 +00:00
//Date de création de l'établissement
2009-10-15 15:09:54 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Cr & eacute ; ation de l ' & eacute ; 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 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Adresse </ td >
< td width = " 350 " class = " StyleInfoData " >
< ? php
if ( $etab [ 'AdresseRue' ] == '' ){ $voie = $etab [ 'Adresse2' ]; } else { $voie = $etab [ 'AdresseRue' ]; }
?>
2010-02-10 17:27:03 +00:00
< 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 " >
2009-12-07 08:07:04 +00:00
< span class = " adresse " >< ? php print $etab [ 'Adresse' ]; ?> </span>
< ? php
2009-10-15 15:09:54 +00:00
if ( preg_match ( '/CHEZ SOFRADOM/i' , $etab [ 'Adresse2' ]))
2010-02-10 17:27:03 +00:00
$etab [ 'Adresse2' ] = '<a title="Voir la fiche d\'identité du domiciliataire de cette entreprise" href="/?page=identite&siret=42495045900018&idEntreprise=6720043">CHEZ SOFRADOM</a>' ;
2009-10-15 15:09:54 +00:00
//http://extranet.devlocal.com/?page=identite&siret=42495045900018&idEntreprise=6720043
if ( $etab [ 'Adresse2' ] <> '' )
2009-12-07 08:07:04 +00:00
print '<span class="adresse">' . $etab [ 'Adresse2' ] . '</span>' ;
2009-10-15 15:09:54 +00:00
?>
< ? php
$cp = $etab [ 'CP' ] * 1 ;
if ( $cp <> 0 )
2009-12-07 08:07:04 +00:00
print '<span class="adresse">' . $etab [ 'CP' ] . ' ' . strWsToHtml ( $etab [ 'Ville' ]) . '</span>' ;
2009-10-15 15:09:54 +00:00
if ( $etab [ 'Pays' ] <> '' && strtoupper ( substr ( $etab [ 'Pays' ], 0 , 3 )) <> 'FRA' )
2009-12-07 08:07:04 +00:00
print '<span class="adresse">' . strWsToHtml ( $etab [ 'Pays' ]) . '</span>' ;
2009-10-15 15:09:54 +00:00
?>
</ a >
</ td >
</ tr >
</ table >
2010-02-10 17:27:03 +00:00
< h2 > Activité ( s ) & amp ; Chiffre d ' affaire </ h2 >
2009-10-15 15:09:54 +00:00
< table >
< ? php
2010-02-10 17:27:03 +00:00
//Activité de l'entreprise
2009-10-15 15:09:54 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Activit & eacute ; de l ' entreprise </ td >
< td width = " 350 " class = " StyleInfoData " >
< ? php
2010-02-10 17:27:03 +00:00
if ( $etab [ 'Activite' ] <> '' && ! preg_match ( '/non pr(e|é)cis(e|é)/i' , utf8_decode ( $etab [ 'Activite' ]))) {
2009-10-15 15:09:54 +00:00
$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
2009-12-10 09:54:47 +00:00
if ( preg_match ( '/\bNAF4\b/i' , $_SESSION [ 'tabInfo' ][ 'pref' ]) && trim ( @ $etab [ 'Naf4Ent' ]) <> '' ) {
2009-10-15 15:09:54 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Anciens codes NAF </ td >
< td width = " 350 " class = " StyleInfoData " >< b > Entr . :& nbsp ; & nbsp ; </ 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' )
{
2010-02-10 17:27:03 +00:00
$tabCreation = array ( 'a1' => 'Création' ,
2009-10-15 15:09:54 +00:00
'a3' => 'Achat' ,
'a4' => 'Apport' ,
2010-02-10 17:27:03 +00:00
'a6' => 'Prise en location gérance' ,
2009-10-15 15:09:54 +00:00
'a7' => 'Partage' ,
'a8' => 'Reprise' ,
'aA' => 'Reprise globale de l\'exploitation agricole' ,
'aB' => 'Poursuite de l\'exploitation agricole par le conjoint' ,
2010-02-10 17:27:03 +00:00
'aC' => 'Transfert de propriété de l\'exploitation agricole' ,
2009-10-15 15:09:54 +00:00
'aD' => 'Apport d\'exploitation(s) agricole(s) individuelle(s)' ,
'aE' => 'Reprise d\'exploitation agricole individuelle' ,
);
?>
< tr >
< td width = " 30 " >& nbsp ; </ 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' ]);
2010-02-10 17:27:03 +00:00
if ( isset ( $etab [ 'Bilan' ][ 'Resultat' ])) $title .= ' et Résultat de ' . moneyKM ( $etab [ 'Bilan' ][ 'Resultat' ]) . deviseText ( $etab [ 'Bilan' ][ 'Devise' ]);
2009-10-15 15:09:54 +00:00
if ( isset ( $etab [ 'Bilan' ][ 'Cloture' ])) $title .= ' au ' . WDate :: dateT ( 'Ymd' , 'd/m/Y' , str_replace ( '-' , '' , $etab [ 'Bilan' ][ 'Cloture' ]));
?>
< tr >
< td width = " 30 " >& nbsp ; </ 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' ))
{
print 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' ){
print strWsToHtml ( $etab [ 'TrancheCALib' ]);
} else {
print '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 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Capital < ? php if ( isset ( $etab [ 'CapitalType' ]) && $etab [ 'CapitalType' ] == 'V' ){ print '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 " >& nbsp ; </ 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 " >& nbsp ; </ 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 " >
2009-12-07 08:07:04 +00:00
< ? php
if ( $societe != '' )
{
?>
2010-02-10 17:27:03 +00:00
< a href = " /?page=recherche&vue=list&formR[type]=ent&formR[raisonSociale]=<?php print $societe ;?> " title = " Recherche à partir de la raison sociale " >
2009-12-07 08:07:04 +00:00
< ? = $societe ; ?>
2009-10-15 15:09:54 +00:00
</ a >
< ? php
}
?>
& nbsp ;
< ? php
if ( $nom != '' ){
?>
2010-02-10 17:27:03 +00:00
< a href = " /?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?php print $dir['Nom'] ;?>&formR[dirPrenom]=<?php print $dir['Prenom'] ;?>&formR[dirDateNaissJJ]=<?php print substr( $dir['NaissDate'] ,0,2);?>&formR[dirDateNaissMM]=<?php print substr( $dir['NaissDate'] ,3,2);?>&formR[dirDateNaissAAAA]=<?php print substr( $dir['NaissDate'] ,6,4);?> " title = " Recherche à partir du nom du dirigeant " >
2009-10-15 15:09:54 +00:00
< ? 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 " >& nbsp ; </ 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 " >& nbsp ; </ 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 ;
2009-12-07 08:07:04 +00:00
echo utf8_decode ( $lien [ 'RaisonSociale' ]);
2009-10-15 15:09:54 +00:00
echo $font2 ;
?>
</ td >
< td class = " StyleInfoData " width = " 150 " >
< ? php
echo $font1 ;
2009-12-07 08:07:04 +00:00
if ( $lien [ 'Siren' ] <> '' && $lien [ 'Siren' ] <> 0 )
{
2009-10-15 15:09:54 +00:00
echo 'Siren <a href="./?page=identite&siret=' . $lien [ 'Siren' ] . '">' . $lien [ 'Siren' ] . '</a>' ;
}
else ' ' ;
2009-12-07 08:07:04 +00:00
if ( $lien [ 'Pays' ] <> 'France' ) echo '<b>' . utf8_decode ( $lien [ 'Pays' ]) . '</b>' ;
2009-10-15 15:09:54 +00:00
echo $font2 ;
?>
</ td >
</ tr >
< ? php
} //Fin pour chaque actionnaire
} else {
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 2 " class = " StyleInfoData " > Aucun actionnaire r & eacute ; f & eacute ; renc & eacute ; par nos services </ td >
</ tr >
< ? php
}
} //Fin test personne physique
?>
< tr >< td colspan = " 3 " >& nbsp ; </ td ></ tr >
</ table >
</ td >
</ tr >
</ table >
< h2 > Participations </ h2 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ 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 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 2 " class = " StyleInfoData " > Aucune participation r & eacute ; f & eacute ; renc & eacute ; e par nos services </ td >
</ tr >
< ?
} //Fin conditions participations
?>
< tr >< td colspan = " 3 " >& nbsp ; </ td ></ tr >
</ table >
</ td >
</ tr >
</ table >
2010-02-10 17:27:03 +00:00
< h2 > Eléments Financiers </ h2 >
2009-10-15 15:09:54 +00:00
< ? php
require_once 'ratios/ratios.php' ;
2009-10-23 13:34:42 +00:00
$result = scoresws_ratios ( $siret , $siren , $idEntreprise );
2009-10-15 15:09:54 +00:00
$bilansInfos = $result [ 'bilansInfos' ];
$ratiosInfos = $result [ 'ratiosInfos' ];
$ratiosEntrep = $result [ 'ratiosEntrep' ];
$ratiosEntrepEvol = $result [ 'ratiosEntrepEvol' ];
2009-10-23 13:34:42 +00:00
$ratiosSecteur = $result [ 'ratiosSecteur' ];
$dataActif = $result [ 'dataActif' ];
$dataPassif = $result [ 'dataPassif' ];
$dataSIG = $result [ 'dataSIG' ];
2009-10-15 15:09:54 +00:00
list ( $typeBilan , $numBilan ) = countBilans ( $bilansInfos , $typeBilan );
$numBilanN = $numBilan [ 'N' ];
$numBilanC = $numBilan [ 'C' ];
$numBilanB = $numBilan [ 'B' ];
$numBilanA = $numBilan [ 'A' ];
2009-10-23 13:34:42 +00:00
list ( $bilansInfos , $ratiosEntrep , $ratiosEntrepEvol , $ratiosSecteur , $dataActif , $dataPassif , $dataSIG ) = filtreTypeBilans ( $bilansInfos , $ratiosEntrep , $ratiosEntrepEvol , $ratiosSecteur , $dataActif , $dataPassif , $dataSIG , $typeBilan );
2009-10-15 15:09:54 +00:00
$nbrAnnees = count ( $bilansInfos ) - 1 ;
$data = synthese_datagraphmin ( $bilansInfos , $ratiosEntrep );
$dataGraph = $data [ 'graph' ];
$dataEvol = $data [ 'evol' ];
2009-11-09 09:55:03 +00:00
if ( $numBilanN == 0 && $numBilanC == 0 )
{
?>
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
</ table >
< ? php
} else {
2009-10-15 15:09:54 +00:00
?>
< table id = " synthese " >
< thead >
< tr >
< th align = " center " ></ th >
2009-12-07 08:07:04 +00:00
< 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>
2009-10-15 15:09:54 +00:00
</ tr >
</ thead >
< tbody >
< ? = synthese_tablerowmin ( $ratiosInfos , $dataEvol ) ?>
</ tbody >
</ table >
2009-11-09 09:55:03 +00:00
< ? php
}
?>
2009-10-15 15:09:54 +00:00
< h2 > Paiements </ h2 >
2010-01-13 09:14:51 +00:00
< ? php
2010-01-13 09:41:33 +00:00
require_once 'partenaires/classMCoface.php' ;
2010-01-13 09:14:51 +00:00
2010-01-13 09:41:33 +00:00
$etab = scoresws_indiscore ( $siret , $siren , $idEntreprise );
$firephp -> log ( $etab , 'indiscore' );
2010-01-13 09:14:51 +00:00
?>
2010-01-13 12:52:14 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 2 " class = " StyleInfoData " >
< ? = html_entity_decode ( $etab [ 'infoPaiement' ]) ?>
</ td >
</ tr >
</ table >
2009-10-15 15:09:54 +00:00
2010-02-10 17:27:03 +00:00
< h2 > Procédures collectives </ h2 >
2009-10-15 15:09:54 +00:00
< 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 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Situation juridique </ td >
< td width = " 350 " class = " StyleInfoData " >
< ? php
2010-02-10 17:27:03 +00:00
//Procédure collective
2009-10-15 15:09:54 +00:00
if ( $etab [ 'SituationJuridique' ] == 'P' )
{
?>
< a href = " ./?page=annonces&siret=<?= $etab['Siret'] ?>&idEntreprise=<?= $idEntreprise ?> " >
< font color = " red " >< b > En proc & eacute ; dure collective </ b ></ font >
</ a >
2010-02-10 17:27:03 +00:00
< ? php if ( $dateRadiation != '' ){ ?> <br/>Radié du RCS le <?php print $dateRadiation; } ?>
2009-10-15 15:09:54 +00:00
< ? php
} /* else {
2010-02-10 17:27:03 +00:00
if ( $dateRadiation != '' ){ ?> Radié du RCS le <?php print $dateRadiation; }
2009-10-15 15:09:54 +00:00
} */
//Radiation
elseif ( $etab [ 'SituationJuridique' ] == 'RR' )
{
2010-02-10 17:27:03 +00:00
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
2009-10-15 15:09:54 +00:00
} elseif ( $etab [ 'SituationJuridique' ] == 'RP' ){
2010-02-10 17:27:03 +00:00
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
2009-10-15 15:09:54 +00:00
} else {
2010-02-10 17:27:03 +00:00
?> Aucune procédure enregistrée à ce jour par nos services.<?php
2009-10-15 15:09:54 +00:00
}
?>
</ td >
</ tr >
< ? php
// Fin Situation juridique
?>
</ table >
< h2 > Scores et encours </ h2 >
< table >
2009-11-06 16:35:43 +00:00
< ? php
if ( ! empty ( $etab [ 'scores' ][ 'ConanH' ]))
{
?>
2009-10-15 15:09:54 +00:00
< tr >
2009-11-06 16:35:43 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Score Conan Holder </ td >
2009-12-07 08:07:04 +00:00
< td width = " 350 " class = " StyleInfoData scoreTip " titre = " Score Conan Holder " rel = " ./pages/scorestooltip.php?score=conanh&val=<?= $etab['scores'] ['ConanH']?> " >< ? = $etab [ 'scores' ][ 'ConanH' ] ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
2009-11-06 16:35:43 +00:00
< ? php
}
if ( ! empty ( $etab [ 'scores' ][ 'Afdcc2' ]))
{
?>
2009-10-15 15:09:54 +00:00
< tr >
2009-11-06 16:35:43 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Score Afdcc 2 </ td >
2009-12-07 08:07:04 +00:00
< td width = " 350 " class = " StyleInfoData scoreTip " titre = " Score Afdcc2 " rel = " ./pages/scorestooltip.php?score=afdcc2&val=<?= $etab['scores'] ['Afdcc2']?> " >< ? = $etab [ 'scores' ][ 'Afdcc2' ] ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
2009-11-06 16:35:43 +00:00
< ? php
}
if ( ! empty ( $etab [ 'scores' ][ 'Z' ]))
{
?>
2009-10-15 15:09:54 +00:00
< tr >
2009-11-06 16:35:43 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Score Z </ td >
2009-12-07 08:07:04 +00:00
< td width = " 350 " class = " StyleInfoData scoreTip " titre = " Score Z " rel = " ./pages/scorestooltip.php?score=scorez&val=<?= $etab['scores'] ['Z']?> " >< ? = $etab [ 'scores' ][ 'Z' ] ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
2009-11-06 16:35:43 +00:00
< ? php
}
2010-01-13 16:29:44 +00:00
switch ( $_SESSION [ 'tabInfo' ][ 'typeScore' ])
{
case '20' :
$maxIndiscore = $_SESSION [ 'tabInfo' ][ 'typeScore' ];
$indiscore = $etab [ 'Indiscore20' ];
break ;
case '100' :
default :
2010-01-15 17:46:47 +00:00
$maxIndiscore = empty ( $_SESSION [ 'tabInfo' ][ 'typeScore' ]) ? '100' : $_SESSION [ 'tabInfo' ][ 'typeScore' ];
2010-01-13 16:29:44 +00:00
$indiscore = $etab [ 'Indiscore' ];
break ;
}
if ( ! empty ( $indiscore ))
2009-11-06 16:35:43 +00:00
{
?>
2009-10-15 15:09:54 +00:00
< tr >
2009-11-06 16:35:43 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > IndiScore </ td >
2010-01-13 16:29:44 +00:00
< td width = " 350 " class = " StyleInfoData scoreTip " titre = " Indiscore " rel = " ./pages/scorestooltip.php?score=indiscore&val=<?= $etab['Indiscore'] ?> " >< ? = $indiscore ?> (<?=$etab['TendanceIndiscore']?>)</td>
2009-10-15 15:09:54 +00:00
</ tr >
2009-11-06 16:35:43 +00:00
< ? php
}
?>
2009-10-15 15:09:54 +00:00
< tr >
2009-11-06 16:35:43 +00:00
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 200 " class = " StyleInfoLib " > Encours conseillé </ td >
2009-11-06 16:35:43 +00:00
< td width = " 350 " class = " StyleInfoData " >
< ? php
2009-11-09 10:15:33 +00:00
if ( $etab [ 'infoEncours' ] != '' && ! is_numeric ( $etab [ 'encours' ]) && $etab [ 'encours' ] == 'N/A' ){
?> <?=$etab['infoEncours']?>
< ? php
} else {
if ( $etab [ 'Indiscore' ] != 0 )
{
2009-11-06 16:35:43 +00:00
?>
2009-11-09 10:15:33 +00:00
< ? = round ( $etab [ 'encours' ] / 1000 ) ?> K€
2009-11-06 16:35:43 +00:00
< ? php
}
?>
2009-11-09 10:15:33 +00:00
< ? php print $etab [ 'infoEncours' ]; ?>
2009-10-15 15:09:54 +00:00
< ? php
}
?>
2009-11-06 16:35:43 +00:00
</ td >
2009-10-15 15:09:54 +00:00
</ tr >
2009-11-06 16:35:43 +00:00
< ? php ?>
2009-10-15 15:09:54 +00:00
</ table >
2009-11-09 10:35:52 +00:00
< p class = " confidentiel " >
* Informations confidentielles , ne pas divulguer .
< br />
2010-02-10 17:27:03 +00:00
La reproduction , la rediffusion ou l 'extraction automatique par tout moyen d' informations figurant sur les bases de Scores & Decisions est interdite . L 'emploi de robots, programmes permettant l' extraction directe de données est rigoureusement interdit sans accord préalable écrit de Scores & Decisions SAS .
La consultation ou la réception de documents n 'entraîne aucun transfert de droit de propriété intellectuelle en faveur de l' utilisateur . Ce dernier s 'engage à ne pas rediffuser ou à reproduire les données fournies autrement que pour son usage propre. Les données transmises sont traitées en conformité avec les usages en vigueur. L' utilisateur recherche , sélectionne et interprète les données sous sa propre responsabilité .
2009-11-09 10:35:52 +00:00
< br />
2010-02-10 17:27:03 +00:00
L 'extranet Scores & Decisions est un service privé distinct des Journaux Officiels, de l' INPI et de l ' INSEE et est édité par SCORES & DECISIONS SAS , RCS VERSAILLES B 494967938 , licencié des sources officielles précités .
2009-11-09 10:35:52 +00:00
</ p >
2009-10-15 15:09:54 +00:00
</ div >