Etablissements multiligne

This commit is contained in:
Michael RICOIS 2016-02-15 13:08:21 +00:00
parent 296bd02d7b
commit 8159ac06e3

View File

@ -256,6 +256,7 @@ $tabDico = array(
'participations',
'annoncetxt',
'groupes',
'etablissements'
),
);
@ -1983,6 +1984,30 @@ function groupesChildren($tab, $level)
return $result;
}
function etablissementsEntete()
{
return array(
'SIRET',
'SIEGE',
'ACTIF',
);
}
function etablissementsMultiple($siren, $nic, $values = false)
{
$mInsee = new MInsee();
$result = $mInsee->getEtablissements($siren);
if (count($result) > 0) {
foreach ($result as $r) {
$tabData[] = array(
'SIRET' => $result['Siret'],
'SIEGE' => $result['Siege'],
'ACTIF' => $result['Actif'],
);
}
}
return $tabData;
}
/* == FUNCTION == */
/**