extranet/www/pages/bilans.php

837 lines
20 KiB
PHP
Raw Normal View History

<?php
if (!$_SESSION['connected']) die();
$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);
require_once 'cache/cache.php';
require_once 'ratios/ratios.php';
$raisonSociale = $_SESSION['tabInfo']['entrep']['raisonSociale'];
2009-05-28 15:50:45 +00:00
if (($siret*1)==0 || ($siren*1)<100){ $fileName = $page2.'-'.$idEntreprise;
2009-06-22 06:56:42 +00:00
}else{ $fileName = $page2.'-'.$siret; }
cache_filename($fileName);
if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInfo']['mode_edition']==1 ) )
{
$bilansInfos = cache_get('bilansInfos');
$ratiosInfos = cache_get('ratiosInfos');
$ratiosEntrep = cache_get('ratiosEntrep');
$ratiosEntrepEvol = cache_get('ratiosEntrepEvol');
$dataActif = cache_get('dataActif');
$dataPassif = cache_get('dataPassif');
$dataSIG = cache_get('dataSIG');
}
else
{
2009-05-28 15:50:45 +00:00
try {
$O = $client->getRatios($siren, 'bilan');
$bilansInfos = $O['result']['BilansInfos'];
$ratiosInfos = $O['result']['RatiosInfos'];
$ratiosEntrep = $O['result']['RatiosEntrep'];
$ratiosEntrepEvol = $O['result']['RatiosEntrepEvol'];
2009-06-22 06:56:42 +00:00
//Affichage des dates dans l'ordre d<>croissant
2009-08-10 12:59:42 +00:00
//Tri des tableaux
foreach ($bilansInfos as $key => $row) {
$bilansInfos[$key]['cle'] = $key;
$date[$key] = $row['dateCloture'];
$duree[$key] = $row['duree'];
$devise[$key] = $row['devise'];
$unite[$key] = $row['unite'];
$cle[$key] = $row['cle'];
}
array_multisort($date, SORT_DESC, $duree, SORT_DESC, $devise, SORT_DESC, $unite, SORT_DESC, $cle, SORT_DESC, $bilansInfos);
//Tri des autres tableaux
$tempRatiosEntrep = $ratiosEntrep;
$tempRatiosEntrepEvol = $ratiosEntrepEvol;
$tempRatiosSecteur = $ratiosSecteur;
$i = 0;
foreach ($bilansInfos as $row){
$ratiosEntrep[$i] = $tempRatiosEntrep[$row['cle']];
$ratiosEntrepEvol[$i] = $tempRatiosEntrepEvol[$row['cle']];
$ratiosSecteur[$i] = $tempRatiosSecteur[$row['cle']];
$i++;
}
//Fin de tri des tableaux
2009-08-10 12:59:42 +00:00
2009-05-28 15:50:45 +00:00
$dataActif = array( graphPercent('r51','r22'),
graphPercent('r52','r22'),
graphPercent('r53','r22'),
graphPercent('r60','r22'),
graphPercent('r61','r22'),
graphPercent('r62','r22'),
graphPercent('r63','r22'),
);
2009-06-22 06:56:42 +00:00
2009-05-28 15:50:45 +00:00
$dataPassif = array( graphPercent('r70','r22'),
graphPercent('r71','r22'),
graphPercent('r72','r22'),
graphPercent('r83','r22'),
graphPercent('r84','r22'),
graphPercent('r85','r22'),
graphPercent('r86','r22'),
graphPercent('r87','r22'),
2009-06-22 06:56:42 +00:00
);
2009-05-28 15:50:45 +00:00
$dataSIG = array( graphPercent('r101','r101')-graphPercent('r122','r101'),
graphPercent('r122','r101')-graphPercent('r130','r101'),
graphPercent('r130','r101')-graphPercent('r140','r101'),
graphPercent('r140','r101')-graphPercent('r150','r101'),
graphPercent('r150','r101')-graphPercent('r170','r101'),
graphPercent('r170','r101')-graphPercent('r199','r101'),
graphPercent('r199','r101'),
2009-06-22 06:56:42 +00:00
);
cache_delete();
cache_add('bilansInfos', $bilansInfos);
cache_add('ratiosInfos', $ratiosInfos);
cache_add('ratiosEntrep', $ratiosEntrep);
cache_add('ratiosEntrepEvol', $ratiosEntrepEvol);
cache_add('dataActif', $dataActif);
cache_add('dataPassif', $dataPassif);
cache_add('dataSIG', $dataSIG);
2009-05-28 15:50:45 +00:00
}catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$_SESSION['tabInfo']);
2009-05-28 15:50:45 +00:00
die();
}
}
?>
<div id="center">
<h1>&Eacute;L&Eacute;MENTS FINANCIERS - BILANS</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($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="340" class="StyleInfoData"><?=$_SESSION['tabInfo']['entrep']['raisonSociale']?></td>
</tr>
</table>
<?php
if (count($ratiosEntrep)==0 || !isset($ratiosEntrep)){
?>
<table>
<tr><td width="30">&nbsp;</td><td><b>Aucun bilan disponible pour cette entreprise !</b></td></tr>
</table>
<?php
}else{
?>
2009-08-10 16:54:43 +00:00
<h2>Bilan actif - passif</h2>
<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, $fileName); ?>
</td></tr>
2009-06-22 06:56:42 +00:00
</tbody>
</table><EFBFBD>
<br/><br/>
2009-06-22 06:56:42 +00:00
<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, $fileName);?>
</td></tr>
2009-06-22 06:56:42 +00:00
</tbody>
</table><EFBFBD>
<br/><br/>
2009-06-22 06:56:42 +00:00
<h2>Soldes Interm&eacute;diare de Gestion</h2>
2009-06-22 06:56:42 +00:00
<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, $fileName);?>
</td></tr>
</tbody>
</table><EFBFBD>
2009-06-22 06:56:42 +00:00
<?php
}
?>
</div>