Travail Ratios
This commit is contained in:
parent
6d5f27a560
commit
5eb3c5ae9a
@ -7,12 +7,11 @@ require_once 'scoresws/scoresws.php';
|
||||
require_once 'ratios/ratios.php';
|
||||
require_once 'ratios/content.php';
|
||||
|
||||
$result = scoresws_ratios($siret, $siren, $idEntreprise);
|
||||
$result = scoresws_ratios($siret, $siren, $idEntreprise, $page);
|
||||
$bilansInfos = $result['bilansInfos'];
|
||||
$ratiosInfos = $result['ratiosInfos'];
|
||||
$ratiosEntrep = $result['ratiosEntrep'];
|
||||
$ratiosEntrepEvol = $result['ratiosEntrepEvol'];
|
||||
$ratiosSecteur = $result['ratiosSecteur'];
|
||||
|
||||
$typeBilan = (isset($_REQUEST['type' ]) == true) ? $_REQUEST['type' ] : '';
|
||||
|
||||
list($typeBilan, $numBilan) = countBilans($bilansInfos, $typeBilan);
|
||||
@ -20,10 +19,16 @@ $numBilanN = $numBilan['N'];
|
||||
$numBilanC = $numBilan['C'];
|
||||
$numBilanB = $numBilan['B'];
|
||||
$numBilanA = $numBilan['A'];;
|
||||
list($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol,
|
||||
$ratiosSecteur, $dataActif, $dataPassif, $dataSIG) =
|
||||
filtreTypeBilans($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol,
|
||||
$ratiosSecteur, array(), array(), array(), $typeBilan);
|
||||
list($bilansInfos, $ratiosSecteur, $dataActif, $dataPassif, $dataSIG) =
|
||||
filtreTypeBilans(
|
||||
$bilansInfos,
|
||||
$ratiosSecteur,
|
||||
array(),
|
||||
array(),
|
||||
array(),
|
||||
$typeBilan);
|
||||
|
||||
$ratiosInfos = formatRatiosInfos($ratiosInfos);
|
||||
?>
|
||||
<div id="center">
|
||||
<h1 class="titre">RATIOS</h1>
|
||||
@ -56,18 +61,20 @@ if ($numBilanN == 0 && $numBilanC == 0 &&
|
||||
$numBilanB == 0 && $numBilanA == 0) {
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td><td><b>
|
||||
Aucun bilan disponible pour cette entreprise !</b></td></tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td><b>Aucun bilan disponible pour cette entreprise !</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} else if ($numBilanN == 0 && $numBilanC == 0 &&
|
||||
($numBilanB > 0 || $numBilanA > 0)) {
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td><td><b>
|
||||
Bilan de banque/assurance non gérés</b></td></tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td><b>Bilan de banque/assurance non gérés</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
@ -78,7 +85,7 @@ if ($numBilanN == 0 && $numBilanC == 0 &&
|
||||
radioTypeBilan($numBilanN, $numBilanC, $typeBilan,
|
||||
$page, $siret, $idEntreprise);
|
||||
selectMillesime($bilansInfos, $page, $siret, $idEntreprise, $mil);
|
||||
afficheDureeBilan(&$bilansInfos, $bilan);
|
||||
afficheDureeBilan($bilansInfos, $bilan);
|
||||
afficheRetourRatios($ratio);
|
||||
?>
|
||||
</table>
|
||||
@ -86,7 +93,7 @@ if ($numBilanN == 0 && $numBilanC == 0 &&
|
||||
<div class="blockh2">
|
||||
<table id="ratios">
|
||||
<tbody>
|
||||
<?php print ratios_tablerow($ratiosInfos, $bilan, $ratio);?>
|
||||
<?php print ratios_tablerow($bilan, $ratio);?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -97,7 +104,7 @@ if ($numBilanN == 0 && $numBilanC == 0 &&
|
||||
<br/>
|
||||
<?php
|
||||
afficheGraphEvol($ratio, $bilan, $page, $siret, $siren, $idEntreprise);
|
||||
|
||||
/*
|
||||
// -------------------------------------------------------------------------- //
|
||||
// Export
|
||||
// -------------------------------------------------------------------------- //
|
||||
@ -129,7 +136,7 @@ $array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = 'elem';
|
||||
$array2xml->records = $export;
|
||||
$array2xml->writeXML($fileName);
|
||||
|
||||
*/
|
||||
require_once 'cgu/cgu.php';
|
||||
print '<p class="confidentiel blockh2">'.afficheCgu();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user