2010-03-03 11:34:57 +00:00
< ? php
2010-02-10 17:27:03 +00:00
//Traitement des paramètres
2010-04-27 08:09:23 +00:00
if ( ! page_checkParams ()) die ( 'Paramètres incorrects !' );
2010-01-26 18:07:35 +00:00
2010-04-27 07:20:30 +00:00
$niveau = isset ( $_REQUEST [ 'niveau' ]) ? $_REQUEST [ 'niveau' ] : '' ;
2009-10-08 13:20:51 +00:00
?>
< div id = " center " >
2010-03-03 11:34:57 +00:00
< ? php
2009-09-24 16:05:13 +00:00
require_once 'utils.php' ;
require_once 'common/dates.php' ;
require_once 'cache/cache.php' ;
2009-10-08 13:20:51 +00:00
require_once 'logos/logos.php' ;
2009-09-24 16:05:13 +00:00
require_once 'scoresws/scoresws.php' ;
2009-12-04 17:17:09 +00:00
require_once 'scoresws/identite.php' ;
2009-10-08 13:20:51 +00:00
//=> BLOC IDENTITE
$etab = scoresws_identite ( $siret , $siren , $idEntreprise );
2009-12-04 17:17:09 +00:00
function dRow ( $lib , $data , $title = '' )
{
$html = '<tr>' . " \n " ;
$html .= ' <td width="30"> </td>' . " \n " ;
$html .= ' <td width="200" class="StyleInfoLib">' . $lib . '</td>' . " \n " ;
2010-03-03 11:34:57 +00:00
if ( $title != '' ) $title = ' title="' . $title . '"' ;
2009-12-04 17:17:09 +00:00
$html .= ' <td width="350" class="StyleInfoData"' . $title . '>' . $data . '</td>' . " \n " ;
$html .= '</tr>' . " \n " ;
return $html ;
}
2009-10-08 13:20:51 +00:00
?>
2009-10-16 15:21:58 +00:00
< h1 > RAPPORT DE SYNTHESE </ h1 >
< p id = " rsynthese " > SOCI & Eacute ; T & Eacute ; : < ? = $etab [ 'Nom' ] ?> </p>
2009-10-08 13:20:51 +00:00
< h1 class = " titre " > IDENTIT & Eacute ; DE L ' ENTREPRISE </ h1 >
2009-12-04 17:17:09 +00:00
2009-10-08 13:20:51 +00:00
< table >
2010-03-03 11:34:57 +00:00
< ? php
2009-12-04 17:17:09 +00:00
//Siret
$element = formatElement ( 'identite' , 'siret' , array ( $etab [ 'Siren' ], $etab [ 'Siret' ]));
echo dRow ( $element [ 'lib' ], $element [ 'data' ]);
//Siret siege
$element = formatElement ( 'identite' , 'siretsiege' , array ( $etab [ 'SiretSiege' ]));
echo dRow ( $element [ 'lib' ], $element [ 'data' ]);
2010-02-10 17:27:03 +00:00
//Numéro tva intracommunautaire
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'tvanumero' , array ( $etab [ 'TvaNumero' ], $etab [ 'TvaAttribue' ], $etab [ 'Dept' ]));
2009-10-08 13:20:51 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
2009-12-04 17:17:09 +00:00
< td width = " 200 " class = " StyleInfoLib " >< ? = $element [ 'lib' ] ?> </td>
< td width = " 350 " class = " StyleInfoData " valign = " middle " >< ? = $element [ 'data' ] ?> </td>
2009-10-08 13:20:51 +00:00
</ tr >
< ? php
2009-12-04 17:17:09 +00:00
//Isin
$element = formatElement ( 'identite' , 'isin' , array ( $etab [ 'Isin' ], $etab [ 'Siret' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
//Capitalisation
$element = formatElement ( 'identite' , 'capitalisation' , array ( $etab [ 'Bourse' ], $etab [ 'Isin' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Ne pas afficher le logo si il n'existe pas OU si le siren est à 0 OU si le siren est inférieur a 100
2009-10-08 13:20:51 +00:00
list ( $urlImg , $pathImg ) = logo_exist ( $etab [ 'Siren' ], $etab [ 'Isin' ], $etab [ 'Web' ]);
if ( ( ( $siren * 1 != 0 ) || ( $siren * 1 > 100 ) ) && file_exists ( $pathImg ) )
{
$tabTmp =@ getimagesize ( $pathImg );
$w = $tabTmp [ 0 ];
$h = $tabTmp [ 1 ];
if ( $w > 350 ) $strSize =@ redimage ( $pathImg , 350 , 150 );
else $strSize = '' ;
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Logo </ td >
< td width = " 350 " class = " StyleInfoData " >< img src = " <?= $urlImg ?> " < ? = $strSize ?> /></td>
</ tr >
< ? php
}
2010-02-10 17:27:03 +00:00
//Numéro RC
2010-01-13 12:52:14 +00:00
$element = formatElement ( 'identite' , 'numrc' , array ( $etab [ 'NumRC' ], $etab [ 'tribunalLib' ]));
2009-12-04 17:17:09 +00:00
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
2010-02-10 17:27:03 +00:00
//Autre identifiant : Numéro WALDEC ou ancien numéro RC si le nouveau n'est pas disponible
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'autreid' , array ( $etab [ 'AutreId' ], $etab [ 'TribunalLib' ], $etab [ 'NumRC' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'actif' , array ( $etab [ 'Siren' ], $siret , $idEntreprise , $etab [ 'Siege' ], $etab [ 'Actif' ], $etab [ 'DateClotEt' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Situation Jurique + affichage date de radiation
2010-01-13 12:52:14 +00:00
$element = formatElement ( 'identite' , 'situationjuridique' , array ( $etab [ 'SituationJuridique' ], $etab [ 'DateRadiation' ], $etab [ 'EntActiveRCS' ], $etab [ 'Siret' ], $idEntreprise ));
2009-12-04 17:17:09 +00:00
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
?>
</ table >
2009-12-04 17:17:09 +00:00
2010-02-10 17:27:03 +00:00
< h2 > Raison sociale & Coordonnées </ h2 >
2009-10-08 13:20:51 +00:00
< table >
< ? php
//Nom
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'raisonsociale' , array ( $etab [ 'Nom' ], $etab [ 'Nom2' ], $etab [ 'NomLong' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ], $element [ 'title' ]); }
2009-10-08 13:20:51 +00:00
2009-12-04 17:17:09 +00:00
//Enseigne / Sigle
$element = formatElement ( 'identite' , 'enseignesigle' , array ( $etab [ 'Enseigne' ], $etab [ 'Sigle' ], $etab [ 'SigleLong' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ], $element [ 'title' ]); }
2009-10-08 13:20:51 +00:00
//Forme juridique
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'fj' , array ( $etab [ 'FJ' ], $etab [ 'FJ_lib' ], $etab [ 'FJ2' ], $etab [ 'FJ2_Lib' ] ));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Date d'immatriculation
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'dateimmat' , array ( $etab [ 'DateImmat' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Date de création de l'entreprise
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'datecreaen' , array ( $etab [ 'DateCreaEn' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Date de création de l'établissement
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'datecreaet' , array ( $etab [ 'DateCreaEt' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
//Adresse
$element = formatElement ( 'identite' , 'adresse' , array ( $etab [ 'Adresse' ], $etab [ 'Adresse2' ], $etab [ 'AdresseNum' ], $etab [ 'AdresseRue' ], $etab [ 'CP' ], $etab [ 'Ville' ], $etab [ 'Pays' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Zones prioritaires
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'zones' , array ( $etab [ 'GeoInfos' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Téléphone
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'tel' , array ( $etab [ 'Tel' ], $etab [ 'Enseigne' ], $etab [ 'Nom' ], $etab [ 'Adresse' ], $etab [ 'CP' ], $etab [ 'Ville' ] ));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Fax
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'fax' , array ( $etab [ 'Fax' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Site web
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'web' , array ( $etab [ 'Web' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Email
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'mail' , array ( $etab [ 'Mail' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
?>
</ table >
2010-02-10 17:27:03 +00:00
< h2 > Activité ( s ) & Chiffre d ' affaire </ h2 >
2009-10-15 15:09:54 +00:00
< table >
2009-10-08 13:20:51 +00:00
< ? php
2010-02-10 17:27:03 +00:00
//Activité de l'entreprise
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'activiteen' , array ( $etab [ 'Activite' ], $etab [ 'NafEnt' ], $etab [ 'NafEntLib' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Activité de l'établissement
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'activiteet' , array ( $etab [ 'NafEtab' ], $etab [ 'NafEtabLib' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//NAF4
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'naf4' , array ( $etab [ 'Naf4Ent' ], $etab [ 'Naf4EntLib' ], $etab [ 'Naf4Etab' ], $etab [ 'Naf4EtabLib' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2010-02-10 17:27:03 +00:00
//Nature de l'activité
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'natureactivite' , array ( $etab [ 'NatureActivite' ], $etab [ 'Actif' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Origine du fond
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'originefond' , array ( $etab [ 'OrigineCreation' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
2009-10-15 15:09:54 +00:00
//Type d'exploitation
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'typeexploitation' , array ( $etab [ 'TypeExploitation' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-15 15:09:54 +00:00
2010-02-10 17:27:03 +00:00
//Nombre d'établissements actif
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'nbetabactif' , array ( $etab [ 'NbEtab' ], $etab [ 'Siret' ], $idEntreprise ));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Capital
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'capital' , array ( $etab [ 'Capital' ], $etab [ 'CapitalDev' ], $etab [ 'CapitalLib' ], $etab [ 'CapitalType' ], $etab [ 'Bilan' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ], $element [ 'title' ]); }
2009-10-08 13:20:51 +00:00
//Chiffre d'affaire
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'ca' , array ( $etab [ 'Bilan' ], $etab [ 'TrancheCALib' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ], $element [ 'title' ]); }
2009-10-08 13:20:51 +00:00
//Principaux dirigeants
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'dirigeants' , array ( $etab [ 'dir1Titre' ], $etab [ 'dir1NomPrenom' ], $etab [ 'dir1DateNaiss' ], $etab [ 'dir1LieuNaiss' ], $etab [ 'dir2Titre' ], $etab [ 'dir2NomPrenom' ], $etab [ 'dir2DateNaiss' ], $etab [ 'dir2LieuNaiss' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ]); }
2009-10-08 13:20:51 +00:00
//Effectif
2009-12-04 17:17:09 +00:00
$element = formatElement ( 'identite' , 'effectif' , array ( $etab [ 'Effectif' ], $etab [ 'Bilan' ]));
if ( $element !== false ){ echo dRow ( $element [ 'lib' ], $element [ 'data' ], $element [ 'title' ]); }
2009-10-08 13:20:51 +00:00
?>
</ table >
2009-12-04 17:17:09 +00:00
2009-10-08 13:20:51 +00:00
< ? php
//=> FIN BLOC IDENTITE
2009-09-24 16:05:13 +00:00
2009-10-08 13:20:51 +00:00
//=> BLOC ANNONCES
require_once 'cache/cache.php' ;
require_once 'partenaires/classMTva.php' ;
require_once 'partenaires/classMMap.php' ;
require_once 'partenaires/classMCoface.php' ;
require_once 'common/dates.php' ;
require_once 'scoresws/scoresws.php' ;
2009-09-24 16:05:13 +00:00
2010-02-10 17:27:03 +00:00
//Récupération des infos du webservice
2009-10-08 13:20:51 +00:00
$annonces = scoresws_annonces ( $siret , $siren , $idEntreprise , $vue , $idan );
2009-09-24 16:05:13 +00:00
2009-10-08 13:20:51 +00:00
if ( $siren != $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'siren' ]) {
$O2 = $client -> getIdentite ( $siret );
$etab = $O2 [ 'result' ];
$tabEntrep = array ();
$tabEntrep [ 'raisonSociale' ] = $etab [ 'Nom' ];
$tabEntrep [ 'siren' ] = $etab [ 'Siren' ];
$tabEntrep [ 'siret' ] = $etab [ 'Siret' ];
$tabEntrep [ 'tva' ] = $etab [ 'TvaNumero' ];
$tabEntrep [ 'isin' ] = $etab [ 'Isin' ];
$tabEntrep [ 'AutreId' ] = $etab [ 'AutreId' ];
$tabEntrep [ 'active' ] = $etab [ 'Statut' ];
$tabEntrep [ 'Source' ] = $etab [ 'Source' ];
$tabEntrep [ 'SourceId' ] = $etab [ 'SourceId' ];
$tabEntrep [ 'codeCommune' ] = $etab [ 'Dept' ] . $etab [ 'codeCommune' ];
$tabEntrep [ 'nafEn' ] = $etab [ 'NafEnt' ];
$tabEntrep [ 'nafEt' ] = $etab [ 'NafEtab' ];
$tabEntrep [ 'fj' ] = $etab [ 'FJ' ];
$_SESSION [ 'tabInfo' ][ 'entrep' ] = $tabEntrep ;
$raisonSociale = $etab [ 'Nom' ];
2010-03-08 16:03:12 +00:00
} else {
2009-10-08 13:20:51 +00:00
$raisonSociale = $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'raisonSociale' ];
2010-03-08 16:03:12 +00:00
}
2009-09-24 16:05:13 +00:00
?>
2010-02-22 10:48:50 +00:00
< h1 class = " titre page " > ANNONCES L & Eacute ; GALES </ h1 >
2009-10-08 13:20:51 +00:00
< ? php
if ( count ( $annonces ) > 0 )
{
2010-02-10 17:27:03 +00:00
//Tri des annonces dans des tableaux différents
2009-10-08 13:20:51 +00:00
$annoncesBodacc = array ();
$annoncesBalo = array ();
$annoncesAsso = array ();
foreach ( $annonces as $i => $ann ) {
if ( $ann [ 'BodaccCode' ] == 'BODA' || $ann [ 'BodaccCode' ] == 'BODB' || $ann [ 'BodaccCode' ] == 'BODC' ) {
$annoncesBodacc [] = $ann ;
} elseif ( $ann [ 'BodaccCode' ] == 'BALO' ) {
$annoncesBalo [] = $ann ;
} elseif ( $ann [ 'BodaccCode' ] == 'ASSO' ) {
$annoncesAsso [] = $ann ;
} else {
$annoncesBodacc [] = $ann ;
}
}
2010-03-08 16:01:16 +00:00
// Affichage de la liste des annonces
2009-10-08 13:20:51 +00:00
//Affiche annonces Bodacc
if ( count ( $annoncesBodacc ) > 0 )
{
?>
< h2 > EV & Eacute ; NEMENTS L & Eacute ; GAUX </ h2 >
< table >
< ? php
foreach ( $annoncesBodacc as $i => $ann )
{
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 140 " class = " StyleInfoLib " >
< div id = " annoncesDate " >< p > Le < ? = WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'DateParution' ]); ?> </p></div>
< div id = " annoncesImg " >
< ? php
$tabSource = explode ( '-' , $ann [ 'BodaccCode' ]);
$source = $tabSource [ 0 ];
$idSource =@ $tabSource [ 1 ];
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 '"/>' ;
}
?>
</ div >
</ td >
< td width = " 450 " colspan = " 2 " class = " StyleInfoData " >
< a href = " /?page=annonces&siret=<?= $siret ?>&idan=<?= $ann['id'] ?>&vue=bodacc " >
< ? php
foreach ( $ann [ 'evenements' ] as $i => $even ) {
print $even [ 'LibEven' ];
$numEven = $even [ 'CodeEven' ] * 1 ;
2010-02-10 17:27:03 +00:00
if ( $numEven > 3000 && $numEven < 3999 ) print ' (clôture au ' . WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'dateEffet' ]) . ')' ;
2009-10-08 13:20:51 +00:00
print '<br/>' ;
}
?>
</ a >
</ td >
</ tr >
< ? php
}
?>
</ table >
< ? php
}
//Affiche annonces Balo
if ( count ( $annoncesBalo ) > 0 )
{
?>
< h2 > BALO </ h2 >
< table >
< ? php
foreach ( $annoncesBalo as $i => $ann ){ ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 140 " class = " StyleInfoLib " >
< span id = " annoncesDate " > Le < ? = WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'DateParution' ]); ?> </span>
< span id = " annoncesImg " >
< ? php
if ( $ann [ 'BodaccCode' ] == 'BALO' ){
2010-02-10 17:27:03 +00:00
print '<img src="./img/logo_jo.png" title="Source BALO n°' . $ann [ 'BodaccNum' ] . '"/>' ;
2009-10-08 13:20:51 +00:00
}
?>
</ span >
</ td >
< td width = " 450 " colspan = " 2 " class = " StyleInfoData " >
< a href = " /?page=annonces&siret=<?= $siret ?>&idan=<?= $ann['id'] ?>&vue=balo " >
< ? php
foreach ( $ann [ 'evenements' ] as $i => $even ) {
print $even [ 'LibEven' ];
$numEven = $even [ 'CodeEven' ] * 1 ;
2010-02-10 17:27:03 +00:00
if ( $numEven > 3000 && $numEven < 3999 ) print ' (clôture au ' . WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'dateEffet' ]) . ')' ;
2009-10-08 13:20:51 +00:00
print '<br/>' ;
}
?>
</ a ></ td >
</ tr >
< ? php
}
?>
</ table >
< ? php
}
//Affiche annonces Asso
if ( count ( $annoncesAsso ) > 0 )
{
?>
< h2 > Associations </ h2 >
< table >
< ? php
foreach ( $annoncesAsso as $i => $ann ){ ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 140 " class = " StyleInfoLib " >
< span id = " annoncesDate " > Le < ? = WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'DateParution' ]); ?> </span>
< span id = " annoncesImg " >
< ? php
if ( $ann [ 'BodaccCode' ] == 'ASSO' ){
2010-02-10 17:27:03 +00:00
print '<img src="./img/logo_jo.png" title="Source JO ASSOCIATION n°' . $ann [ 'BodaccNum' ] . '"/>' ;
2009-10-08 13:20:51 +00:00
}
?>
</ span >
</ td >
< td width = " 450 " colspan = " 2 " class = " StyleInfoData " >
< a href = " /?page=annonces&siret=<?= $siret ?>&idan=<?= $ann['id'] ?>&vue=asso " >
< ? php
foreach ( $ann [ 'evenements' ] as $i => $even ) {
print $even [ 'LibEven' ];
$numEven = $even [ 'CodeEven' ] * 1 ;
2010-02-10 17:27:03 +00:00
if ( $numEven > 3000 && $numEven < 3999 ) print ' (clôture au ' . WDate :: dateT ( 'Y-m-d' , 'd/m/Y' , $ann [ 'dateEffet' ]) . ')' ;
2009-10-08 13:20:51 +00:00
print '<br/>' ;
}
?>
</ a ></ td >
</ tr >
< ? php
}
?>
</ table >
< ? php
}
}
else
{
2010-03-08 16:01:16 +00:00
// Aucune annonce bodacc pour cette entreprise
2009-10-08 13:20:51 +00:00
?>
2010-02-10 17:27:03 +00:00
< h2 > Evénements légaux </ h2 >
2009-10-08 13:20:51 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 100 " class = " StyleInfoLib " >& nbsp ; </ td >
< td width = " 450 " colspan = " 2 " class = " StyleInfoData " > N & eacute ; ant </ td >
</ tr >
< tr >
< td colspan = " 4 " >& nbsp ; </ td >
</ tr >
</ table >
< ? php
2010-03-08 16:03:12 +00:00
}
2009-10-08 13:20:51 +00:00
//=> FIN BLOC ANNONCES
//=> BLOC DIRIGEANTS
require_once 'partenaires/classMTva.php' ;
require_once 'partenaires/classMMap.php' ;
require_once 'common/dates.php' ;
require_once 'cache/cache.php' ;
require_once 'scoresws/scoresws.php' ;
$dirs = scoresws_dirigeants ( $siret , $siren , $idEntreprise );
?>
2010-02-22 10:48:50 +00:00
< h1 class = " page " > DIRIGEANTS </ h1 >
2009-10-08 13:20:51 +00:00
< h2 > Liste des dirigeants actifs </ h2 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2009-12-04 17:17:09 +00:00
< td colspan = " 2 " width = " 540 " class = " StyleInfoData " >
2009-10-08 13:20:51 +00:00
< 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 != '' ){
?>
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-10-08 13:20:51 +00:00
< ? php print $societe ; ?>
</ 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-08 13:20:51 +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 >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
//=> FIN BLOC DIRIGEANTS
//=> BLOC LIENS
//=> FIN BLOC LIENS
//=> BLOC SYNTHESE
2009-10-15 15:09:54 +00:00
isset ( $_REQUEST [ 'ratio' ]) ? $ratio = $_REQUEST [ 'ratio' ] : $ratio = '' ;
isset ( $_REQUEST [ 'type' ]) ? $typeBilan = $_REQUEST [ 'type' ] : $typeBilan = '' ;
2009-10-08 13:20:51 +00:00
require_once 'cache/cache.php' ;
require_once 'ratios/ratios.php' ;
require_once 'scoresws/scoresws.php' ;
2009-10-23 13:34:42 +00:00
$result = scoresws_ratios ( $siret , $siren , $idEntreprise );
2009-10-08 13:20:51 +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' ];
2010-03-08 16:01:16 +00:00
FB :: log ( $bilansInfos , 'bilansInfos' );
FB :: log ( $ratiosSecteur , 'ratiosSecteur' );
2009-10-13 16:36:27 +00:00
list ( $typeBilan , $numBilan ) = countBilans ( $bilansInfos , $typeBilan );
$numBilanN = $numBilan [ 'N' ];
$numBilanC = $numBilan [ 'C' ];
2009-10-15 15:09:54 +00:00
$numBilanB = $numBilan [ 'B' ];
$numBilanA = $numBilan [ 'A' ];
2010-03-08 16:01:16 +00:00
list ( $bilansInfos , $ratiosEntrep , $ratiosEntrepEvol ,
$ratiosSecteur , $dataActif , $dataPassif , $dataSIG ) =
filtreTypeBilans ( $bilansInfos , $ratiosEntrep , $ratiosEntrepEvol ,
$ratiosSecteur , $dataActif , $dataPassif , $dataSIG , $typeBilan );
2009-10-08 13:20:51 +00:00
$nbrAnnees = count ( $bilansInfos ) - 1 ;
2009-10-13 16:36:27 +00:00
$data = synthese_datagraph ( $bilansInfos , $ratiosEntrep , $ratio );
2009-09-24 16:05:13 +00:00
$dataGraph = $data [ 'graph' ];
$dataEvol = $data [ 'evol' ];
2009-10-08 13:20:51 +00:00
?>
2010-02-22 10:48:50 +00:00
< h1 class = " page " > SYNTH & Egrave ; SE </ h1 >
2009-09-24 16:05:13 +00:00
2009-12-04 17:17:09 +00:00
< table border = " 0 " align = " left " >
2009-10-12 13:31:05 +00:00
< ? php
2009-10-15 15:09:54 +00:00
if ( $numBilanN > 0 || $numBilanC > 0 )
{
2009-10-12 13:31:05 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Type de bilans </ td >
< td width = " 340 " class = " StyleInfoData " >
2010-02-10 17:27:03 +00:00
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>Réel normal ou Simplifié</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolidé</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC == 0 ){ ?> Réel normal ou Simplifié<?php }?>
< ? php if ( $numBilanN == 0 && $numBilanC > 0 ){ ?> Consolidé<?php }?>
2009-10-12 13:31:05 +00:00
</ td >
</ tr >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-12 13:31:05 +00:00
}
?>
</ table >
2009-10-08 13:20:51 +00:00
< ? php
2009-10-15 15:09:54 +00:00
if ( $numBilanN == 0 && $numBilanC == 0 && $numBilanB == 0 && $numBilanA == 0 )
2009-09-24 16:05:13 +00:00
{
?>
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
</ table >
< ? php
}
2009-10-15 15:09:54 +00:00
elseif ( $numBilanN == 0 && $numBilanC == 0 && ( $numBilanB > 0 || $numBilanA > 0 ) )
{
?>
< table >
2010-02-10 17:27:03 +00:00
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Bilan de banque / assurance non gérés </ b ></ td ></ tr >
2009-10-15 15:09:54 +00:00
</ table >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-15 15:09:54 +00:00
}
2009-09-24 16:05:13 +00:00
else
{
?>
< table id = " synthese " >
< thead >
< tr >
2010-02-10 17:27:03 +00:00
< th align = " center " >< ? php if ( $ratio != '' ){ ?> <a href="/?page=synthese&siret=<?=$_REQUEST['siret']?>&idEntreprise=<?=$_REQUEST['idEntreprise']?>" title="Retour à la page complète"><img src="./img/synthese/chart_bar.png" alt="Visionner le graphique"></a><?php } ?></th>
2009-09-24 16:05:13 +00:00
< th class = " date " >< ? php print synthese_formatdateCloture ( $bilansInfos , 2 ); ?> </th>
< th class = " date " >< ? php print synthese_formatdateCloture ( $bilansInfos , 1 ); ?> </th>
< th class = " date " > Evolution </ th >
< th class = " date " >< ? php print synthese_formatdateCloture ( $bilansInfos , 0 ); ?> </th>
< th class = " date " > Evolution </ th >
< th >& nbsp ; </ th >
</ tr >
</ thead >
< tbody >
< ? php
2010-02-10 17:27:03 +00:00
//TODO : Afficher ligne par ligne les éléments
2009-10-13 16:36:27 +00:00
print synthese_tablerow ( $ratiosInfos , $dataEvol , $ratio );
2009-09-24 16:05:13 +00:00
?>
</ tbody >
</ table >
< br />
< ? php
2010-02-10 17:27:03 +00:00
//Affichage du graphique associé au ratio sélectionné
2009-09-24 16:05:13 +00:00
if ( count ( $tabRatio ) == 1 ){ ?>
< div id = " titreEvol " >< b > Evolution </ b ></ div >
< ? php
2010-03-03 11:34:57 +00:00
2009-10-08 13:20:51 +00:00
if ( ( $siret * 1 ) == 0 || ( $siren * 1 ) < 100 ){ $fileName = 'synthese-' . $idEntreprise ;}
else { $fileName = 'synthese-' . $siret ; }
if ( $ratio != '' ){ $fileName .= '-' . $ratio ; }
2009-09-24 16:05:13 +00:00
if ( count ( $dataEvol [ $ratio ]) <= 1 ){
2010-02-10 17:27:03 +00:00
print " Les informations sont insuffisantes pour générer la courbe d'évolution " ;
2009-09-24 16:05:13 +00:00
} else { ?>
< img id = " imgEvol " src = " ./imgcache/<?= $fileName .'.png'?> " />
< ? php
}
2010-02-10 17:27:03 +00:00
//Affichage du graphique général
2009-09-24 16:05:13 +00:00
} else {
if ( count ( $dataGraph ) <= 1 ){
2010-02-10 17:27:03 +00:00
print '<div id="graphInfo">Les informations sont insuffisantes pour générer le graphique de synthèse</div>' ;
2009-09-24 16:05:13 +00:00
} else {
2009-10-08 13:20:51 +00:00
print synthese_graph_linecompare ( $dataGraph );
2009-09-24 16:05:13 +00:00
}
}
?>
< br />< br />
< ? php
}
2009-10-08 13:20:51 +00:00
//=> FIN BLOC SYNTHESE
//=> BLOC BILANS
?>
< script type = " text/javascript " >
$ ( document ) . ready ( function ()
{
$ ( 'input[type=radio][name=typeBilan]' ) . change ( function (){
document . location . href = $ ( this ) . val ();
});
});
</ script >
2010-02-22 10:48:50 +00:00
< h1 class = " page " >& Eacute ; L & Eacute ; MENTS FINANCIERS - BILANS </ h1 >
2009-10-08 13:20:51 +00:00
< table >
< ? php
2009-10-15 15:09:54 +00:00
if ( $numBilanN > 0 || $numBilanC > 0 )
{
2009-10-12 13:31:05 +00:00
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Type de bilans </ td >
< td width = " 340 " class = " StyleInfoData " >
2010-02-10 17:27:03 +00:00
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>Réel normal ou Simplifié</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolidé</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC == 0 ){ ?> Réel normal ou Simplifié<?php }?>
< ? php if ( $numBilanN == 0 && $numBilanC > 0 ){ ?> Consolidé<?php }?>
2009-10-12 13:31:05 +00:00
</ td >
</ tr >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-12 13:31:05 +00:00
}
?>
</ table >
2009-10-15 15:09:54 +00:00
< ? php
if ( $numBilanN == 0 && $numBilanC == 0 && $numBilanB == 0 && $numBilanA == 0 )
{
?>
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
</ table >
< ? php
}
elseif ( $numBilanN == 0 && $numBilanC == 0 && ( $numBilanB > 0 || $numBilanA > 0 ) )
{
?>
< table >
2010-02-10 17:27:03 +00:00
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Bilan de banque / assurance non gérés </ b ></ td ></ tr >
2009-10-15 15:09:54 +00:00
</ table >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-15 15:09:54 +00:00
}
else
{
?>
< h2 > Bilan actif - passif </ h2 >
2009-10-08 13:20:51 +00:00
< table class = " bilans " >
< thead >
< tr >
< th > ACTIF </ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
$nb_bilans = 5 ;
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
} else { print '-' ; } ?>
</ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td > Actif Immobilisé Net </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r59' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r59' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Incorporelles </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r51' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r51' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Corporelles </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r52' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r52' , 'r22' ) ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Financières </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r53' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r53' , 'r22' ) ?> </td>
</ tr >
< tr class = " subhead " >
< td > Actif Circulant Net </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r69' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r69' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Stock et encours </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r60' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r60' , 'r22' ) ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Créances Clients </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r61' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r61' , 'r22' ) ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Autres Créances </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r62' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r62' , 'r22' ) ?> </td>
</ tr >
< tr >
< td >& nbsp ; </ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
< td ></ td >
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Trésorerie Active </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r63' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r63' , 'r22' ) ?> </td>
</ tr >
< tr class = " subhead " >
< td > TOTAL ACTIF </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
< ? php print bilans_graph_actif ( $dataActif [ 0 ], $fileName . $typeBilan ); ?>
</ td ></ tr >
</ tbody >
2010-02-10 17:27:03 +00:00
</ table >
2009-10-08 13:20:51 +00:00
< br />< br />
2010-02-22 10:53:15 +00:00
< table class = " bilans page " >
2009-10-08 13:20:51 +00:00
< thead >
< tr >
< th > PASSIF </ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
} else { print '-' ; } ?>
</ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< th >% T . B .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td > Ressources Propres </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r79' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dPercent ( 0 , 'r79' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Fonds Propres </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r70' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r70' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Provisions Risques </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r71' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r71' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Comptes Courants </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r72' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r72' , 'r22' ) ?> </td>
</ tr >
< tr class = " subhead " >
< td > Ressources Externes </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r90' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r90' , 'r22' ) ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Dettes Financières </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r83' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r83' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Dettes Fournisseurs </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r84' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r84' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Dettes Fiscales </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r85' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r85' , 'r22' ) ?> </td>
</ tr >
< tr >
< td > Autres Dettes </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r86' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r86' , 'r22' ) ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td > Trésorerie Passive </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r87' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r87' , 'r22' ) ?> </td>
</ tr >
< tr class = " subhead " >
< td > TOTAL PASSIF </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r22' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r22' , 'r22' ) ?> </td>
</ tr >
< tr >< td colspan = " 7 " class = " graph " >
< ? php print bilans_graph_passif ( $dataPassif [ 0 ], $fileName . $typeBilan ); ?>
</ td ></ tr >
</ tbody >
2010-02-10 17:27:03 +00:00
</ table >
2009-10-08 13:20:51 +00:00
< br />< br />
< h2 > Soldes Interm & eacute ; diare de Gestion </ h2 >
< table class = " bilans " >
< thead >
< tr >
< th colspan = " 2 " > SOLDES INTERMEDIAIRES DE GESTION </ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ $nb_bilans - $i ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[$nb_bilans-$i]['duree']; ?> mois
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
} else { print '-' ; } ?>
</ th >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< th >% C . A .</ th >
</ tr >
</ thead >
< tbody >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > CHIFFRE D ' AFFAIRES HORS TAXE </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r101' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r101' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >-</ td >< td > Achat de marchandises , de matières premières </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r102' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r102' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE COMMERCIALE </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r110' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r110' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Production vendue </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r111' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r111' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >+</ td >< td > Production immobilisée et stockée </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r112' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r112' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > PRODUCTION DE L ' EXERCICE </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r120' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r120' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >& plusmn ; </ td >< td > Variation de stock de marchandises et matières premières </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r121' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r121' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
< td class = " center " colspan = " 2 " > MARGE BRUTE </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r122' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r122' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Autres charges externes </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r123' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r123' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td class = " center " colspan = " 2 " > VALEUR AJOUTÉE </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r130' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r130' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Charges de personnel </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r132' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r132' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >-</ td >< td > Impôts , taxes & versements assimilés </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r133' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r133' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Subventions d ' exploitation </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r131' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r131' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td class = " center " colspan = " 2 " > EXCÉDENT BRUT D ' EXPLOITATION ( EBE ) </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r140' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r140' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Autres produits d ' exploitation </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r141' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r141' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Autres charges d ' exploitation </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r142' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r142' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Reprise sur dotations & transferts de charges </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r143' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r143' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >+</ td >< td > 70 % Loyer de crédit bail </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r144' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r144' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Dotations d 'exploitation & provisions d' exploitation </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r145' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r145' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td class = " center " colspan = " 2 " > RÉSULTAT D ' EXPLOITATION </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r150' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r150' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Produits financiers </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r151' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r151' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >+</ td >< td > 30 % Loyer de crédit bail </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r152' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r152' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >+</ td >< td > Charges financières </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r153' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r153' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td class = " center " colspan = " 2 " > RÉSULTAT COURANT AVANT IMPOTS </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r170' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r170' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >+</ td >< td > Produits exceptionnels </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r171' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r171' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Charges exceptionnelles </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r172' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r172' , 'r101' ); ?> </td>
</ tr >
< tr >
2010-02-10 17:27:03 +00:00
< td >-</ td >< td > Impôts sur les bénéfices </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r181' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r181' , 'r101' ); ?> </td>
</ tr >
< tr >
< td >-</ td >< td > Participation salariale </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r182' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r182' , 'r101' ); ?> </td>
</ tr >
< tr class = " subhead " >
2010-02-10 17:27:03 +00:00
< td class = " center " colspan = " 2 " > RÉSULTAT NET </ td >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
for ( $i = 1 ; $i <= $nb_bilans ; $i ++ )
{
2010-03-03 11:34:57 +00:00
?>
2009-10-08 13:20:51 +00:00
< td class = " right " >< ? php print dRatio ( $nb_bilans - $i , 'r199' ); ?> </td>
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
}
?>
< td class = " right " >< ? php print dPercent ( 0 , 'r199' , 'r101' ); ?> </td>
</ tr >
< tr >< td colspan = " 8 " class = " graph " >
< ? php print bilans_graph_sig ( $dataSIG [ 0 ], $fileName . $typeBilan ); ?>
</ td ></ tr >
</ tbody >
2010-02-10 17:27:03 +00:00
</ table >
2009-10-08 13:20:51 +00:00
< ? php
}
//=> FIN BLOC BILANS
//=> BLOC RATIOS
isset ( $_REQUEST [ 'mil' ]) ? $mil = $_REQUEST [ 'mil' ] : $mil = '' ;
2010-02-10 17:27:03 +00:00
//On détermine le bilan sélectionné
2009-10-08 13:20:51 +00:00
if ( $mil == '' )
2010-03-03 11:34:57 +00:00
{
2009-10-08 13:20:51 +00:00
$bilan = 0 ;
2010-03-03 11:34:57 +00:00
$mil = $bilansInfos [ $bilan ][ 'typeBilan' ] . substr ( $bilansInfos [ $bilan ][ 'dateCloture' ], 6 , 2 ) . substr ( $bilansInfos [ $bilan ][ 'dateCloture' ], 4 , 2 ) . substr ( $bilansInfos [ $bilan ][ 'dateCloture' ], 0 , 4 );
2009-10-08 13:20:51 +00:00
}
else
{
if ( count ( $bilansInfos ) > 0 )
{
$countBilans = 0 ;
foreach ( $bilansInfos as $bilanItem )
{
2010-03-03 11:34:57 +00:00
$millesime = $bilanItem [ 'typeBilan' ] . substr ( $bilanItem [ 'dateCloture' ], 6 , 2 ) . substr ( $bilanItem [ 'dateCloture' ], 4 , 2 ) . substr ( $bilanItem [ 'dateCloture' ], 0 , 4 );
2009-10-08 13:20:51 +00:00
if ( $mil == $millesime )
2010-03-03 11:34:57 +00:00
{
$bilan = $countBilans ;
2009-10-08 13:20:51 +00:00
break ;
}
$countBilans ++ ;
}
}
}
2009-10-15 15:09:54 +00:00
2009-10-08 13:20:51 +00:00
?>
2010-02-22 10:48:50 +00:00
< h1 class = " titre page " > RATIOS </ h1 >
2009-10-12 13:31:05 +00:00
< ? php
if ( count ( $bilansInfos ) == 0 )
2009-09-24 16:05:13 +00:00
{
2009-10-08 13:20:51 +00:00
?>
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
</ table >
< ? php
2009-09-24 16:05:13 +00:00
}
2009-10-08 13:20:51 +00:00
else
{
2009-09-24 16:05:13 +00:00
?>
2009-10-08 13:20:51 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 200 " class = " StyleInfoLib " > Secteur d ' activité :</ td >
2009-10-08 13:20:51 +00:00
< td width = " 340 " class = " StyleInfoData " >
2010-03-08 16:01:16 +00:00
< ? = $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'nafEn' ] ?> - <?=$_SESSION['tabInfo']['entrep']['nafEnLib']?>
2009-10-08 13:20:51 +00:00
</ td >
</ tr >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-15 15:09:54 +00:00
if ( $numBilanN > 0 || $numBilanC > 0 )
{
?>
2009-10-08 13:20:51 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Type de bilans </ td >
< td width = " 340 " class = " StyleInfoData " >
2010-02-10 17:27:03 +00:00
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>Réel normal ou Simplifié</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC > 0 ){ ?> <input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolidé</label><?php }?>
< ? php if ( $numBilanN > 0 && $numBilanC == 0 ){ ?> Réel normal ou Simplifié<?php }?>
< ? php if ( $numBilanN == 0 && $numBilanC > 0 ){ ?> Consolidé<?php }?>
2009-10-08 13:20:51 +00:00
</ td >
</ tr >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-15 15:09:54 +00:00
}
?>
2009-10-08 13:20:51 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 200 " class = " StyleInfoLib " > Millésime </ td >
2009-10-08 13:20:51 +00:00
< td width = " 340 " class = " StyleInfoData " >
< form name = " selectBilan " method = " post " action = " index.php?<?= $_SERVER['QUERY_STRING'] ;?> " >
< select name = " mil " >
< ? php
if ( count ( $bilansInfos ) > 0 )
{
2009-10-12 13:31:05 +00:00
$countBilans = 0 ;
2009-10-08 13:20:51 +00:00
foreach ( $bilansInfos as $bilanItem )
{
2009-10-12 13:31:05 +00:00
if ( $countBilans >= 5 ){ break ; }
2009-10-08 13:20:51 +00:00
$millesime = '' ;
2010-03-03 11:34:57 +00:00
if ( isset ( $bilanItem [ 'dateCloture' ]))
2009-10-08 13:20:51 +00:00
{
$annee = substr ( $bilanItem [ 'dateCloture' ], 6 , 2 ) . substr ( $bilanItem [ 'dateCloture' ], 4 , 2 ) . substr ( $bilanItem [ 'dateCloture' ], 0 , 4 );
$millesime = $bilanItem [ 'typeBilan' ] . $annee ;
?>
< option value = " index.php?page=<?= $page ?>&siret=<?= $siret ?>&idEntreprise=<?= $idEntreprise ?>&mil=<?= $millesime ?> " < ? php if ( $mil == $millesime ){ print 'selected="selected"' ;} ?> >
< ? = substr ( $bilanItem [ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilanItem [ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilanItem [ 'dateCloture' ], 0 , 4 ); ?>
< ? php
2010-03-03 11:34:57 +00:00
if ( isset ( $typBil [ $bilanItem [ 'typeBilan' ]]) &&
( isset ( $typBil [ $bilanItem [ 'typeBilan' ]]) != 'N' ||
2009-10-12 13:31:05 +00:00
isset ( $typBil [ $bilanItem [ 'typeBilan' ]]) != '' ) )
2009-10-08 13:20:51 +00:00
{
?>
< ? = $typBil [ $bilanItem [ 'typeBilan' ]] ?>
2010-03-03 11:34:57 +00:00
< ? php
}
2009-10-08 13:20:51 +00:00
?>
</ option >
< ? php
2009-10-12 13:31:05 +00:00
$countBilans ++ ;
2009-10-08 13:20:51 +00:00
}
}
} else { print '-' ; }
?>
</ select >
</ form >
</ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 200 " class = " StyleInfoLib " > Durée du bilan </ td >
2009-10-08 13:20:51 +00:00
< td width = " 340 " class = " StyleInfoData " >
< ? php
2010-03-03 11:34:57 +00:00
if ( isset ( $bilansInfos [ $bilan ][ 'dateCloture' ]))
2009-10-08 13:20:51 +00:00
{
print $bilansInfos [ $bilan ][ 'duree' ]; ?> mois
2010-03-03 11:34:57 +00:00
< ? php
} else { print '-' ; }
2009-10-08 13:20:51 +00:00
?>
</ td >
</ tr >
< ? php
if ( $ratio != '' ){
?>
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 200 " class = " StyleInfoLib " > Retour à la page complète </ td >
< td width = " 340 " class = " StyleInfoData " >< a href = " /?page=ratios&siret=<?= $_REQUEST['siret'] ?>&idEntreprise=<?= $_REQUEST['idEntreprise'] ?> " title = " Retour à la page complète " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-10-08 13:20:51 +00:00
</ tr >
< ? php
}
?>
</ table >
< table id = " ratios " >
< tbody >
2009-10-13 16:36:27 +00:00
< ? php print ratios_tablerow ( $ratiosInfos , $bilan , $ratio ); ?>
2009-10-08 13:20:51 +00:00
</ tbody >
2010-02-10 17:27:03 +00:00
</ table >
2009-10-08 13:20:51 +00:00
< ? php
}
?>
< br />
< ? php
2010-02-10 17:27:03 +00:00
//Affichage du graphique associé au ratio sélectionné
2009-10-08 13:20:51 +00:00
if ( $ratio != '' ){
$data = dGraph ( $ratio , $bilan );
?>
< div id = " titreEvol " >< b > Evolution </ b ></ div >
< ? php
if ( count ( $data [ 'data' ]) <= 1 ){
2010-02-10 17:27:03 +00:00
print " Les informations sont insuffisantes pour générer la courbe d'évolution " ;
2009-10-08 13:20:51 +00:00
} else {
$image = ratios_graph ( '' , $data , $fileName );
?>
< img id = " imgEvol " src = " ./imgcache/<?= $image ;?> " />
< ? php
}
}
//=> FIN BLOC RATIOS
2009-09-24 16:05:13 +00:00
2009-10-08 13:20:51 +00:00
function formatPct ( $pct ) {
$pct = round ( $pct / 10 , 0 ) * 10 ;
if ( $pct == 0 ) $pct = 10 ;
return $pct ;
}
2009-09-24 16:05:13 +00:00
2009-10-08 13:20:51 +00:00
require_once 'cache/cache.php' ;
require_once 'partenaires/classMTva.php' ;
require_once 'partenaires/classMMap.php' ;
require_once 'partenaires/classMCoface.php' ;
require_once 'common/dates.php' ;
require_once 'scoresws/scoresws.php' ;
2009-09-24 16:05:13 +00:00
2009-10-15 15:09:54 +00:00
$tabInfo = $_SESSION [ 'tabInfo' ];
2010-04-09 14:55:22 +00:00
$etab = scoresws_indiscore ( $siret , $siren , $idEntreprise , $niveau );
2009-10-15 15:09:54 +00:00
$tabCommentaires = $etab [ 'tabCommentaires' ];
//=> BLOC COMMENTAIRES
?>
2010-02-22 10:48:50 +00:00
< h1 class = " page " > COMMENTAIRES </ h1 >
2009-10-26 15:53:27 +00:00
< br />
2010-03-03 11:34:57 +00:00
< div class = " blockh2 " id = " commentaires " >
< ? php
2010-03-08 16:01:16 +00:00
require_once 'commentaires/commentaires.php' ;
2010-04-22 16:25:45 +00:00
if ( count ( $tabCommentaires ) > 0 ){
2010-04-21 15:01:59 +00:00
$totalLigne = count ( $tabCommentaires );
$currentLigne = 0 ;
$inH = 0 ;
2010-04-22 16:25:45 +00:00
$inTable = false ;
foreach ( $tabCommentaires as $key => $commentaires ){
2010-03-04 16:32:06 +00:00
$output = '' ;
2010-04-22 16:25:45 +00:00
$ligne = true ;
2010-04-21 15:01:59 +00:00
$currentLigne ++ ;
2010-04-22 16:25:45 +00:00
if ( ! is_array ( $commentaires ) && ! empty ( $commentaires )){
2010-03-08 16:01:16 +00:00
//Traitement préalable des lignes
$commentaires = html_entity_decode (
$commentaires ,
ENT_COMPAT ,
'utf-8' );
2010-03-30 09:58:46 +00:00
//Traitement des balises siren
$commentaires = commentaires_siren ( $commentaires );
//Traitement des balises lien
$commentaires = commentaires_lien ( $commentaires );
2010-04-01 08:51:39 +00:00
//Traitement des balises li+, li-, li
$commentaires = commentaires_liste ( $commentaires );
2010-04-01 09:50:47 +00:00
//Traitement des images
$commentaires = commentaires_image ( $commentaires );
2010-03-08 16:01:16 +00:00
//Traitement des graphiques
2010-03-30 14:55:32 +00:00
$pattern = '/\[GRAPHIQUE id=(.*?) titre=\'(.*?)\',(.*?#[a-zA-Z]{1})]/' ;
2010-03-08 16:01:16 +00:00
if ( preg_match ( $pattern , $commentaires , $matches ) ){
//Initialisation des éléments
2010-04-01 08:51:39 +00:00
//FB::log($matches[0],'graphique');
2010-03-08 16:01:16 +00:00
$image_id = $matches [ 1 ];
$graph_titre = $matches [ 2 ];
2010-03-30 14:55:32 +00:00
$ratio = array ();
$ratio = explode ( ',' , $matches [ 3 ]);
2010-03-08 16:01:16 +00:00
//Génération du graphique
if (( $siret * 1 ) == 0 || ( $siren * 1 ) < 100 ){
$id = 'gcomment-' . $idEntreprise . '-' . $image_id ;
} else {
$id = 'gcomment-' . $siret . '-' . $image_id ;
}
2010-03-30 14:55:32 +00:00
$image_file = commentaires_graph ( $id , $graph_titre , $ratio );
2010-03-08 16:01:16 +00:00
//Le fichier image existe
if ( file_exists ( PATH_SITE . '/cache/imgcache/' . $image_file ) ){
$commentaires = str_replace (
$matches [ 0 ],
'<img src="./imgcache/' . $image_file . '" />' ,
$commentaires );
} else {
$commentaires = str_replace (
$matches [ 0 ],
'Erreur génération graphique' ,
$commentaires );
}
}
2010-04-21 15:01:59 +00:00
//Traitement pour bloc texte
2010-04-27 16:51:40 +00:00
if ( preg_match ( '/(.*?)\<h([0-9]{1})\>(.*?)\<\/h[0-9]{1}\>/' , $commentaires , $matches )){
FB :: log ( $commentaires , 'H' );
FB :: log ( $inH , 'inH' );
2010-04-21 15:01:59 +00:00
//Fermeture
if ( $inH > 0 ){
2010-04-27 16:51:40 +00:00
$commentaires = $matches [ 1 ] . '</div><h' . $matches [ 2 ] . '>' . $matches [ 3 ] . '</h' . $matches [ 2 ] . '>' ;
2010-04-21 15:01:59 +00:00
}
2010-04-27 16:51:40 +00:00
//Ouverture
$commentaires = $commentaires . '<div class="texth' . $matches [ 2 ] . '">' ;
2010-04-21 15:01:59 +00:00
$inH ++ ;
2010-04-22 16:25:45 +00:00
$ligne = false ;
2010-03-01 16:40:32 +00:00
}
2010-04-21 15:01:59 +00:00
//Fermeture dernier div
if ( $currentLigne == $totalLigne ){
$commentaires = $commentaires . '</div>' ;
2010-03-01 16:40:32 +00:00
}
2010-04-21 15:01:59 +00:00
//Traitement pour fin bloc texte;
$output .= $commentaires . " \n " ;
2010-04-22 16:25:45 +00:00
//Détection des début et fin de tableau
if ( preg_match ( '/<(table)/i' , $commentaires ) ){
$inTable = true ;
}
if ( preg_match ( '/<\/(table)>/i' , $commentaires ) ){
$inTable = false ;
}
//Nouvelle ligne
if ( $inTable ){ $ligne = false ;}
if ( $ligne ){ $output .= '<br/>' ; }
2010-03-04 16:32:06 +00:00
echo $output ;
2009-10-19 16:01:35 +00:00
}
2009-10-15 15:09:54 +00:00
}
}
//=> FIN BLOC COMMENTAIRES
2010-01-28 09:32:35 +00:00
?>
</ div >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-15 15:09:54 +00:00
//=> BLOC INDISCORE (evaluation conclusion)
2009-10-08 13:20:51 +00:00
?>
2009-10-26 15:53:27 +00:00
< br />
2010-02-22 10:48:50 +00:00
< h1 class = " titre page " > INDISCORE© </ h1 >
2009-10-15 15:09:54 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siren </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = substr ( $etab [ 'Siren' ], 0 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 3 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 6 , 3 ) ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siret du si & egrave ; ge </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = substr ( $etab [ 'Siren' ], 0 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 3 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 6 , 3 ) . ' ' . substr ( $etab [ 'Siret' ], - 5 ) ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
< ? if ( $etab [ 'NumRC' ] * 1 <> 0 ) { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro R . C .</ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $etab [ 'NumRC' ] ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
< ? } ?>
< tr >< td colspan = " 3 " >& nbsp ; </ 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 >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Raison Sociale </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $etab [ 'Nom' ];
2009-10-15 15:09:54 +00:00
if ( $etab [ 'Nom2' ] <> '' ) echo '<br/>' . $etab [ 'Nom2' ]; ?> </td>
</ tr >
< ?
if ( $etab [ 'Enseigne' ] <> '' && $etab [ 'Sigle' ] <> '' ) { $titre = 'Enseigne / Sigle' ; $lib = $etab [ 'Enseigne' ] . ' / ' . $etab [ 'Sigle' ]; }
elseif ( $etab [ 'Enseigne' ] <> '' && $etab [ 'Sigle' ] == '' ) { $titre = 'Enseigne' ; $lib = $etab [ 'Enseigne' ]; }
elseif ( $etab [ 'Enseigne' ] == '' && $etab [ 'Sigle' ] <> '' ) { $titre = 'Sigle' ; $lib = $etab [ 'Sigle' ]; }
else $titre = '' ;
if ( $titre <> '' ) {
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " >< ? = $titre ?> </td>
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $lib ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >< ? } ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Forme juridique </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $etab [ 'FJ_lib' ]; //@todo INSEE //.' ('.$etab['FJ']?></td>
2009-10-15 15:09:54 +00:00
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Date de cr & eacute ; ation de l ' entreprise </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? $dateCreation = str_replace ( '-' , '' , $etab [ 'DateCreaEn' ]);
2009-10-15 15:09:54 +00:00
echo WDate :: dateT ( 'Ymd' , 'm/Y' , $dateCreation ); ?> </td>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Adresse </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $etab [ 'Adresse' ] ?> <br/>
2009-10-15 15:09:54 +00:00
< ? if ( $etab [ 'Adresse2' ] <> '' ) echo $etab [ 'Adresse2' ] . '<br/>' ; ?>
< ? = $etab [ 'CP' ] ?> <?=$etab['Ville']?></td>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > T & eacute ; l & eacute ; phone </ td >
2009-12-04 17:17:09 +00:00
< td width = " 340 " class = " StyleInfoData " >< ? = $etab [ 'Tel' ] ?> </td>
2009-10-15 15:09:54 +00:00
</ tr >
< tr >< td colspan = " 3 " >& nbsp ; </ td ></ tr >
</ table >
2009-10-08 13:20:51 +00:00
< h2 >& Eacute ; valuation </ h2 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 540 " colspan = " 2 " class = " StyleInfoData " > L ' & eacute ; valuation indiScore & copy ; est en partie basée sur les points notables suivants :< br />
2009-10-08 13:20:51 +00:00
< h3 >< u > Conformit & eacute ; l & eacute ; gale :</ u ></ h3 >
< div class = " stats gradiant_pic " >
< ul >
< li >
< i >< ? = $etab [ 'AnalyseConfor' ] ?> </i>
< div class = " blocdegrade clearfix " >
< span class = " textdegrade " > Conformit & eacute ; </ span >
< div class = " imgdegrade " >< img class = " borderimg " src = " ./img/indiscore/imgscores-<?=formatPct( $etab['ScoreConfor'] )?>.png " /></ div >
< div class = " regle " >< img src = " ./img/sgradiant2.png " /></ div >
</ div >
</ li >
</ ul >
</ div >
< h3 >< u > Dirigeance :</ u ></ h3 >
< div class = " stats gradiant_pic " >
< ul >
< li >
< i >< ? = $etab [ 'AnalyseDirigeance' ] ?> </i>
< div class = " blocdegrade clearfix " >
< span class = " textdegrade " > Dirigeance </ span >
< div class = " imgdegrade " >< img class = " borderimg " src = " ./img/indiscore/imgscores-<?=formatPct( $etab['ScoreDirigeance'] )?>.png " /></ div >
< div class = " regle " >< img src = " ./img/sgradiant2.png " /></ div >
2010-03-03 11:34:57 +00:00
</ div >
2009-10-08 13:20:51 +00:00
</ li >
</ ul >
</ div >
< h3 >< u > Solvabilit & eacute ; :</ u ></ h3 >
< div class = " stats gradiant_pic " >
< ul >
< li >
< i > L 'analyse de la solvabilité est <?=$etab[' AnalyseSolvabilite ' ] ?> </i>
< div class = " blocdegrade clearfix " >
< span class = " textdegrade " > Solvabilit & eacute ; </ span >
< div class = " imgdegrade " >< img class = " borderimg " src = " ./img/indiscore/imgscores-<?=formatPct( $etab['Indiscore'] )?>.png " /></ div >
< div class = " regle " >< img src = " ./img/sgradiant2.png " /></ div >
2010-03-03 11:34:57 +00:00
</ div >
2009-10-08 13:20:51 +00:00
</ li >
</ ul >
</ div >
</ td >
</ tr >
< ?
$millesimeMax = date ( 'Ymd' , mktime ( 0 , 0 , 0 , date ( 'm' ), date ( 'd' ), date ( 'Y' ) - 2 ));
if ( $etab [ 'NbBilansScore' ] > 0 && $etab [ 'Bilans' ][ 0 ][ 'Millesime' ] >= $millesimeMax )
{
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
2009-12-04 17:17:09 +00:00
< td width = " 540 " colspan = " 2 " class = " StyleInfoData " > A la lecture du dernier bilan , la situation financi & egrave ; re de l 'entreprise <?=$etab[' Nom ']?> est <b><?=$etab[' tabInfosNotations '][' SituationFinanciere ' ] ?> </b>.<br/>
2009-10-08 13:20:51 +00:00
<!-- Cette notation financi & egrave ; re est < ? = $etab [ 'tabInfosNotations' ][ 'Notation' ] ?> .<br/>-->
< ? php
2010-02-10 17:27:03 +00:00
if ( html_entity_decode ( $etab [ 'tabInfosNotations' ][ 'ProbabiliteDefaut' ]) <> 'En défaut' )
2009-10-08 13:20:51 +00:00
echo 'La probabilité de défaillance associée à cette note avoisine les ' .
number_format ( $etab [ 'tabInfosNotations' ][ 'ProbabiliteDefaut' ], 3 , ',' , ' ' ) . ' %' ;
else
echo 'Cette entreprise est défaillante ou sur le point de le devenir.' ;
//[EquivalenceBDF]
?> </td>
2010-01-28 09:32:35 +00:00
</ tr >
2009-10-08 13:20:51 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
2009-12-04 17:17:09 +00:00
< td width = " 540 " colspan = " 2 " class = " StyleInfoData " >
2009-10-08 13:20:51 +00:00
2010-02-10 17:27:03 +00:00
< i > Pour information , les méthodes standards donnent : Conan & amp ; Holder = < b >< ? = $etab [ 'scores' ][ 'ConanH' ] ?> </b>, Afdcc2 = <b><?=$etab['scores']['Afdcc2']?></b> et Score Z = <b><?=$etab['scores']['Z']?></b>.</i>
2009-10-08 13:20:51 +00:00
</ td >
</ tr >
< ? } else { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-02-10 17:27:03 +00:00
< td width = " 540 " colspan = " 2 " class = " StyleInfoData " > La situation financi & egrave ; re de l 'entreprise ne peut être évaluée en détail car <?if ($etab[' Bilans '][0][' Millesime ']<$millesimeMax && count($etab[' Bilans ' ]) > 0 ) {
2009-10-08 13:20:51 +00:00
echo 'le dernier bilan disponible date de ' . substr ( $etab [ 'Bilans' ][ 0 ][ 'Millesime' ], 0 , 4 ) . '.' ;
} else {
echo 'aucun bilan n\'est disponible.' ;
} ?> </td>
</ tr >
< ? } ?>
< tr >< td colspan = " 3 " >& nbsp ; </ td ></ tr >
</ table >
2010-01-13 12:52:14 +00:00
< h2 > Paiements </ h2 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 2 " class = " StyleInfoData " >
< ? = html_entity_decode ( $etab [ 'infoPaiement' ]) ?>
</ td >
</ tr >
</ table >
2009-10-08 13:20:51 +00:00
< h2 > Conclusion </ h2 >
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
2010-01-13 16:29:44 +00:00
< td width = " 550 " colspan = " 2 " class = " StyleInfoData " >
2009-10-08 13:20:51 +00:00
Compte tenu des informations disponibles aupr & egrave ; s des sources officielles Scores et D & eacute ; cisions pr & eacute ; sente la conclusion suivante :< br />
2010-03-03 11:34:57 +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 ;
}
?>
< h3 > LE SCORE EST DE < ? = $indiscore ?> SUR <?=$maxIndiscore?> POINTS</h3>
2009-10-08 13:20:51 +00:00
< ? php
if ( $etab [ 'infoEncours' ] != '' && ! is_numeric ( $etab [ 'encours' ]) && $etab [ 'encours' ] == 'N/A' ){ ?>
2010-01-13 16:29:44 +00:00
< h3 >< ? = $etab [ 'infoEncours' ]; ?> </h3>
2009-10-08 13:20:51 +00:00
< ? php
} else { ?>
< ? php
2010-01-13 16:29:44 +00:00
if ( $indiscore != 0 ) { ?>
2009-10-08 13:20:51 +00:00
< i > La tendance de la note est < ? = $etab [ 'TendanceIndiscore' ] ?> </i>
< h3 > L 'ENCOURS MAXIMUM CONSEILLÉ EST DE <?=round($etab[' encours ' ] / 1000 ) ?> K€</h3>
< ? php } ?>
2010-01-13 16:29:44 +00:00
< h3 >< ? = $etab [ 'infoEncours' ]; ?> </h3>
2009-10-08 13:20:51 +00:00
< ? php
}
?>
</ td >
</ tr >
< tr >< td colspan = " 3 " align = " center " >< img src = " ./img/logo_indiscore.png " /></ td ></ tr >
</ table >
2010-03-03 11:34:57 +00:00
< ? php
2009-10-08 13:20:51 +00:00
//=> FIN BLOC INDISCORE
?>
< p class = " confidentiel " >
2010-04-12 14:49:55 +00:00
< ? php
require_once 'cgu/cgu.php' ;
echo afficheCgu ();
?>
2009-10-08 13:20:51 +00:00
</ p >
2009-09-24 16:05:13 +00:00
</ div >
< ? php