Tri des bilans par ordre
This commit is contained in:
parent
ced41ef151
commit
18fa6b2fec
@ -38,6 +38,20 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits'])
|
||||
try {
|
||||
$O = $client->getListeBilans($siren);
|
||||
$tabBilans = $O['result'];
|
||||
//Tri du tableau
|
||||
foreach($tabBilans as $key => $bilan)
|
||||
{
|
||||
$cle[$key] = $key[0].substr($key, -4);
|
||||
$dateProvPartenaire[$key] = $bilan['dateProvPartenaire'];
|
||||
$dateInsert[$key] = $bilan['dateInsert'];
|
||||
$dureeExercice[$key] = $bilan['dureeExercice'];
|
||||
$dateExercicePre[$key] = $bilan['dateExercicePre'];
|
||||
$monnaie[$key] = $bilan['monnaie'];
|
||||
$source[$key] = $bilan['source'];
|
||||
|
||||
}
|
||||
array_multisort($cle, SORT_DESC, $tabBilans);
|
||||
|
||||
cache_add('tabBilans', $tabBilans);
|
||||
if (isset($_REQUEST['mil'])) {
|
||||
$tabTmp = explode(',',$_REQUEST['mil']);
|
||||
@ -52,6 +66,7 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits'])
|
||||
die();
|
||||
}
|
||||
}
|
||||
$firephp->log($tabBilans, 'tabBilan');
|
||||
?>
|
||||
<div id="center" style="width:660px">
|
||||
<h1 class="titre">ÉLÉMENTS FINANCIERS - BILANS</h1>
|
||||
|
Loading…
Reference in New Issue
Block a user