Subversion Repositories eFlore/Applications.cel

Rev

Rev 1429 | Rev 1481 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1429 Rev 1465
Line 155... Line 155...
155
			$ligne = array_diff_key($ligne, $this->champs_a_exclure);
155
			$ligne = array_diff_key($ligne, $this->champs_a_exclure);
156
			if(empty($intitule_champs)) {
156
			if(empty($intitule_champs)) {
157
				$intitule_champs = $this->creerEntetesChamps($ligne);
157
				$intitule_champs = $this->creerEntetesChamps($ligne);
158
				$indice = 0;
158
				$indice = 0;
159
				foreach ($intitule_champs as $intitule) {	
159
				foreach ($intitule_champs as $intitule) {	
-
 
160
					$colonne = $intitule_champs[$indice];
-
 
161
					$colonne = mb_convert_encoding($colonne, 'ISO-8859-15', 'UTF-8');
160
					$worksheet->write(0,$indice,$intitule_champs[$indice]);
162
					$worksheet->write(0,$indice,$colonne);
161
					$indice++;
163
					$indice++;
162
				}
164
				}
163
			}
165
			}
164
			$indice = 0;
166
			$indice = 0;
165
			foreach($ligne as $champ) {
167
			foreach($ligne as $champ) {
-
 
168
				$champ = mb_convert_encoding($champ, 'ISO-8859-15', 'UTF-8');
166
				$worksheet->write($nb_lignes,$indice,$champ);
169
				$worksheet->write($nb_lignes,$indice,$champ);
167
				$indice++;
170
				$indice++;
168
			}
171
			}
169
			$nb_lignes++;
172
			$nb_lignes++;
170
		}
173
		}