<?php //Traitement des paramètres if (!page_checkParams()) die('Paramètres incorrects !'); if ($_SESSION['tabInfo']['idClient']==34){ $_SESSION['nowAuthorized']=TRUE; } require_once 'utils.php'; require_once 'common/dates.php'; require_once 'logos/logos.php'; require_once 'scoresws/scoresws.php'; require_once 'scoresws/identite.php'; //Récupération des infos du webservice if ($pageDiff){ $etab = scoresws_identite_ags($siret, $siren, $idEntreprise); } else { $etab = scoresws_identite($siret, $siren, $idEntreprise); } //Enregistrement des elements dans la session $tabEntrep = array(); $tabEntrep['raisonSociale'] = $etab['Nom']; $tabEntrep['id'] = $etab['id']; $tabEntrep['siren'] = $etab['Siren']; $tabEntrep['siret'] = $etab['Siret']; $tabEntrep['siretSiege'] = $etab['SiretSiege']; $tabEntrep['tva'] = $etab['TvaNumero']; if (isset($etab['Isin'])) { $tabEntrep['isin'] = $etab['Isin']; } $tabEntrep['AutreId'] = $etab['AutreId']; if (isset($etab['Statut'])) { $tabEntrep['active'] = $etab['Statut']; } $tabEntrep['Source'] = $etab['Source']; $tabEntrep['SourceId'] = $etab['SourceId']; // Utilise pour les compétences territoriale $tabEntrep['codeCommune'] = $etab['Dept'].$etab['codeCommune']; $tabEntrep['nafEn'] = $etab['NafEnt']; $tabEntrep['nafEnLib'] = $etab['NafEntLib']; $tabEntrep['nafEt'] = $etab['NafEtab']; $tabEntrep['nafEtLib'] = $etab['NafEtabLib']; $tabEntrep['fj'] = $etab['FJ']; $tabEntrep['Dept'] = $etab['Dept']; $_SESSION['tabInfo']['entrep'] = $tabEntrep;