| /trunk/interfaces/controleurs/Informations.php |
|---|
| 109,8 → 109,8 |
| $parametres['ref'] = $this->referentiel; |
| $parametres['version'] = $_POST["version"]; |
| $parametres['version'] = str_replace(".", "_", $parametres['version']); |
| $parametres['champs'] = implode(",",$_POST["champs"]); |
| $parametres['filtres'] = implode(",",$_POST["filtres"]); |
| if (isset($_POST["champs"])) $parametres['champs'] = implode(",",$_POST["champs"]); |
| if (isset($_POST["filtres"])) $parametres['filtres'] = implode(",",$_POST["filtres"]); |
| $this->supprimerAncienExport($dossier); |
| $ref = $this->referentielDao->exporter($parametres); |
| $meta = $this->metaDao->exporter($parametres); |
| /trunk/services/modules/Referentiel.php |
|---|
| 208,6 → 208,7 |
| chmod($dossier, 0777); |
| } |
| $fichier = $dossier.$ref."_".time().'.csv'; |
| if (isset($p['champs'])) { |
| $champs = $this->formaterColonnes($p['champs'], $ref); |
| $requete = 'SELECT "'.implode('","', $champs['titre']).'" UNION (SELECT '.implode(', ',$champs['select']). |
| " INTO OUTFILE '".$fichier."' CHARACTER SET utf8 FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' ". |
| 236,6 → 237,7 |
| } catch (PDOException $e) { |
| $this->messages[] = sprintf($this->getTxt('sql_erreur'), $e->getFile(), $e->getLine(), $e->getMessage()).$requete; |
| } |
| } |
| return $fichier; |
| } |