exportcsv
This commit is contained in:
parent
6f8ad95e58
commit
a5a71a3cb1
@ -20,9 +20,10 @@ class ExportCSV
|
|||||||
{
|
{
|
||||||
$row = 0;
|
$row = 0;
|
||||||
foreach($this->data as $itemKey => $itemVal)
|
foreach($this->data as $itemKey => $itemVal)
|
||||||
{
|
{
|
||||||
foreach($this->enteteKey as $key){
|
foreach($this->enteteKey as $key){
|
||||||
$this->list[$row][] = $itemVal[$key];
|
$val = html_entity_decode($itemVal[$key]);
|
||||||
|
$this->list[$row][] = $val;
|
||||||
}
|
}
|
||||||
$row++;
|
$row++;
|
||||||
}
|
}
|
||||||
|
@ -141,6 +141,6 @@ if ($typeRech=='ent' && $siret<>'') {
|
|||||||
$etabs = $O['results']['reponses'];
|
$etabs = $O['results']['reponses'];
|
||||||
|
|
||||||
$export = new ExportCSV($etabs, 'rechercheEntreprise');
|
$export = new ExportCSV($etabs, 'rechercheEntreprise');
|
||||||
$export->writeFile(PATH_SITE . '/cache/pages/marecherche.csv');
|
$export->writeFile(PATH_SITE . '/cache/pages/rech-'.$_SESSION['login'].'.csv');
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user