'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(); } } ?>

ÉLÉMENTS FINANCIERS - BILANS

0) { $tabUnit = array( 0 => array('lib'=>'€', 'val'=>''), 1 => array('lib'=>'K€', 'val'=>'K'), 2 => array('lib'=>'M€', 'val'=>'M'), ); ?>
  Numéro identifiant Siren
  Raison Sociale
  Valeurs exprimées en
  Millesime 0) { ?>   Aucun bilan disponible pour cette entreprise !
tab = array($tabBilans); $parseTab->type = array(); $array2csv = new ExportCSV; $array2csv->records = $parseTab->convertTable(); $array2csv->writeCSV($fileName); $array2xml = new ExportXML; $array2xml->rootName = $page.'s'; $array2xml->defaultTagName = $page; $array2xml->records = $tabBilans; $array2xml->writeXML($fileName); } // Fin if "pas de bilan choisit" ?>