Commit 2bee90e5 authored by Lionel VEST's avatar Lionel VEST
Browse files

Chambre des Métiers et de l'artisanat

parent ae3ed0d5
......@@ -9,6 +9,7 @@ if ($_GET['refresh'])
unlink('sirene/' . $_GET['siren'] . '_etablissements.json');
unlink('sirene/' . $_GET['siren'] . '_unitelegale.json');
unlink('imrs/' . $_GET['siren'] . '.xml');
unlink('rm/' . $_GET['siren'] . '.json');
unlink('bodacc/' . $_GET['siren'] . '.json');
unlink('legifrance_acco/' . $_GET['siren'] . '.json');
unlink('legifrance_acco/' . $_GET['siren'] . '_brut.json');
......@@ -19,6 +20,7 @@ include('constants.php');
$curl = curl_init();
include('imr.php');
include('sirene.php');
include('rm.php');
include('legifrance_acco.php');
include('idcc.php');
include('trademarks.php');
......@@ -80,6 +82,8 @@ if ($unitelegale)
echo '<td id="header_links">';
if (sizeof($unitelegale) > 0)
echo '<a href="javascript:document.getElementById(\'menu_unite_legale\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Unite Legale</a>';
if (sizeof($rm) > 0)
echo '<a href="javascript:document.getElementById(\'menu_artisan\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Chambre des Métiers</a>';
if (sizeof($historique_unitelegale) > 0)
echo '<a href="javascript:document.getElementById(\'menu_historique\').scrollIntoView({behavior: \'instant\', block:\'start\', inline:\'nearest\'});menu()">Historique</a>';
if (sizeof($observations) > 0)
......@@ -134,6 +138,18 @@ if (sizeof($unitelegale) > 0)
echo '</table>';
}
//CHAMBRE DES METIERS
if (sizeof($rm) > 0)
{
echo '<table id="menu_artisan" class="scrollable_table">';
echo '<thead><tr><td colspan="2" style="text-align:left">CHAMBRE DES METIERS</td></tr></thead>';
echo '<tbody>';
foreach($rm as $key => $value)
echo '<tr><td style="white-space:nowrap">' . $key . '</td><td style="width:100%;overflow-wrap:anywhere">' . (is_array($value)?implode('<br/>',array_filter(array_map('trim', $value))):$value) . '</td></tr>';
echo '</tbody>';
echo '</table>';
}
//HISTORIQUE
if (sizeof($historique_unitelegale) > 0)
{
......@@ -418,6 +434,8 @@ echo '<table id="menu_sources" class="scrollable_table print_hide">';
echo '<tr><td><a href="https://www.bodacc.fr" target="_blank">BODACC</a></td><td style="text-align:center;white-space:nowrap" class="print_hide"><a href="https://www.bodacc.fr/annonce/liste/' . $_GET['siren'] . '" target="_blank"><img alt="json" class="icon" src="/images/html.svg"/></a>&nbsp;&nbsp;<a href="/bodacc/' . $_GET['siren'] . '.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($idcc))
echo '<tr><td><a href="https://siret2idcc.fabrique.social.gouv.fr/" target="_blank">SIRET2IDCC</a></td><td style="text-align:center;white-space:nowrap" class="print_hide"><a href="/idcc/' . $_GET['siren'] . '.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($rm))
echo '<tr><td><a href="https://api-rnm.artisanat.fr/v2/entreprises/" target="_blank">API RNM</a></td><td style="text-align:center;white-space:nowrap" class="print_hide"><a href="/rm/' . $_GET['siren'] . '.json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($marques))
echo '<tr><td><a href="https://data.inpi.fr" target="_blank">INPI.FR (Marques)</a></td><td style="text-align:center;white-space:nowrap" class="print_hide"><a href="https://societe.ninja/trademarks.php?siren=' . $_GET['siren'] . '&format=json" target="_blank"><img alt="json" class="icon" src="/images/json.svg"/></a></td></tr>';
if (is_array($brevets))
......
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