extranet/www/pages/rsynthese.php

1885 lines
55 KiB
PHP
Raw Normal View History

<?php
if (!$_SESSION['connected']) die();
//Traitement des param<61>tres
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Param<61>tres incorrects !');
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1; // Si id=0 alors non communiqu<71>
if (($siret*1)==0 && $idEntreprise==0) die('Param<61>tres incorrects !');
$siren=substr($siret,0,9);
2009-10-08 13:20:51 +00:00
?>
<style>
.confidentiel {font-style:italic; font-size:9px;}
#rsynthese { margin :10px; fonst-weight:bold; }
2009-10-08 13:20:51 +00:00
</style>
<div id="center">
<?php
require_once 'utils.php';
require_once 'common/dates.php';
require_once 'cache/cache.php';
require_once 'user/user.php';
2009-10-08 13:20:51 +00:00
require_once 'logos/logos.php';
require_once 'scoresws/scoresws.php';
require_once 'scoresws/identite.php';
2009-10-08 13:20:51 +00:00
//=> BLOC IDENTITE
$etab = scoresws_identite($siret, $siren, $idEntreprise);
function dRow($lib, $data, $title = '')
{
$html = '<tr>'."\n";
$html.= ' <td width="30">&nbsp;</td>'."\n";
$html.= ' <td width="200" class="StyleInfoLib">'.$lib.'</td>'."\n";
if($title!='') $title = ' title="'.$title.'"';
$html.= ' <td width="350" class="StyleInfoData"'.$title.'>'.$data.'</td>'."\n";
$html.= '</tr>'."\n";
return $html;
}
2009-10-08 13:20:51 +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-10-08 13:20:51 +00:00
<table>
<?php
//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']);
//Num<75>ro tva intracommunautaire
$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>
<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
//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']); }
2009-10-08 13:20:51 +00:00
//Ne pas afficher le logo si il n'existe pas OU si le siren est <20> 0 OU si le siren est inf<6E>rieur a 100
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
}
//Num<75>ro RC
$element = formatElement('identite', 'numrc', array($etab['NumRC'], $etab['tribunalLib']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Autre identifiant : Num<75>ro WALDEC ou ancien num<75>ro RC si le nouveau n'est pas disponible
$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
$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
$element = formatElement('identite', 'situationjuridique', array($etab['SituationJuridique'], $etab['DateRadiation'], $etab['EntActiveRCS'], $etab['Siret'], $idEntreprise));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
?>
</table>
<h2>Raison sociale & Coordonn<EFBFBD>es</h2>
2009-10-08 13:20:51 +00:00
<table>
<?php
//Nom
$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
//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
$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
$element = formatElement('identite', 'dateimmat', array($etab['DateImmat']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Date de cr<63>ation de l'entreprise
$element = formatElement('identite', 'datecreaen', array($etab['DateCreaEn']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Date de cr<63>ation de l'<27>tablissement
$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
$element = formatElement('identite', 'zones', array($etab['GeoInfos']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//T<>l<EFBFBD>phone
$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
$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
$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
$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>
<h2>Activit<EFBFBD>(s) & Chiffre d'affaire</h2>
<table>
2009-10-08 13:20:51 +00:00
<?php
//Activit<69> de l'entreprise
$element = formatElement('identite', 'activiteen', array($etab['Activite'], $etab['NafEnt'], $etab['NafEntLib']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Activit<69> de l'<27>tablissement
$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
$element = formatElement('identite', 'naf4', array($etab['Naf4Ent'], $etab['Naf4EntLib'], $etab['Naf4Etab'], $etab['Naf4EtabLib']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Nature de l'activit<69>
$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
$element = formatElement('identite', 'originefond', array($etab['OrigineCreation']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Type d'exploitation
$element = formatElement('identite', 'typeexploitation', array($etab['TypeExploitation']));
if($element!==false){ echo dRow($element['lib'], $element['data']); }
2009-10-08 13:20:51 +00:00
//Nombre d'<27>tablissements actif
$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
$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
$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
$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
$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-10-08 13:20:51 +00:00
<h2>Localisation g<EFBFBD>ographique & Recherche presse</h2>
<table>
<?php
//Information g<>ographique
$ville=' '.trim(preg_replace('/([0-9]|BILLANCOURT|SUR.SEINE| PERRET|ARRONDISSEMENT|_)/i',' ',$etab['Ville'])).' ';
$ville=trim(strtr($ville, array(' EME '=>'', ' ER '=>'')));
if (preg_match('/\bMAPPY\b/i', $_SESSION['tabInfo']['pref']) &&
2009-10-08 13:20:51 +00:00
preg_match('/(LILLE|CAEN|RENNES|BAULE|NANTES|NANCY|STRASBOURG|LYON|BORDEAUX|GRENOBLE|MONTPELLIER|TOULOUSE|MARSEILLE|CANNES|NICE|PARIS|NEUILLY|LEVALLOIS|ASNIERES|COURBEVOIE|NANTERRE|REUIL|BOULOGNE|SEVRES|VERSAILLES|MONTROUGE|MOULINEAUX)/', $ville))
{
?>
<tr>
<td width="580" colspan="3"class="StyleInfoData">
<table><tr>
<td width="340" height="420">
<IFRAME src="http://pro.mappy.com/BtoB/scoresdecisions/photo?photo.town=<?=$ville?>;photo.way=<?=trim(strtr(normaliseVoie($etab['AdresseVoie']).' '.$etab['AdresseRue'], array( ' ST '=>' SAINT ',' STE '=>' SAINTE ', )))?>;photo.num=<?=$etab['AdresseNum']*1?>;photo.postal_code=<?=$etab['CP']?>" width="340" height="420" scrolling="no" frameborder="0"></IFRAME>
</td>
<td width="240"><b>Information g&eacute;ographique :</b><br/>
<? if ($etab['GeoPrecis']>0) { ?>
Latitude : <?=htmlentities(dec2dms($etab['GeoLat']),null,'ISO-8859-1')?> (<?=$etab['GeoLat']?>)<br/>
Longitude : <?=htmlentities(dec2dms($etab['GeoLon']),null,'ISO-8859-1')?> (<?=$etab['GeoLon']?>)<br/><? } ?>
<a href="./?page=referer&part=gmap&siret=<?=$siret?>&url=http://maps.google.com/maps?f=q%26hl=fr%26geocode=%26q=<?=$etab['AdresseNum']?>,+<?=urlencode($etab['AdresseVoie'])?>+<?=urlencode($etab['AdresseRue'])?>,+<?=$etab['CP']?>+<?=urlencode($etab['Ville'])?>" target="_blank">Afficher l'adresse sur Google Map &copy;</a><br/>
<br/>
<b>Code commune / Rivoli :</b><br/>
<?=$etab['Dept'].' '.$etab['codeCommune']?> / <?=$etab['Rivoli']?>
</td>
</tr></table>
</td>
</tr>
<?php
} else {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Information g&eacute;ographique</td>
<td width="350" class="StyleInfoData">
<? if ($etab['GeoPrecis']>0) { ?>
Latitude : <?=htmlentities(dec2dms($etab['GeoLat']),null,'ISO-8859-1')?> (<?=$etab['GeoLat']?>)<br/>
Longitude : <?=htmlentities(dec2dms($etab['GeoLon']),null,'ISO-8859-1')?> (<?=$etab['GeoLon']?>)<br/><? } ?>
<a href="./?page=referer&part=gmap&siret=<?=$siret?>&url=http://maps.google.com/maps?f=q%26hl=fr%26geocode=%26q=<?=$etab['AdresseNum']?>,+<?=urlencode($etab['AdresseVoie'])?>+<?=urlencode($etab['AdresseRue'])?>,+<?=$etab['CP']?>+<?=urlencode($etab['Ville'])?>" target="_blank">Afficher l'adresse sur Google Map &copy;</a></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Code commune / Rivoli</td>
<td width="350" class="StyleInfoData"><?=$etab['Dept'].' '.$etab['codeCommune']?> / <?=$etab['Rivoli']?></td>
</tr>
<?php
}
?>
<tr><td colspan="3">&nbsp;</td></tr>
<?
//News
if (preg_match('/\bNEWS\b/i', $_SESSION['tabInfo']['pref']))
2009-10-08 13:20:51 +00:00
{
/* Information presse 15 Aug 2007 09:21:49 GMT - */
require_once ('XML/RSS.php');
$rss=&new XML_RSS('http://news.google.fr/news?hl=fr&ned=fr&ie=ISO-8859-1&q='.urlencode('"'.$etab['Nom'].'"').'&output=rss');
$rss->parse();
$tabMonth=array('Jan'=>1,'Feb'=>2,'Mar'=>3,'Apr'=>4,'May'=>5,'Jun'=>6,'Jul'=>7,'Aug'=>8,'Sep'=>9,'Oct'=>10,'Nov'=>11,'Dec'=>12);
foreach ($rss->getItems() as $i=>$item)
{
if ($i==0)
{
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" class="StyleInfoLib" colspan="2">Information presse (Source Google News &copy;)<br/>
<ul>
<?php
}
$tmp=explode(', ', $item['pubdate']);
$tabDate = explode(' ', $tmp[1]);
$tabTime = explode(':', $tabDate[3]);
$pubDate = date('d/m/Y <20> H:i', gmmktime($tabTime[0]-1, $tabTime[1], $tabTime[2], $tabMonth[$tabDate[1]], $tabDate[0], $tabDate[2]));
$titre = utf8_decode($item['title']);
echo '<li><a href="' . $item['link'] . '" target="_blank">Le '. $pubDate ." - $titre</a></li>";
$i++; if ($i==15) break;
}
if ($i>0)
{
?>
</ul></td></tr>
<?php
}
}
?>
</table>
<?php
//=> FIN BLOC IDENTITE
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-10-08 13:20:51 +00:00
//R<>cup<75>ration des infos du webservice
$annonces = scoresws_annonces($siret, $siren, $idEntreprise, $vue, $idan);
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'];
} else
$raisonSociale = $_SESSION['tabInfo']['entrep']['raisonSociale'];
?>
2009-10-08 13:20:51 +00:00
<h1 class="titre">ANNONCES L&Eacute;GALES</h1>
<?php
if (count($annonces)>0)
{
//Tri des annonces dans des tableaux diff<66>rents
$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;
}
}
/** Affichage de la liste des annonces **/
//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;
if ($numEven>3000 && $numEven<3999) print ' (cl<63>ture au '.WDate::dateT('Y-m-d','d/m/Y',$ann['dateEffet']).')';
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'){
print '<img src="./img/logo_jo.png" title="Source BALO n<>'.$ann['BodaccNum'].'"/>';
}
?>
</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;
if ($numEven>3000 && $numEven<3999) print ' (cl<63>ture au '.WDate::dateT('Y-m-d','d/m/Y',$ann['dateEffet']).')';
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'){
print '<img src="./img/logo_jo.png" title="Source JO ASSOCIATION n<>'.$ann['BodaccNum'].'"/>';
}
?>
</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;
if ($numEven>3000 && $numEven<3999) print ' (cl<63>ture au '.WDate::dateT('Y-m-d','d/m/Y',$ann['dateEffet']).')';
print '<br/>';
}
?>
</a></td>
</tr>
<?php
}
?>
</table>
<?php
}
}
else
{
/** Aucune annonce bodacc pour cette entreprise **/
?>
<h2>Ev<EFBFBD>nements l<EFBFBD>gaux</h2>
<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
}
//=> 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);
?>
<h1>DIRIGEANTS</h1>
<h2>Liste des dirigeants actifs</h2>
<table>
<tr>
<td width="30">&nbsp;</td>
<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('&amp;#160;',' ', $dir['Societe']);
$nom = str_replace('&amp;#160;',' ', $dir['Societe'].' '.$dir['Nom'].' '.$dir['Prenom']);
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
?>
<tr>
<td class="StyleInfoData" width="120"><?php print $dir['Titre'];?></td>
<td class="StyleInfoData" width="200">
<?php
if($societe != ''){
?>
<a href="/?page=recherche&vue=list&formR[type]=ent&formR[raisonSociale]=<?php print $societe;?>" title="Recherche <20> partir de la raison sociale">
<?php print $societe;?>
</a>
<?php
}
?>
&nbsp;
<?php
if($nom != ''){
?>
<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 <20> partir du nom du dirigeant">
<?php print $nom;?>
</a>
<?php
}
?>
</p>
</td>
<td class="StyleInfoData" width="230"><?
if (trim($dir['NaissDate'])<>'' && trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
echo 'n&eacute;(e) le '.$dir['NaissDate'].' &agrave; '.$dir['NaissVille'];
if (trim($dir['NaissDepPays'])<>'')
echo '&nbsp;('.$dir['NaissDepPays'].')';
} elseif (trim($dir['NaissDate'])<>'') {
echo 'n&eacute;(e) le '.$dir['NaissDate'];
} elseif (trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
echo 'n&eacute;(e) &agrave; '.$dir['NaissVille'];
echo '&nbsp;('.$dir['NaissDepPays'].')';
}
?>
</td>
</tr>
<?
}
}
else
{
echo '<tr><td class="StyleInfoData" width="550">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aucune donn&eacute;e n\'est pr&eacute;sente dans notre base</td></tr>';
}
?>
</table>
</td>
</tr>
</table>
<?php
2009-10-08 13:20:51 +00:00
//=> FIN BLOC DIRIGEANTS
//=> BLOC LIENS
//=> FIN BLOC LIENS
//=> BLOC SYNTHESE
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'];
2009-10-08 13:20:51 +00:00
$firephp->log($bilansInfos, 'bilansInfos');
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-08 13:20:51 +00:00
$nbrAnnees = count($bilansInfos)-1;
$data = synthese_datagraph($bilansInfos, $ratiosEntrep, $ratio);
$dataGraph = $data['graph'];
$dataEvol = $data['evol'];
2009-10-08 13:20:51 +00:00
?>
<h1>SYNTH&Egrave;SE</h1>
<table border="0" align="left">
<?php
if ( $numBilanN>0 || $numBilanC>0 )
{
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="340" class="StyleInfoData">
<?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<66></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<69></label><?php }?>
<?php if($numBilanN>0 && $numBilanC==0){ ?>R<EFBFBD>el normal ou Simplifi<66><?php }?>
<?php if($numBilanN==0 && $numBilanC>0){ ?>Consolid<EFBFBD><?php }?>
</td>
</tr>
<?php
}
?>
</table>
2009-10-08 13:20:51 +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>
<tr><td width="30">&nbsp;</td><td><b>Bilan de banque/assurance non g<EFBFBD>r<EFBFBD>s</b></td></tr>
</table>
<?php
}
else
{
?>
<table id="synthese">
<thead>
<tr>
<th align="center"><?php if($ratio!=''){?><a href="/?page=synthese&siret=<?=$_REQUEST['siret']?>&idEntreprise=<?=$_REQUEST['idEntreprise']?>" title="Retour <20> la page compl<70>te"><img src="./img/synthese/chart_bar.png" alt="Visionner le graphique"></a><?php } ?></th>
<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
2009-10-08 13:20:51 +00:00
//TODO : Afficher ligne par ligne les <20>l<EFBFBD>ments
print synthese_tablerow($ratiosInfos, $dataEvol, $ratio);
?>
</tbody>
</table>
<br/>
<?php
//Affichage du graphique associ<63> au ratio s<>lectionn<6E>
if(count($tabRatio)==1){ ?>
<div id="titreEvol"><b>Evolution</b></div>
<?php
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; }
if(count($dataEvol[$ratio])<=1){
print "Les informations sont insuffisantes pour g<>n<EFBFBD>rer la courbe d'<27>volution";
}else{?>
<img id="imgEvol" src="./imgcache/<?=$fileName.'.png'?>" />
<?php
}
//Affichage du graphique g<>n<EFBFBD>ral
}else{
if(count($dataGraph)<=1){
print '<div id="graphInfo">Les informations sont insuffisantes pour g<>n<EFBFBD>rer le graphique de synth<74>se</div>';
}else{
2009-10-08 13:20:51 +00:00
print synthese_graph_linecompare($dataGraph);
}
}
?>
<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>
<h1>&Eacute;L&Eacute;MENTS FINANCIERS - BILANS</h1>
2009-10-08 13:20:51 +00:00
<table>
<?php
if ( $numBilanN>0 || $numBilanC>0 )
{
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="340" class="StyleInfoData">
<?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<66></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<69></label><?php }?>
<?php if($numBilanN>0 && $numBilanC==0){ ?>R<EFBFBD>el normal ou Simplifi<66><?php }?>
<?php if($numBilanN==0 && $numBilanC>0){ ?>Consolid<EFBFBD><?php }?>
</td>
</tr>
<?php
}
?>
</table>
<?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>
<tr><td width="30">&nbsp;</td><td><b>Bilan de banque/assurance non g<EFBFBD>r<EFBFBD>s</b></td></tr>
</table>
<?php
}
else
{
?>
<h2>Bilan actif - passif</h2>
2009-10-08 13:20:51 +00:00
<table class="bilans">
<thead>
<tr>
<th>ACTIF</th>
<?php
$nb_bilans = 5;
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<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
<?php
}else{ print '-'; } ?>
</th>
<?php
}
?>
<th>% T.B.</th>
</tr>
</thead>
<tbody>
<tr class="subhead">
<td>Actif Immobilis<EFBFBD> Net</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r59'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r59','r22')?></td>
</tr>
<tr>
<td>Incorporelles</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r51'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r51','r22')?></td>
</tr>
<tr>
<td>Corporelles</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r52'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r52','r22')?></td>
</tr>
<tr>
<td>Financi<EFBFBD>res</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r53'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r53','r22')?></td>
</tr>
<tr class="subhead">
<td>Actif Circulant Net</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r69'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r69','r22')?></td>
</tr>
<tr>
<td>Stock et encours</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r60'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r60','r22')?></td>
</tr>
<tr>
<td>Cr<EFBFBD>ances Clients</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r61'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r61','r22')?></td>
</tr>
<tr>
<td>Autres Cr<EFBFBD>ances</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r62'); ?></td>
<?php
}
?>
<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>
<td>Tr<EFBFBD>sorerie Active</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r63'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r63','r22')?></td>
</tr>
<tr class="subhead">
<td>TOTAL ACTIF</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r22'); ?></td>
<?php
}
?>
<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>
</table><EFBFBD>
<br/><br/>
<table class="bilans">
<thead>
<tr>
<th>PASSIF</th>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<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
<?php
}else{ print '-'; } ?>
</th>
<?php
}
?>
<th>% T.B.</th>
</tr>
</thead>
<tbody>
<tr class="subhead">
<td>Ressources Propres</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r79'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r79','r22')?></td>
</tr>
<tr>
<td>Fonds Propres</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r70'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r70','r22')?></td>
</tr>
<tr>
<td>Provisions Risques</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r71'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r71','r22')?></td>
</tr>
<tr>
<td>Comptes Courants</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r72'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r72','r22')?></td>
</tr>
<tr class="subhead">
<td>Ressources Externes</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r90'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r90','r22')?></td>
</tr>
<tr>
<td>Dettes Financi<EFBFBD>res</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r83'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r83','r22')?></td>
</tr>
<tr>
<td>Dettes Fournisseurs</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r84'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r84','r22')?></td>
</tr>
<tr>
<td>Dettes Fiscales</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r85'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r85','r22')?></td>
</tr>
<tr>
<td>Autres Dettes</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r86'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r86','r22')?></td>
</tr>
<tr>
<td>Tr<EFBFBD>sorerie Passive</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r87'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r87','r22')?></td>
</tr>
<tr class="subhead">
<td>TOTAL PASSIF</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r22'); ?></td>
<?php
}
?>
<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>
</table><EFBFBD>
<br/><br/>
<h2>Soldes Interm&eacute;diare de Gestion</h2>
<table class="bilans">
<thead>
<tr>
<th colspan="2">SOLDES INTERMEDIAIRES DE GESTION</th>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<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
<?php
}else{ print '-'; } ?>
</th>
<?php
}
?>
<th>% C.A.</th>
</tr>
</thead>
<tbody>
<tr class="subhead">
<td class="center" colspan="2">CHIFFRE D'AFFAIRES HORS TAXE</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r101'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r101','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Achat de marchandises, de mati<EFBFBD>res premi<EFBFBD>res</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r102'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r102','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">MARGE COMMERCIALE</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r110'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r110','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Production vendue</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r111'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r111','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Production immobilis<EFBFBD>e et stock<EFBFBD>e</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r112'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r112','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">PRODUCTION DE L'EXERCICE</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r120'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r120','r101'); ?></td>
</tr>
<tr>
<td>&plusmn;</td><td>Variation de stock de marchandises et mati<EFBFBD>res premi<EFBFBD>res</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r121'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r121','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">MARGE BRUTE</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r122'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r122','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Autres charges externes</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r123'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r123','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">VALEUR AJOUT<EFBFBD>E</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r130'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r130','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Charges de personnel</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r132'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r132','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Imp<EFBFBD>ts, taxes & versements assimil<EFBFBD>s</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r133'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r133','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Subventions d'exploitation</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r131'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r131','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">EXC<EFBFBD>DENT BRUT D'EXPLOITATION (EBE)</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r140'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r140','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Autres produits d'exploitation</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r141'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r141','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Autres charges d'exploitation</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r142'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r142','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Reprise sur dotations & transferts de charges</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r143'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r143','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>70% Loyer de cr<EFBFBD>dit bail</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r144'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r144','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Dotations d'exploitation & provisions d'exploitation</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r145'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r145','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">R<EFBFBD>SULTAT D'EXPLOITATION</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r150'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r150','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Produits financiers</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r151'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r151','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>30% Loyer de cr<EFBFBD>dit bail</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r152'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r152','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Charges financi<EFBFBD>res</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r153'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r153','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">R<EFBFBD>SULTAT COURANT AVANT IMPOTS</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r170'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r170','r101'); ?></td>
</tr>
<tr>
<td>+</td><td>Produits exceptionnels</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r171'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r171','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Charges exceptionnelles</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r172'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r172','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Imp<EFBFBD>ts sur les b<EFBFBD>n<EFBFBD>fices</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r181'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r181','r101'); ?></td>
</tr>
<tr>
<td>-</td><td>Participation salariale</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r182'); ?></td>
<?php
}
?>
<td class="right"><?php print dPercent(0,'r182','r101'); ?></td>
</tr>
<tr class="subhead">
<td class="center" colspan="2">R<EFBFBD>SULTAT NET</td>
<?php
for($i=1; $i<=$nb_bilans; $i++)
{
?>
<td class="right"><?php print dRatio($nb_bilans-$i,'r199'); ?></td>
<?php
}
?>
<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>
</table><EFBFBD>
<?php
}
//=> FIN BLOC BILANS
//=> BLOC RATIOS
isset($_REQUEST['mil']) ? $mil=$_REQUEST['mil'] : $mil='' ;
//On d<>termine le bilan s<>lectionn<6E>
if($mil=='')
{
$bilan = 0;
$mil = $bilansInfos[$bilan]['typeBilan'].substr($bilansInfos[$bilan]['dateCloture'],6,2).substr($bilansInfos[$bilan]['dateCloture'],4,2).substr($bilansInfos[$bilan]['dateCloture'],0,4);
}
else
{
if(count($bilansInfos)>0)
{
$countBilans = 0;
foreach($bilansInfos as $bilanItem)
{
$millesime = $bilanItem['typeBilan'].substr($bilanItem['dateCloture'],6,2).substr($bilanItem['dateCloture'],4,2).substr($bilanItem['dateCloture'],0,4);
if($mil==$millesime)
{
$bilan = $countBilans;
break;
}
$countBilans++;
}
}
}
2009-10-08 13:20:51 +00:00
?>
<h1 class="titre">RATIOS</h1>
<?php
$firephp->log($_SESSION, 'SESSION');
if (count($bilansInfos)==0)
{
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-10-08 13:20:51 +00:00
else
{
?>
2009-10-08 13:20:51 +00:00
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Secteur d'activit<EFBFBD> :</td>
<td width="340" class="StyleInfoData">
<?php print $_SESSION['tabInfo']['entrep']['nafEn']; ?> - <?php print $_SESSION['tabInfo']['entrep']['nafEnLib']; ?>
</td>
</tr>
<?php
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">
<?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<66></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<69></label><?php }?>
<?php if($numBilanN>0 && $numBilanC==0){ ?>R<EFBFBD>el normal ou Simplifi<66><?php }?>
<?php if($numBilanN==0 && $numBilanC>0){ ?>Consolid<EFBFBD><?php }?>
2009-10-08 13:20:51 +00:00
</td>
</tr>
<?php
}
?>
2009-10-08 13:20:51 +00:00
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Mill<EFBFBD>sime</td>
<td width="340" class="StyleInfoData">
<form name="selectBilan" method="post" action="index.php?<?=$_SERVER['QUERY_STRING'];?>">
<select name="mil">
<?php
if(count($bilansInfos)>0)
{
$countBilans = 0;
2009-10-08 13:20:51 +00:00
foreach($bilansInfos as $bilanItem)
{
if($countBilans>=5){ break; }
2009-10-08 13:20:51 +00:00
$millesime = '';
if(isset($bilanItem['dateCloture']))
{
$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
if( isset($typBil[$bilanItem['typeBilan']]) &&
( isset($typBil[$bilanItem['typeBilan']])!='N' ||
isset($typBil[$bilanItem['typeBilan']])!='') )
2009-10-08 13:20:51 +00:00
{
?>
<?=$typBil[$bilanItem['typeBilan']]?>
<?php
}
?>
</option>
<?php
$countBilans++;
2009-10-08 13:20:51 +00:00
}
}
}else{ print '-'; }
?>
</select>
</form>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dur<EFBFBD>e du bilan</td>
<td width="340" class="StyleInfoData">
<?php
if(isset($bilansInfos[$bilan]['dateCloture']))
{
print $bilansInfos[$bilan]['duree']; ?> mois
<?php
}else{ print '-'; }
?>
</td>
</tr>
<?php
if($ratio!=''){
?>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Retour <EFBFBD> la page compl<EFBFBD>te</td>
<td width="340" class="StyleInfoData"><a href="/?page=ratios&siret=<?=$_REQUEST['siret']?>&idEntreprise=<?=$_REQUEST['idEntreprise']?>" title="Retour <20> la page compl<70>te"><img src="./img/synthese/chart_bar.png" alt="Visionner le graphique"></a></td>
</tr>
<?php
}
?>
</table>
<table id="ratios">
<tbody>
<?php print ratios_tablerow($ratiosInfos, $bilan, $ratio);?>
2009-10-08 13:20:51 +00:00
</tbody>
</table><EFBFBD>
<?php
}
?>
<br/>
<?php
//Affichage du graphique associ<63> au ratio s<>lectionn<6E>
if($ratio!=''){
$data = dGraph($ratio, $bilan);
?>
<div id="titreEvol"><b>Evolution</b></div>
<?php
if(count($data['data'])<=1){
print "Les informations sont insuffisantes pour g<>n<EFBFBD>rer la courbe d'<27>volution";
}else{
$image = ratios_graph('', $data, $fileName);
?>
<img id="imgEvol" src="./imgcache/<?=$image;?>" />
<?php
}
}
//=> FIN BLOC RATIOS
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-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';
$tabInfo = $_SESSION['tabInfo'];
2009-10-08 13:20:51 +00:00
$etab = scoresws_indiscore($siret, $siren, $idEntreprise);
$firephp->log($etab, 'etab');
$tabCommentaires = $etab['tabCommentaires'];
//=> BLOC COMMENTAIRES
?>
<h1>COMMENTAIRES</h1>
2009-10-26 15:53:27 +00:00
<br/>
<?php
if(count($tabCommentaires)>0)
{
2009-10-23 13:34:42 +00:00
foreach($tabCommentaires as $key => $commentaires)
{
2009-10-26 15:53:27 +00:00
$elements = 'ELEMENTS';
if(!is_array($commentaires) && !empty($commentaires))
{
if( substr($commentaires, 0, strlen($elements) ) == $elements ){ echo '<br>';}
echo htmlspecialchars_decode($commentaires);?><br/>
<?php
}
}
}
//=> FIN BLOC COMMENTAIRES
//=> BLOC INDISCORE (evaluation conclusion)
2009-10-08 13:20:51 +00:00
?>
2009-10-26 15:53:27 +00:00
<br/>
2009-10-08 13:20:51 +00:00
<h1 class="titre">INDISCORE<EFBFBD></h1>
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="340" class="StyleInfoData"><?=substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siret du si&egrave;ge</td>
<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>
</tr>
<? if ($etab['NumRC']*1<>0) { ?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro R.C.</td>
<td width="340" class="StyleInfoData"><?=$etab['NumRC']?></td>
</tr>
<? } ?>
<tr><td colspan="3">&nbsp;</td></tr>
</table>
<h2>Raison sociale & coordonn<EFBFBD>es</h2>
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="340" class="StyleInfoData"><?=$etab['Nom'];
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>
<td width="340" class="StyleInfoData"><?=$lib?></td>
</tr><? } ?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Forme juridique</td>
<td width="340" class="StyleInfoData"><?=$etab['FJ_lib'];//@todo INSEE //.' ('.$etab['FJ']?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Date de cr&eacute;ation de l'entreprise</td>
<td width="340" class="StyleInfoData"><? $dateCreation=str_replace('-','',$etab['DateCreaEn']);
echo WDate::dateT('Ymd', 'm/Y', $dateCreation);?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Adresse</td>
<td width="340" class="StyleInfoData"><?=$etab['Adresse']?><br/>
<? if ($etab['Adresse2']<>'') echo $etab['Adresse2'].'<br/>';?>
<?=$etab['CP']?>&nbsp;<?=$etab['Ville']?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">T&eacute;l&eacute;phone</td>
<td width="340" class="StyleInfoData"><?=$etab['Tel']?></td>
</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>
<td width="540" colspan="2" class="StyleInfoData">L'&eacute;valuation indiScore&copy; est en partie bas<EFBFBD>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>
</div>
</li>
</ul>
</div>
<h3><u>Solvabilit&eacute; :</u></h3>
<div class="stats gradiant_pic">
<ul>
<li>
<i>L'analyse de la solvabilit&eacute; 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>
</div>
</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>
<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
if (html_entity_decode($etab['tabInfosNotations']['ProbabiliteDefaut'])<>'En d<>faut')
echo 'La probabilit&eacute; de d&eacute;faillance associ&eacute;e &agrave; cette note avoisine les '.
number_format($etab['tabInfosNotations']['ProbabiliteDefaut'],3,',',' ') .' %';
else
echo 'Cette entreprise est d&eacute;faillante ou sur le point de le devenir.';
//[EquivalenceBDF]
?></td>
<tr>
<td width="30">&nbsp;</td>
<td width="540" colspan="2" class="StyleInfoData">
2009-10-08 13:20:51 +00:00
<i>Pour information, les m<EFBFBD>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>
</td>
</tr>
<? } else { ?>
<tr>
<td width="30">&nbsp;</td>
<td width="540" colspan="2" class="StyleInfoData">La situation financi&egrave;re de l'entreprise ne peut <20>tre <20>valu<6C>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>
<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-01-13 16:29:44 +00:00
<?php
switch($_SESSION['tabInfo']['typeScore'])
{
case '20':
$maxIndiscore = $_SESSION['tabInfo']['typeScore'];
$indiscore = $etab['Indiscore20'];
break;
case '100':
default:
$maxIndiscore = empty($_SESSION['tabInfo']['typeScore'])? '100' : $_SESSION['tabInfo']['typeScore'];
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&Eacute; EST DE <?=round($etab['encours']/1000)?> K&euro;</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>
<?php
//=> FIN BLOC INDISCORE
?>
<p class="confidentiel">
* Informations confidentielles, ne pas divulguer.
<br/>
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<EFBFBD>es est rigoureusement interdit sans accord pr<EFBFBD>alable <EFBFBD>crit de Scores & Decisions SAS.
La consultation ou la r<EFBFBD>ception de documents n'entra<72>ne aucun transfert de droit de propri<72>t<EFBFBD> intellectuelle en faveur de l'utilisateur. Ce dernier s'engage <20> ne pas rediffuser ou <20> reproduire les donn<6E>es fournies autrement que pour son usage propre. Les donn<6E>es transmises sont trait<69>es en conformit<69> avec les usages en vigueur. L'utilisateur recherche, s<EFBFBD>lectionne et interpr<EFBFBD>te les donn<EFBFBD>es sous sa propre responsabilit<EFBFBD>.
<br/>
L'extranet Scores & Decisions est un service priv<69> distinct des Journaux Officiels, de l'INPI et de l'INSEE et est <EFBFBD>dit<EFBFBD> par SCORES & DECISIONS SAS, RCS VERSAILLES B 494967938, licenci<EFBFBD> des sources officielles pr<EFBFBD>cit<EFBFBD>s.
</p>
</div>
<?php