Changeset 5215 in spip-zone
- Timestamp:
- Sep 9, 2006, 3:50:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_branche_stable_/_spip_1_9_0_/csv_import/inc/csvimport.php
r4235 r5215 250 250 echo "<tr>"; 251 251 foreach($row as $key=>$value){ 252 echo "<th>" . htmlentities($key). "</th>";252 echo "<th>" . $key . "</th>"; 253 253 $nb_col++; 254 254 } … … 282 282 $output .= "<tr>"; 283 283 foreach($ligne as $key=>$value){ 284 $output .= "<th>" . htmlentities($key). "</th>";284 $output .= "<th>" . $key . "</th>"; 285 285 $nb_col++; 286 286 } … … 321 321 $output .= "<tr>"; 322 322 foreach($tablefield as $value){ 323 $output .= "<th>" . htmlentities($value). "</th>";323 $output .= "<th>" . $value . "</th>"; 324 324 } 325 325 $output .= "</tr>\n"; … … 384 384 385 385 //assoc auto des cles qui portent le meme nom 386 $accents=array('é','è','ê','à','ù',"ô","ç" );387 $accents_rep=array('e','e','e','a','u',"o","c" );386 $accents=array('é','è','ê','à','ù',"ô","ç","'"); 387 $accents_rep=array('e','e','e','a','u',"o","c","_"); 388 388 foreach(array_keys($csvfield) as $csvkey){ 389 389 foreach(array_keys($tablefield) as $tablekey) … … 419 419 $output .= "<tr>"; 420 420 $output .= "<td>$csvkey</td>"; 421 $output .= "<td><select name='assoc_field[". htmlentities($csvkey,ENT_QUOTES)."]'>\n";421 $output .= "<td><select name='assoc_field[".str_replace("'","_",$csvkey)."]'>\n"; 422 422 $output .= "<option value='-1'>"._L("Ne pas importer")."</option>\n"; 423 423 foreach($tablefield as $tablekey){
Note: See TracChangeset
for help on using the changeset viewer.