Fix import layout (bug #1370416), prefer recoding of strings over changing MySQL charset as in this case we can show resulting queries.
This commit is contained in:
@@ -20,6 +20,9 @@ $Source$
|
|||||||
Fix import of some CSV files (bug #1373731), provide better error
|
Fix import of some CSV files (bug #1373731), provide better error
|
||||||
messages.
|
messages.
|
||||||
* lang/czech: Update.
|
* lang/czech: Update.
|
||||||
|
* import.php, libraries/display_import.lib.php: Fix import layout (bug
|
||||||
|
#1370416), prefer recoding of strings over changing MySQL charset as in
|
||||||
|
this case we can show resulting queries.
|
||||||
|
|
||||||
2005-12-04 Marc Delisle <lem9@users.sourceforge.net>
|
2005-12-04 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/catalan update, thanks to Xavier Navarro (xavin).
|
* lang/catalan update, thanks to Xavier Navarro (xavin).
|
||||||
|
@@ -285,8 +285,7 @@ if ($import_file != 'none' && !$error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convert the file's charset if necessary
|
// Convert the file's charset if necessary
|
||||||
if (PMA_MYSQL_INT_VERSION < 40100
|
if ($cfg['AllowAnywhereRecoding'] && $allow_recoding
|
||||||
&& $cfg['AllowAnywhereRecoding'] && $allow_recoding
|
|
||||||
&& isset($charset_of_file) && $charset_of_file != $charset) {
|
&& isset($charset_of_file) && $charset_of_file != $charset) {
|
||||||
$charset_conversion = TRUE;
|
$charset_conversion = TRUE;
|
||||||
} else if (PMA_MYSQL_INT_VERSION >= 40100
|
} else if (PMA_MYSQL_INT_VERSION >= 40100
|
||||||
|
@@ -128,19 +128,15 @@ foreach($import_list as $key => $val) {
|
|||||||
<legend><?php echo $strFileToImport; ?></legend>
|
<legend><?php echo $strFileToImport; ?></legend>
|
||||||
|
|
||||||
<div class="formelementrow">
|
<div class="formelementrow">
|
||||||
<div class="formelement">
|
|
||||||
<label for="input_import_file"><?php echo $strLocationTextfile; ?></label>
|
<label for="input_import_file"><?php echo $strLocationTextfile; ?></label>
|
||||||
<input style="margin: 5px" type="file" name="import_file" id="input_import_file" onchange="match_file(this.value);" />
|
<input style="margin: 5px" type="file" name="import_file" id="input_import_file" onchange="match_file(this.value);" />
|
||||||
</div>
|
<?php
|
||||||
|
echo PMA_displayMaximumUploadSize($max_upload_size) . "\n";
|
||||||
|
// some browsers should respect this :)
|
||||||
|
echo PMA_generateHiddenMaxFileSize($max_upload_size) . "\n";
|
||||||
|
?>
|
||||||
|
<div>
|
||||||
<?php
|
<?php
|
||||||
echo '<div class="formelement">' . "\n";
|
|
||||||
echo PMA_displayMaximumUploadSize($max_upload_size);
|
|
||||||
echo '</div>' . "\n";
|
|
||||||
echo '<div class="clearfloat"></div>' . "\n";
|
|
||||||
echo '</div>' . "\n";
|
|
||||||
// some browsers should respect this :)
|
|
||||||
echo PMA_generateHiddenMaxFileSize($max_upload_size) . "\n";
|
|
||||||
|
|
||||||
if (!empty($cfg['UploadDir'])) {
|
if (!empty($cfg['UploadDir'])) {
|
||||||
$extensions = '';
|
$extensions = '';
|
||||||
foreach($import_list as $key => $val) {
|
foreach($import_list as $key => $val) {
|
||||||
@@ -169,7 +165,7 @@ if (!empty($cfg['UploadDir'])) {
|
|||||||
|
|
||||||
// charset of file
|
// charset of file
|
||||||
echo '<div class="formelementrow">' . "\n";
|
echo '<div class="formelementrow">' . "\n";
|
||||||
if (PMA_MYSQL_INT_VERSION < 40100 && $cfg['AllowAnywhereRecoding'] && $allow_recoding) {
|
if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) {
|
||||||
echo '<label for="charset_of_file">' . $strCharsetOfFile . '</label>' . "\n";
|
echo '<label for="charset_of_file">' . $strCharsetOfFile . '</label>' . "\n";
|
||||||
$temp_charset = reset($cfg['AvailableCharsets']);
|
$temp_charset = reset($cfg['AvailableCharsets']);
|
||||||
echo $strCharsetOfFile . "\n"
|
echo $strCharsetOfFile . "\n"
|
||||||
|
Reference in New Issue
Block a user