Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1611 → Rev 1612

/trunk/jrest/services/CelWidgetExport.php
154,8 → 154,10
$this->extendSpreadsheetProductor->initSpreadsheet();
$workbook = new Spreadsheet_Excel_Writer();
$workbook->setVersion(8);
 
$worksheet = $workbook->addWorksheet('Liste');
$worksheet->setInputEncoding('utf-8');
$workbook->send($this->nom_fichier_export.'.xls');
$nb_lignes = 1;
168,7 → 170,6
$indice = 0;
foreach ($intitule_champs as $intitule) {
$colonne = $intitule_champs[$indice];
$colonne = mb_convert_encoding($colonne, 'ISO-8859-15', 'UTF-8');
$worksheet->write(0,$indice,$colonne);
$indice++;
}
175,7 → 176,6
}
$indice = 0;
foreach($ligne as $champ) {
$champ = mb_convert_encoding($champ, 'ISO-8859-15', 'UTF-8');
$worksheet->write($nb_lignes,$indice,$champ);
$indice++;
}