Commit e0e4337c authored by Lionel VEST's avatar Lionel VEST
Browse files

Registre des Bénéficiaires Effectifs

parent b41d4518
......@@ -19,6 +19,8 @@ include('config.php');
include('constants.php');
$curl = curl_init();
include('imr.php');
if ($rbe_login != ')
include('rbe.php');
include('sirene.php');
include('rm.php');
include('legifrance_acco.php');
......@@ -92,6 +94,8 @@ if ($unitelegale)
echo '<a href="javascript:document.getElementById(\'menu_bodacc\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">BODACC</a>';
if (sizeof($representants) > 0)
echo '<a href="javascript:document.getElementById(\'menu_representants\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Représentants</a>';
if (sizeof($beneficiaires) > 0)
echo '<a href="javascript:document.getElementById(\'menu_beneficiaires\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Bénéficiaires</a>';
if (is_array($actes) AND sizeof($actes) > 0)
echo '<a href="javascript:document.getElementById(\'menu_actes\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Actes</a>';
if (sizeof($comptes_annuels) > 0)
......@@ -220,6 +224,53 @@ if (sizeof($representants) > 0)
echo '</table>';
}
//BENEFICIAIRES EFFECTIFS
if (sizeof($beneficiaires) > 0 OR sizeof($beneficiaires_advanced) > 0)
{
echo '<table id="menu_beneficiaires" class="scrollable_table representants responsive_table">';
echo '<thead><tr><td colspan="3">BENEFICIAIRES EFFECTIFS' . ($_GET['avocat']==1?'<span style="font-style:italic;color:#FF0000"> (Confidentiel)</span>':'') . '</td></tr></thead>';
echo '<tbody>';
if (sizeof($beneficiaires_advanced) > 0)
foreach($beneficiaires_advanced as $beneficiaire_advanced)
{
echo '<tr>';
echo '<td style="white-space:nowrap">';
echo '<b>' . $beneficiaire_advanced["Prénoms"] . ($beneficiaire_advanced["Nom de Naissance"]!=$beneficiaire_advanced["Nom d'Usage"]?' ' .$beneficiaire_advanced["Nom d'Usage"]:'') . ' ' . $beneficiaire_advanced["Nom de Naissance"] . ($beneficiaire_advanced["Pseudonyme"]?' alias ' . $beneficiaire_advanced["Pseudonyme"]:'') . '</b><br/>';
echo "Nationalité : " . $beneficiaire_advanced["Nationalité"] . '<br/>';
echo 'Né(e) le ' . $beneficiaire_advanced["Date de naissance"] . ' à ' . $beneficiaire_advanced['Ville de Naissance'] . ' (' . (strtoupper($beneficiaire_advanced['Pays de Naissance'])=='FRANCE'?$beneficiaire_advanced['Département de naissance']:$beneficiaire_advanced['Pays de Naissance']) . ')<br/>';
echo $beneficiaire_advanced["Adresse"] . '<br/>';
echo $beneficiaire_advanced["Code Postal"] . ' ' . $beneficiaire_advanced["Ville"] . ' (' . $beneficiaire_advanced["Pays"] . ')<br/>';
echo '</td>';
echo '<td width="100%">';
foreach($beneficiaire_advanced['detail'] as $key => $value)
if ($value)
echo $key . ' : ' . $value . '<br/>';
echo '</td>';
echo '</tr>';
}
else
foreach($beneficiaires as $beneficiaire)
{
echo '<tr>';
//echo '<td><img class="smartphone_hide" alt="type" style="width:48px;filter:drop-shadow(1px 1px 1px rgba(80,80,80,.7))" src="/images/' . (strpos($representant['type'],"Morale")?'corporation':'person') . '.svg"/></td>';
//echo '<td>' . implode('<br/>',$representant['qualite']) . '</td>';
echo '<td style="white-space:nowrap">';
echo '<b>' . $beneficiaire['prenoms'] . ' ' . $beneficiaire['nom_usage'] . ' ' . $beneficiaire['nom_naissance'] . '</b><br/>';
echo 'Nationalité : ' . $beneficiaire['nationalite'] . '<br/>';
echo 'Né en ' . $beneficiaire['date_naissance'];
echo '</td>';
echo '<td width="100%">';
echo ($beneficiaire['detention_part_totale']?'Détention : ' . $beneficiaire['detention_part_totale'] . ' %<br/>':'');
echo ($beneficiaire['detention_vote_total']?'Droit de vote : ' . $beneficiaire['detention_vote_total'] . ' %':'');
echo '</td>';
echo '</tr>';
}
echo '</tbody>';
echo '</table>';
}
//ACTES
if (is_array($actes) AND sizeof($actes) > 0)
{
......@@ -428,6 +479,8 @@ echo '<table id="menu_sources" class="scrollable_table print_hide">';
echo '<tbody>';
echo '<tr><td width="100%"><a href="https://api.insee.fr" target="_blank">Répertoire SIRENE</a></td><td style="text-align:center" class="print_hide"><a href="/sirene/' . $_GET['siren'] . '_unitelegale.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a>&nbsp;&nbsp;<a href="/sirene/' . $_GET['siren'] . '_etablissements.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
echo '<tr><td><a href="https://data.inpi.fr" target="_blank">Répertoire RNCS</a></td><td style="text-align:center" class="print_hide"><a href="/imrs/' . $_GET['siren'] . '.xml" target="_blank"><img alt="xml" class="icon" src="/images/xml.svg"/></a>&nbsp;&nbsp;<a href="/imrs/' . $_GET['siren'] . '_actes.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($beneficiaires_advanced))
echo '<tr><td><a href="https://data.inpi.fr" target="_blank">Registre des Bénéficiaires Effectifs</a><br/><span style="font-size:12px;font-style:italic;color:#FF0000">Données confidentielles réservées aux avocats</span></td><td style="text-align:center" class="print_hide"><a href="/rbe/' . $_GET['siren'] . '.xml" target="_blank"><img alt="xml" class="icon" src="/images/xml.svg"/></a>&nbsp;&nbsp;<a href="/rbe/' . $_GET['siren'] . '_actes.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($etablissements_avec_accords))
echo '<tr><td><a href="https://aife.economie.gouv.fr/dila/legifrance-beta" target="_blank">LEGIFRANCE</a></td><td style="text-align:center" class="print_hide"><a href="/legifrance_acco/' . $_GET['siren'] . '_brut.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($annonces))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment