69 lines
1.9 KiB
PHP
69 lines
1.9 KiB
PHP
<?php
|
|
//Enregistrement pour liste dernière recherche
|
|
require_once 'recherche/session.php';
|
|
$parametres = recherche_element(0);
|
|
if( isset($parametres) && $parametres['info']['page']=='recherche' )
|
|
{
|
|
recherche_saveinfo( array('page' => $page) );
|
|
recherche_saveinfo( array('siret' => $siret) );
|
|
recherche_saveinfo( array('idEntreprise' => $idEntreprise) );
|
|
}
|
|
?>
|
|
<div id="center">
|
|
<?php
|
|
if ( isset($etab['id']) && $etab['id']!='' ){
|
|
|
|
require_once 'identite/datemaj.php';
|
|
require_once 'identite/content.php';
|
|
?>
|
|
<h2>Localisation géographique & Recherche presse</h2>
|
|
<div class="blockh2 clearfix">
|
|
<?php
|
|
// Information géographique
|
|
require_once 'identite/infogeo.php';
|
|
?>
|
|
<br/>
|
|
<?php
|
|
require_once 'identite/news.php';
|
|
require_once 'surveillance/surveillance_identite.php';
|
|
?>
|
|
</div>
|
|
<p class="confidentiel blockh2">
|
|
<?php
|
|
require_once 'cgu/cgu.php';
|
|
echo afficheCgu();
|
|
?>
|
|
</p>
|
|
<?php
|
|
if (($siret*1)==0 || ($siren*1)<100){ $fileName = 'identite-'.$idEntreprise;
|
|
}else{ $fileName = 'identite-'.$siret; }
|
|
|
|
//Exportation des données sous forme de fichier
|
|
function htmldecode($value){
|
|
$value = is_array($value) ? array_map('htmldecode', $value) : html_entity_decode($value, ENT_QUOTES, 'UTF-8');
|
|
return $value;
|
|
}
|
|
$tabTemp = htmldecode($etab);
|
|
$tabForExport[0] = $tabTemp;
|
|
|
|
require_once 'export.php';
|
|
|
|
$array2csv = new ExportCSV();
|
|
$array2csv->records = $tabForExport;
|
|
$array2csv->writeCSV($fileName);
|
|
|
|
$array2xml = new ExportXML();
|
|
$array2xml->rootName = $page.'s';
|
|
$array2xml->defaultTagName = $page;
|
|
$array2xml->records = $tabForExport;
|
|
$array2xml->writeXML($fileName);
|
|
} else {
|
|
?>
|
|
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
|
|
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
|
SIREN / SIRET Inexistant</p>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|