bug #2045512 [export] Numbers in Excel export
This commit is contained in:
@@ -78,6 +78,7 @@ danbarry
|
||||
displayed, thanks to Maik Wiege - mswiege
|
||||
- bug #2037381 [export] Export type "replace" does not work
|
||||
- bug #2037375 [export] DROP PROCEDURE needs IF EXISTS
|
||||
- bug #2045512 [export] Numbers in Excel export
|
||||
|
||||
2.11.8.0 (2008-07-28)
|
||||
- patch #1987593 [interface] Table list pagination in navi,
|
||||
|
@@ -162,6 +162,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
|
||||
}
|
||||
} // end if
|
||||
|
||||
$fields_meta = PMA_DBI_get_fields_meta($result);
|
||||
|
||||
// Format the data
|
||||
while ($row = PMA_DBI_fetch_row($result)) {
|
||||
$schema_insert = '<tr>';
|
||||
@@ -173,7 +175,11 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
|
||||
} else {
|
||||
$value = '';
|
||||
}
|
||||
$schema_insert .= '<td class=xl2216681 nowrap>' . htmlspecialchars($value) . '</td>';
|
||||
$schema_insert .= '<td class=xl2216681 nowrap';
|
||||
if ('1' == $fields_meta[$j]->numeric) {
|
||||
$schema_insert .= ' x:num ';
|
||||
}
|
||||
$schema_insert .= '>' . htmlspecialchars($value) . '</td>';
|
||||
} // end for
|
||||
$schema_insert .= '</tr>';
|
||||
if (!PMA_exportOutputHandler($schema_insert)) {
|
||||
|
Reference in New Issue
Block a user