Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1377 → Rev 1378

/trunk/jrest/services/CelWidgetExport.php
55,7 → 55,9
'commune' => 'zone_geo',
'dept' => 'departement',
'projet' => 'mots_cles',
'num_tax' => 'nt'
'num_tax' => 'nt',
'date_debut' => 'date_debut',
'date_fin' => 'date_fin'
);
/**
69,7 → 71,7
$chercheur_observations = new RechercheObservation($this->config);
$numero_page = isset($criteres['debut']) ? $criteres['debut'] : 1;
$limite = isset($criteres['limite']) ? $criteres['limite'] : 50;
$limite = isset($criteres['limite']) ? $criteres['limite'] : 10000;
unset($criteres['limite']);
unset($criteres['debut']);
102,7 → 104,9
$outstream = fopen($chemin_temp, 'r+');
$intitule_champs = array();
foreach($data as $ligne) {
//echo '<pre>'.print_r($ligne,true).'</pre>';
$ligne = array_diff_key($ligne, $this->champs_a_exclure);
//echo '<pre>'.print_r($ligne,true).'</pre>';
if(empty($intitule_champs)) {
$intitule_champs = $this->creerEntetesChamps($ligne);
fputcsv($outstream, $intitule_champs, ',', '"');