exportcsv

This commit is contained in:
Michael RICOIS 2011-12-02 14:52:05 +00:00
parent 6f8ad95e58
commit a5a71a3cb1
2 changed files with 4 additions and 3 deletions

View File

@ -20,9 +20,10 @@ class ExportCSV
{
$row = 0;
foreach($this->data as $itemKey => $itemVal)
{
{
foreach($this->enteteKey as $key){
$this->list[$row][] = $itemVal[$key];
$val = html_entity_decode($itemVal[$key]);
$this->list[$row][] = $val;
}
$row++;
}

View File

@ -141,6 +141,6 @@ if ($typeRech=='ent' && $siret<>'') {
$etabs = $O['results']['reponses'];
$export = new ExportCSV($etabs, 'rechercheEntreprise');
$export->writeFile(PATH_SITE . '/cache/pages/marecherche.csv');
$export->writeFile(PATH_SITE . '/cache/pages/rech-'.$_SESSION['login'].'.csv');