extranet/www/pages/identite.php

59 lines
1.6 KiB
PHP
Raw Normal View History

<?php
//Enregistrement pour liste dernière recherche
require_once 'recherche/session.php';
$parametres = recherche_element(0);
if( isset($parametres) && $parametres['info']['page']=='recherche' )
2010-03-08 16:42:53 +00:00
{
2010-04-12 14:49:55 +00:00
recherche_saveinfo( array('page' => $page) );
recherche_saveinfo( array('siret' => $siret) );
recherche_saveinfo( array('idEntreprise' => $idEntreprise) );
}
?>
<div id="center">
<?php
require_once 'identite/datemaj.php';
require_once 'identite/content.php';
?>
<h2>Localisation géographique &amp; Recherche presse</h2>
<div class="blockh2 clearfix">
<?php
2010-03-09 10:36:16 +00:00
// Information géographique
2010-03-17 16:46:28 +00:00
require_once 'identite/infogeo.php';
?>
2010-03-17 16:46:28 +00:00
<br/>
2010-03-08 16:42:53 +00:00
<?php
require_once 'identite/news.php';
require_once 'surveillance/surveillance_identite.php';
?>
2010-04-13 13:43:59 +00:00
</div>
2010-04-13 09:51:43 +00:00
<p class="confidentiel blockh2">
<?php
require_once 'cgu/cgu.php';
echo afficheCgu();
?>
</p>
<?php
2009-10-08 13:20:51 +00:00
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){
2010-03-08 16:42:53 +00:00
$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);
?>
</div>