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