<form action="" method="post">
<table cellspacing="0">
<?php
-$db_style = array('USE', 'DROP+CREATE', 'CREATE');
-$table_style = array('DROP+CREATE', 'CREATE');
-$data_style = array('TRUNCATE+INSERT', 'INSERT', 'INSERT+UPDATE');
+$db_style = array('', 'USE', 'DROP+CREATE', 'CREATE');
+$table_style = array('', 'DROP+CREATE', 'CREATE');
+$data_style = array('', 'TRUNCATE+INSERT', 'INSERT', 'INSERT+UPDATE');
if ($dbh->server_info >= 5) {
$db_style[] = 'CREATE+ALTER';
$table_style[] = 'CREATE+ALTER';
}
echo "<tr><th>" . lang('Output') . "<td><input type='hidden' name='token' value='$token'>$dump_output\n";
-echo "<tr><th>" . lang('Format') . "<td>$dump_format\n";
-echo "<tr><th>" . lang('Database') . "<td><select name='db_style'><option>" . optionlist($db_style, (strlen($_GET["db"]) ? '' : 'CREATE')) . "</select>\n";
-echo "<tr><th>" . lang('Tables') . "<td><select name='table_style'><option>" . optionlist($table_style, 'DROP+CREATE') . "</select>\n";
-echo "<tr><th>" . lang('Data') . "<td><select name='data_style'><option>" . optionlist($data_style, 'INSERT') . "</select>\n";
+echo "<tr><th>" . lang('Database') . "<td><select name='db_style'>" . optionlist($db_style, (strlen($_GET["db"]) ? '' : 'CREATE')) . "</select>\n";
+echo "<tr><th>" . lang('Tables') . "<td><select name='table_style'>" . optionlist($table_style, 'DROP+CREATE') . "</select>\n";
+echo "<tr><th>" . lang('Data') . "<td><select name='data_style'>" . optionlist($data_style, 'INSERT') . "</select>\n";
?>
</table>
<p><input type="submit" value="<?php echo lang('Export'); ?>">
return $ext;
}
-$dump_output = "<select name='output'>" . optionlist(array('text' => lang('open'), 'file' => lang('save'))) . "</select>";
-$dump_format = "<select name='format'>" . optionlist(array('sql' => lang('SQL'), 'csv' => lang('CSV'))) . "</select>";
+$dump_output = "<select name='output'>" . optionlist(array('text' => lang('open'), 'file' => lang('save'))) . "</select>"
+ . " <select name='format'>" . optionlist(array('sql' => 'SQL', 'csv' => 'CSV')) . "</select>"
$max_packet = 1048576; // default, minimum is 1024
'Output' => 'Výstup',
'open' => 'otevřít',
'save' => 'uložit',
- 'Format' => 'Formát',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Tabulky',
'Data' => 'Data',
'Event has been dropped.' => 'Událost byla odstraněna.',
'Output' => 'Ergebnis',
'open' => 'anzeigen',
'save' => 'Datei',
- 'Format' => 'Format',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Tabellen',
'Data' => 'Daten',
'Event has been dropped.' => 'Ereignis entfernt.',
'Output' => 'Salida',
'open' => 'mostrar',
'save' => 'archivo',
- 'Format' => 'Formato',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Tablas',
'Data' => 'Datos',
'Event has been dropped.' => 'Evento eliminado.',
'Output' => 'Väljund',
'open' => 'näita brauseris',
'save' => 'salvesta failina',
- 'Format' => 'Formaat',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Functions' => 'Funktsioonid',
'Aggregation' => 'Liitmine',
'Event has been dropped.' => 'Sündmus on edukalt kustutatud.',
'Output' => 'Sortie',
'open' => 'ouvrir',
'save' => 'sauvegarder',
- 'Format' => 'Formatter',
- 'SQL' => 'SQL',
- 'CSV' => 'CVS',
'Functions' => 'Fonctions',
'Aggregation' => 'Agrégation',
'Event has been dropped.' => 'L\'évènement a été supprimé.',
'Output' => 'Risultato',
'open' => 'apri',
'save' => 'salva',
- 'Format' => 'Formato',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Tabelle',
'Data' => 'Dati',
'Event has been dropped.' => 'Evento eliminato.',
'Output' => 'Uitvoer',
'open' => 'openen',
'save' => 'opslaan',
- 'Format' => 'Formaat',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Functions' => 'Functies',
'Aggregation' => 'Totalen',
'Event has been dropped.' => 'Event werd verwijderd.',
'Output' => 'Выходные данные',
'open' => 'открыть',
'save' => 'сохранить',
- 'Format' => 'Формат',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Таблицы',
'Data' => 'Данные',
'Event has been dropped.' => 'Событие было удалено.',
'Output' => 'Výstup',
'open' => 'otvoriť',
'save' => 'uložiť',
- 'Format' => 'Formát',
- 'SQL' => 'SQL',
- 'CSV' => 'CSV',
'Tables' => 'Tabuľky',
'Data' => 'Dáta',
'Event has been dropped.' => 'Udalosť bola odstránená.',
'Output' => '輸出',
'open' => '打開',
'save' => '儲存',
- 'Format' => '格式',
- 'SQL' => 'SQL',
- 'CSV' => 'CVS',
'Functions' => '函數',
'Aggregation' => '集合',
'Event has been dropped.' => '已丟棄事件。',
'Output' => '输出',
'open' => '打开',
'save' => '保存',
- 'Format' => '格式',
- 'SQL' => 'SQL',
- 'CSV' => 'CVS',
'Functions' => '函数',
'Aggregation' => '集合',
'Event has been dropped.' => '已丢弃事件。',
echo " (" . lang('%d row(s)', $found_rows) . ') <label><input type="checkbox" name="all" value="1">' . lang('whole result') . "</label>\n";
echo (information_schema($_GET["db"]) ? "" : "<fieldset><legend>" . lang('Edit') . "</legend><div><input type='submit' name='edit' value='" . lang('Edit') . "'> <input type='submit' name='clone' value='" . lang('Clone') . "'> <input type='submit' name='delete' value='" . lang('Delete') . "'$confirm></div></fieldset>\n");
- echo "<fieldset><legend>" . lang('Export') . "</legend><div>$dump_output $dump_format <input type='submit' name='export' value='" . lang('Export') . "'></div></fieldset>\n";
+ echo "<fieldset><legend>" . lang('Export') . "</legend><div>$dump_output <input type='submit' name='export' value='" . lang('Export') . "'></div></fieldset>\n";
}
echo "<fieldset><legend>" . lang('CSV Import') . "</legend><div><input type='hidden' name='token' value='$token'><input type='file' name='csv_file'> <input type='submit' name='import' value='" . lang('Import') . "'></div></fieldset>\n";
return $ext;
}
-$dump_output = "";
-$dump_format = "CSV";
+$dump_output = "CSV";