bug #2045512 [export] Numbers in Excel export

This commit is contained in:
Marc Delisle
2008-08-13 16:28:43 +00:00
parent f2e2499116
commit de7abbdd5b
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
displayed, thanks to Maik Wiege - mswiege displayed, thanks to Maik Wiege - mswiege
- bug #2037381 [export] Export type "replace" does not work - bug #2037381 [export] Export type "replace" does not work
- bug #2037375 [export] DROP PROCEDURE needs IF EXISTS - bug #2037375 [export] DROP PROCEDURE needs IF EXISTS
- bug #2045512 [export] Numbers in Excel export
2.11.8.0 (2008-07-28) 2.11.8.0 (2008-07-28)
- patch #1987593 [interface] Table list pagination in navi, - patch #1987593 [interface] Table list pagination in navi,

View File

@@ -162,6 +162,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
} }
} // end if } // end if
$fields_meta = PMA_DBI_get_fields_meta($result);
// Format the data // Format the data
while ($row = PMA_DBI_fetch_row($result)) { while ($row = PMA_DBI_fetch_row($result)) {
$schema_insert = '<tr>'; $schema_insert = '<tr>';
@@ -173,7 +175,11 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
} else { } else {
$value = ''; $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 } // end for
$schema_insert .= '</tr>'; $schema_insert .= '</tr>';
if (!PMA_exportOutputHandler($schema_insert)) { if (!PMA_exportOutputHandler($schema_insert)) {