Etablissements multiligne
This commit is contained in:
parent
296bd02d7b
commit
8159ac06e3
@ -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 == */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user