'Consolidé', 'N'=>'', 'S'=>'Réel Simplifié', 'B'=> 'Banque', 'A'=>'Assurance' ); cache_filename($fileName); if( cache_exist() && !hasModeEdition() ) { $tabBilans = cache_get('tabBilans'); $tabBilan = cache_get('tabBilan'); }else{ try { $O = $client->getListeBilans($siren); $tabBilans = $O['result']; //Tri du tableau if(count($tabBilans)>0) { 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_delete(); cache_add('tabBilans', $tabBilans); if (isset($_REQUEST['mil'])) { $O = $client->getBilan($siren, substr($mil[0],-10), substr($mil[0],0,1), $mil[1]); $tabBilan = $O['result']; cache_add('tabBilan',$tabBilan); } } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client,$fault,$_SESSION['tabInfo']); die(); } } ?>