Feature request #463164 (Add ability to move -rename- across db's)

This commit is contained in:
Loïc Chapeaux 2001-09-24 19:50:38 +00:00
parent 63796a556e
commit 0c901205ec
30 changed files with 157 additions and 51 deletions

View File

@ -5,11 +5,17 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-09-23 Loïc Chapeaux <lolo@phpheaven.net>
* tbl_properties.php3; tbl_copy.php3 (removed); tbl_move_copy.php3 (added);
lang/*: feature request #463164 (Add ability to move -rename- across
db's).
* lang/italian.inc.php3 updates, thanks to Pietro Danesi.
2001-09-24 Marc Delisle <lem9@users.sourceforge.net>
* lang/polish.inc.php3 updates, thanks to Jakub Wilk.
* lang/romanian.inc.php3 updates, thanks to Valics Lehel.
* lang/galician.inc.php3 updates, thanks to Xosé Calvo.
2001-09-23 Benjamin Gandon <gandon@users.sourceforge.net>
* read_dump.php3: widely improved (some remaining bugs has been fixed and
the script is now about too time faster than before).

View File

@ -65,7 +65,6 @@ $strColumnEmpty = 'Os nomes das colunas est
$strColumnNames = 'Nome da Colunas';
$strCompleteInserts = 'Inserções Completas';
$strConfirm = 'Você tem certeza?';
$strCopyTable = 'Copia tabela para';
$strCopyTableOK = 'Tabela %s copiada para %s.';
$strCreate = 'Cria';
$strCreateNewDatabase = 'Cria novo banco de dados';
@ -308,10 +307,13 @@ $strWrongUser = 'Usu
$strYes = 'Sim';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strIdxFulltext = 'Fulltext'; //to translate
$strInvalidName = '"%s" is a reserved word, you can\'t use it as a database/table/field name.'; //to translate
$strKeepPass = 'Do not change the password';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strRunningAs = 'as';
$strSetEnumVal = 'If field type is "enum" or "set", please enter the values using this format: \'a\',\'b\',\'c\'...<br />If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, backslashes it (for example \'\\\\xyz\' or \'a\\\'b\').'; //to translate

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = 'Íàçâàíèå íà êîëîíà';
$strCompleteInserts = 'Complete inserts'; //to translate
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = 'Êîïèðàé òàáëèöàòà â';
$strCopyTableOK = 'Òàáëèöà %s áåøå êîïèðàíà â %s.';
$strCreate = 'Ñúçäàé';
$strCreateNewDatabase = 'Ñúçäàé íîâà ÁÄ';
@ -327,4 +326,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -62,7 +62,6 @@ $strColumnEmpty = 'Els noms de les columnes s&oacute;n buits!';
$strColumnNames = 'Nom de les col&middot;lumnes';
$strCompleteInserts = 'Completar insercions';
$strConfirm = 'Ho vols fer realment ?';
$strCopyTable = 'Copiar la taula a';
$strCopyTableOK = 'La taula %s ha estat copiada a %s.';
$strCreate = 'Crear';
$strCreateNewDatabase = 'Crea una nova base de dades';
@ -323,4 +322,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -63,7 +63,6 @@ $strColumnEmpty = '
$strColumnNames = '欄位名稱';
$strCompleteInserts = 'Complete inserts';
$strConfirm = '您確定要這樣做?';
$strCopyTable = '複製資料表為';
$strCopyTableOK = '已經將資料表 %s 複製為 %s.';
$strCreate = '建立';
$strCreateNewDatabase = '建立新資料庫';
@ -323,4 +322,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = '字段名';
$strCompleteInserts = 'Complete inserts'; //to translate
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = '复制数据表为';
$strCopyTableOK = '数据表 %s 已经成功复制为 %s。';
$strCreate = '建立';
$strCreateNewDatabase = '建立一个新的数据库';
@ -327,4 +326,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -300,6 +300,7 @@ $strZip = '"zazipov
// To translate
$strAPrimaryKey = 'A primary key has been added on %s';//to translate
$strAnIndex = 'An index has been added on %s';//to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strDeleteUserMessage = 'You have deleted the user %s.';//to translate
$strFieldHasBeenDropped = 'Field %s has been dropped';//to translate
@ -310,6 +311,8 @@ $strIdxFulltext = 'Fulltext'; //to translate
$strIndexHasBeenDropped = 'Index %s has been dropped';//to translate
$strKeepPass = 'Do not change the password';//to translate
$strLinesTerminatedBy = 'Lines terminated by';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';//to translate
$strRunningAs = 'as';

View File

@ -63,7 +63,6 @@ $strColumnEmpty = 'Jm
$strColumnNames = 'Názvy sloupcù';
$strCompleteInserts = 'Uplné inserty';
$strConfirm = 'Opravdu chcete toto provést?';
$strCopyTable = 'Zkopírovat tabulku do';
$strCopyTableOK = 'Tabulka %s byla zkopírována do %s.';
$strCreate = 'Vytvoøit';
$strCreateNewDatabase = 'Vytvoøit novou databázi';
@ -300,6 +299,7 @@ $strZip = '"zazipov
// To translate
$strAPrimaryKey = 'A primary key has been added on %s';//to translate
$strAnIndex = 'An index has been added on %s';//to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strDeleteUserMessage = 'You have deleted the user %s.';//to translate
$strFieldHasBeenDropped = 'Field %s has been dropped';//to translate
@ -310,6 +310,8 @@ $strIdxFulltext = 'Fulltext'; //to translate
$strIndexHasBeenDropped = 'Index %s has been dropped';//to translate
$strKeepPass = 'Do not change the password';//to translate
$strLinesTerminatedBy = 'Lines terminated by';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';//to translate
$strRunningAs = 'as';

View File

@ -62,7 +62,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = 'Kolonne navne';
$strCompleteInserts = 'Lav komplette inserts';
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = 'Kopier tabel til';
$strCopyTableOK = 'Tabellen %s er nu kopieret til: %s.';
$strCreate = 'Opret';
$strCreateNewDatabase = 'Opret ny database';
@ -322,4 +321,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -61,7 +61,6 @@ $strColumnEmpty = 'De kolommen zijn leeg!';
$strColumnNames = 'Kolom namen';
$strCompleteInserts = 'Complete inserts'; //to translate
$strConfirm = 'Weet u zeker dat u dit wilt?';
$strCopyTable = 'Kopieer tabel naar';
$strCopyTableOK = 'Tabel %s is gekopieerd naar %s.';
$strCreate = 'Aanmaken';
$strCreateNewDatabase = 'Nieuwe database aanmaken';
@ -322,4 +321,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -65,7 +65,7 @@ $strColumnEmpty = 'The columns names are empty!';
$strColumnNames = 'Column names';
$strCompleteInserts = 'Complete inserts';
$strConfirm = 'Do you really want to do it?';
$strCopyTable = 'Copy table to';
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strCopyTableOK = 'Table %s has been copied to %s.';
$strCreate = 'Create';
$strCreateNewDatabase = 'Create new database';
@ -167,6 +167,8 @@ $strLogout = 'Log out';
$strModifications = 'Modifications have been saved';
$strModify = 'Modify';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strMySQLReloaded = 'MySQL reloaded.';
$strMySQLSaid = 'MySQL said: ';
$strMySQLShowProcess = 'Show processes';

View File

@ -69,7 +69,6 @@ $strColumnEmpty = 'Sarakkeiden nimet puuttuvat!';
$strColumnNames = 'Saraikkeiden nimet';
$strCompleteInserts = 'Täydelliset insert-lauseet';
$strConfirm = 'Oletko varma, että haluat tehdä tämän?';
$strCopyTable = 'Kopioi taulu nimellä';
$strCopyTableOK = 'Taulu %s on kopioitu nimelle %s.';
$strCreate = 'Luo';
$strCreateNewDatabase = 'Luo uusi tietokanta';
@ -320,6 +319,9 @@ $strYes = 'Kyll
$strZip = '"zip-pakattu"';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strOverhead = 'Overhead'; //to translate
$strRunningAs = 'as';

View File

@ -65,7 +65,7 @@ $strColumnEmpty = 'Les noms de colonnes sont vides';
$strColumnNames = 'Nom des colonnes';
$strCompleteInserts = 'Insertions complètes';
$strConfirm = 'Veuillez confirmer';
$strCopyTable = '<b>Copier</b> la table vers';
$strCopyTable = '<b>Copier</b> la table vers (base<b>.</b>table)&nbsp;:';
$strCopyTableOK = 'La table %s a été copiée vers %s.';
$strCreate = 'Créer';
$strCreateNewDatabase = 'Créer une base de données';
@ -167,6 +167,8 @@ $strLogout = 'Quitter';
$strModifications = 'Les modifications ont été sauvegardées.';
$strModify = 'Modifier';
$strMoveTable = '<b>Déplacer</b> la table vers (base<b>.</b>table)&nbsp;:';
$strMoveTableOK = 'La table %s a été déplacée vers %s.';
$strMySQLReloaded = 'MySQL rechargé.';
$strMySQLSaid = 'MySQL a répondu:';
$strMySQLShowProcess = 'Afficher les processus';
@ -321,4 +323,5 @@ $strWrongUser = 'Erreur d\'utilisateur/mot de passe. Acc
$strYes = 'Oui';
$strZip = '"zippé"';
?>

View File

@ -65,7 +65,6 @@ $strColumnEmpty = 'Os nomes das columnas est
$strColumnNames = 'Nomes das Columnas';
$strCompleteInserts = 'Insercións completas';
$strConfirm = 'Está seguro/a?';
$strCopyTable = 'Copiar a tabela para';
$strCopyTableOK = 'Tabela \$table copiada para \$new_name.';
$strCreate = 'Crear';
$strCreateNewDatabase = 'Crear un novo banco de datos';
@ -320,6 +319,9 @@ $strYes = 'Si';
$strZip = 'comprimido no formato "zipped"';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strShowAll = 'Show all'; // to translate
$strWithChecked = 'With checked:';

View File

@ -63,7 +63,6 @@ $strColumnEmpty = 'Die Spalten-Titel sind leer!';
$strColumnNames = 'Spaltennamen';
$strCompleteInserts = 'Vollständige \'INSERT\'s';
$strConfirm = 'Bist du dir wirklich sicher?';
$strCopyTable = 'Tabelle kopieren nach';
$strCopyTableOK = 'Tabelle %s wurde kopiert nach %s.';
$strCreate = 'Erzeugen';
$strCreateNewDatabase = 'Neue Datenbank erzeugen';
@ -304,6 +303,7 @@ $strZip = '"Zip komprimiert"';
// To translate
$strAPrimaryKey = 'A primary key has been added on %s';//to translate
$strAnIndex = 'An index has been added on %s';//to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strFieldHasBeenDropped = 'Field %s has been dropped';//to translate
$strFieldsEnclosedBy = 'Fields enclosed by';//to translate
@ -312,6 +312,8 @@ $strFieldsTerminatedBy = 'Fields terminated by';//to translate
$strIndexHasBeenDropped = 'Index %s has been dropped';//to translate
$strKeepPass = 'Do not change the password';//to translate
$strLinesTerminatedBy = 'Lines terminated by';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';//to translate
$strRunningAs = 'as';

View File

@ -63,7 +63,6 @@ $strColumnEmpty = '
$strColumnNames = 'Ïíüìáôá óôçëþí';
$strCompleteInserts = 'ÏëïêëçñùìÝíåò åéóáãùãÝò';
$strConfirm = 'ÐñáãìáôéêÜ èÝëåôå íá ôï åêåëÝóåôå;';
$strCopyTable = 'Αντριγραφή πίνακα στο';
$strCopyTableOK = 'Ï Ðßíáêáò %s áíôéãñÜöçêå óôï %s.';
$strCreate = 'Äçìéïõñãßá';
$strCreateNewDatabase = 'Äçìéïõñãßá íÝáò âÜóçò';
@ -301,6 +300,7 @@ $strZip = '
// To translate
$strAPrimaryKey = 'A primary key has been added on %s';//to translate
$strAnIndex = 'An index has been added on %s';//to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strDeleteUserMessage = 'You have deleted the user %s.';//to translate
$strFieldHasBeenDropped = 'Field %s has been dropped';//to translate
@ -310,6 +310,8 @@ $strFieldsTerminatedBy = 'Fields terminated by';//to translate
$strIndexHasBeenDropped = 'Index %s has been dropped';//to translate
$strKeepPass = 'Do not change the password';//to translate
$strLinesTerminatedBy = 'Lines terminated by';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';//to translate
$strRunningAs = 'as';

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = '列(コラム)名';
$strCompleteInserts = '完全なINSERT文の作成';
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = 'テーブルを次へコピーします。-->';
$strCopyTableOK = '%sテーブルを%sにコピーしました。';
$strCreate = '作成';
$strCreateNewDatabase = '新しいDBを作成します。';
@ -326,4 +325,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = '칼럼(列) 이름';
$strCompleteInserts = '완전한 INSERT문 작성';
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = '테이블을 다음에 복사합니다. -->';
$strCopyTableOK = '%s 테이블이 %s 으로 복사되었습니다.';
$strCreate = ' 만들기 ';
$strCreateNewDatabase = '새로운 데이터 베이스를 만듭니다';
@ -326,4 +325,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -64,7 +64,6 @@ $strColumnEmpty = 'Kolonnenavnene er tomme!';
$strColumnNames = 'Kolonnenavn';
$strCompleteInserts = 'Komplette innlegg';
$strConfirm = 'Ønsker du virkelig å gjøre det?';
$strCopyTable = 'Kopier tabell til';
$strCopyTableOK = 'Tabellen %s er kopiert til %s.';
$strCreate = 'Opprett';
$strCreateNewDatabase = 'Opprett ny database';
@ -305,10 +304,13 @@ $strYes = 'Ja';
// To translate
$strCarriage = 'Carriage return: \\r'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strDeleteUserMessage = 'You have deleted the user %s.';//to translate
$strGrants = 'Grants'; //to translate
$strKeepPass = 'Do not change the password';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strPartialText = 'Partial Texts'; //to translate
$strRunningAs = 'as';

View File

@ -65,7 +65,6 @@ $strColumnEmpty = 'Brak nazw kolumn!';
$strColumnNames = 'Nazwy kolumn';
$strCompleteInserts = 'Pełne dodania';
$strConfirm = 'Czy na pewno to zrobic?';
$strCopyTable = 'Kopiowanie tabeli do';
$strCopyTableOK = 'Tabela %s została przekopiowana do %s.';
$strCreate = 'Utworzenie';
$strCreateNewDatabase = 'Utworzenie nowej bazy danych';
@ -321,5 +320,8 @@ $strYes = 'Tak';
$strZip = '".zip"';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
?>

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = 'Nome da Colunas';
$strCompleteInserts = 'Complete inserts'; //to translate
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = 'Copia tabela para';
$strCopyTableOK = 'Tabela %s copiada para %s.';
$strCreate = 'Cria';
$strCreateNewDatabase = 'Cria novo banco de dados';
@ -326,4 +325,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -65,7 +65,6 @@ $strColumnEmpty = 'Numele coloanelor sunt goale!';
$strColumnNames = 'Numele coloanelor';
$strCompleteInserts = 'Rezolva inserarea';
$strConfirm = 'Sunteti sigur ca doriti sa continuati?';
$strCopyTable = 'Copiaza tabel la:';
$strCopyTableOK = 'Tabelul %s a fost copiat la %s.';
$strCreate = 'Creaza';
$strCreateNewDatabase = 'Creaza baza de date noua';
@ -320,6 +319,9 @@ $strWithChecked = 'Verificat cu:';
$strYes = 'Da';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strZip = '"zipped"'; //to translate
?>

View File

@ -61,7 +61,6 @@ $strColumnEmpty = '
$strColumnNames = 'îÁÚ×ÁÎÉÑ ËÏÌÏÎÏË';
$strCompleteInserts = 'ðÏÌÎÁÑ ×ÓÔÁ×ËÁ';
$strConfirm = '÷Ù ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÈÏÔÉÔÅ ÓÄÅÌÁÔØ ÜÔÏ?';
$strCopyTable = 'Скопировать таблицу в';
$strCopyTableOK = 'ôÁÂÌÉÃÁ %s ÂÙÌÁ ÓËÏÐÉÒÏ×ÁÎÁ × %s.';
$strCreate = 'óÏÚÄÁÔØ';
$strCreateNewDatabase = 'óÏÚÄÁÔØ ÎÏ×ÕÀ âä';
@ -322,4 +321,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -61,7 +61,6 @@ $strColumnEmpty = '
$strColumnNames = 'Íàçâàíèÿ êîëîíîê';
$strCompleteInserts = 'Ïîëíàÿ âñòàâêà';
$strConfirm = 'Âû äåéñòâèòåëüíî õîòèòå ñäåëàòü ýòî?';
$strCopyTable = 'Скопировать таблицу в';
$strCopyTableOK = 'Òàáëèöà %s áûëà ñêîïèðîâàíà â %s.';
$strCreate = 'Ñîçäàòü';
$strCreateNewDatabase = 'Ñîçäàòü íîâóþ ÁÄ';
@ -322,4 +321,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -66,6 +66,7 @@ $strColumnEmpty = 'N
$strColumnNames = 'Názvy ståpcov';
$strCompleteInserts = 'Úplné vlo¾enie';
$strConfirm = 'Skutoène si ¾eláte toto vykona»?';
$strCopyTable = 'Skopírovať tabuľku do (databáza<b>.</b>tabuľka):';
$strCopyTable = 'Skopírova» tabuµku do';
$strCopyTableOK = 'Tabuµka %s bola skorírovaná do %s.';
$strCreate = 'Vytvori»';
@ -318,6 +319,8 @@ $strYes = '
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strDeleteUserMessage = 'You have deleted the user %s.';//to translate
$strKeepPass = 'Do not change the password';//to translate
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
$strNoQuery = 'No SQL query!'; //to translate
$strUpdatePrivMessage = 'You have updated the privileges for %s.';//to translate
$strUpdateProfile = 'Update profile:';//to translate

View File

@ -62,7 +62,6 @@ $strColumnEmpty = 'Los nombres de columna estan vacios!';
$strColumnNames = 'Nombre de columnas';
$strCompleteInserts = 'Completar los Inserts';
$strConfirm = 'Realmente quieres hacerlo?';
$strCopyTable = 'Copiar la tabla a';
$strCopyTableOK = 'La tabla %s ha sido copiada a %s.';
$strCreate = 'Crear';
$strCreateNewDatabase = 'Crear nueva base de datos';
@ -322,4 +321,7 @@ $strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strZip = '"zipped"'; //to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -65,7 +65,6 @@ $strColumnEmpty = 'Kolumn-namnen
$strColumnNames = 'Kolumn-namn';
$strCompleteInserts = 'Kompletta infogningar';
$strConfirm = 'Vill du verkligen göra det?';
$strCopyTable = 'Kopiera tabellen till';
$strCopyTableOK = 'Tabellen %s har kopierats till %s.';
$strCreate = 'Skapa';
$strCreateNewDatabase = 'Skapa ny databas';
@ -323,4 +322,7 @@ $strYes = 'Ja';
$strZip = '"zippad"';
// To translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

View File

@ -59,7 +59,6 @@ $strColumnEmpty = 'The columns names are empty!'; //to translate
$strColumnNames = 'ª×èͤÍÅÑÁ¹ì';
$strCompleteInserts = 'Complete inserts';
$strConfirm = 'Do you really want to do it?'; //to translate
$strCopyTable = 'ÊíÒà¹ÒµÒÃÒ§à»ç¹';
$strCopyTableOK = 'µÒÃÒ§ %s ä´é·íÒ¡ÒÃÊíÒà¹Òä»à»ç¹ %s àÃÕºÃéÍÂáÅéÇ.';
$strCreate = 'ÊÃéÒ§';
$strCreateNewDatabase = 'ÊÃéÒ§°Ò¹¢éÍÁÙÅãËÁè';
@ -327,4 +326,7 @@ $strUpdateProfile = 'Update profile:';//to translate
$strUpdateProfileMessage = 'The profile has been updated.';//to translate
$strDatabaseHasBeenDropped = 'Database %s has been dropped.'; //to translate
$strNoQuery = 'No SQL query!'; //to translate
$strCopyTable = 'Copy table to (database<b>.</b>table):';
$strMoveTable = 'Move table to (database<b>.</b>table):';
$strMoveTableOK = 'Table %s has been moved to %s.';
?>

41
tbl_copy.php3 → tbl_move_copy.php3 Executable file → Normal file
View File

@ -28,8 +28,7 @@ function my_handler($sql_insert = '')
* Gets some core libraries
*/
require('./libraries/grab_globals.lib.php3');
$js_to_run = 'functions.js';
require('./header.inc.php3');
require('./libraries/common.lib.php3');
/**
@ -64,8 +63,8 @@ if (isset($new_name) && trim($new_name) != '') {
$new_name = stripslashes($new_name);
}
if (MYSQL_INT_VERSION < 32306) {
check_reserved_words($db, $err_url);
check_reserved_words($table, $err_url);
check_reserved_words($target_db, $err_url);
check_reserved_words($new_name, $err_url);
}
$source = backquote($db) . '.' . backquote($table);
@ -75,8 +74,11 @@ if (isset($new_name) && trim($new_name) != '') {
$sql_structure = get_table_def($db, $table, "\n", $err_url);
$sql_structure = eregi_replace('^CREATE TABLE (`?)' . $table . '(`?)', 'CREATE TABLE ' . $target, $sql_structure);
$result = mysql_query($sql_structure) or mysql_die('', $sql_structure, '', $err_url);
if (isset($sql_query)) {
$result = @mysql_query($sql_structure);
if (mysql_error()) {
include('./header.inc.php3');
mysql_die('', $sql_structure, '', $err_url);
} else if (isset($sql_query)) {
$sql_query .= "\n" . $sql_structure . ';';
} else {
$sql_query = $sql_structure . ';';
@ -87,7 +89,11 @@ if (isset($new_name) && trim($new_name) != '') {
// speedup copy table - staybyte - 22. Juni 2001
if (MYSQL_INT_VERSION >= 32300) {
$sql_insert_data = 'INSERT INTO ' . $target . ' SELECT * FROM ' . backquote($table);
$result = mysql_query($sql_insert_data) or mysql_die('', $sql_insert_data, '', $err_url);
$result = @mysql_query($sql_insert_data);
if (mysql_error()) {
include('./header.inc.php3');
mysql_die('', $sql_insert_data, '', $err_url);
}
} // end MySQL >= 3.23
else {
$sql_insert_data = '';
@ -96,8 +102,24 @@ if (isset($new_name) && trim($new_name) != '') {
$sql_query .= "\n\n" . $sql_insert_data;
}
$message = sprintf($strCopyTableOK, $source, $target);
$reload = 1;
// Drops old table if the user has requested to move it
if (isset($submit_move)) {
$sql_drop_table = 'DROP TABLE ' . $source;
$result = @mysql_query($sql_drop_table);
if (mysql_error()) {
include('./header.inc.php3');
mysql_die('', $sql_drop_table, '', $err_url);
}
$sql_query .= "\n\n" . $sql_drop_table . ';';
$db = $target_db;
$table = $new_name;
}
$message = (isset($submit_move) ? $strMoveTableOK : $strCopyTableOK);
$message = sprintf($message, $source, $target);
$reload = 1;
$js_to_run = 'functions.js';
include('./header.inc.php3');
} // end is target table name
@ -105,6 +127,7 @@ if (isset($new_name) && trim($new_name) != '') {
* No new name for the table!
*/
else {
include('./header.inc.php3');
mysql_die($strTableEmpty, '', '', $err_url);
}

View File

@ -521,7 +521,7 @@ if ($index_count > 0) {
echo "\n";
?>
<td>
<a href="sql.php3?<?php echo "$url_query&sql_query=$sql_query&zero_rows=$zero_rows\n"; ?>"
<a href="sql.php3?<?php echo $url_query . '&sql_query=' . $sql_query . '&zero_rows=' . $zero_rows; ?>"
onclick="return confirmLink(this, '<?php echo $js_msg; ?>')">
<?php echo $strDrop; ?></a>
</td>
@ -952,12 +952,9 @@ echo "\n";
</form>
</li>
<!-- Change table name and copy table -->
<li style="vertical-align: top">
<!-- Change table name -->
<li>
<div style="margin-bottom: 10px">
<table border="0" cellspacing="0" cellpadding="0" style="vertical-align: top">
<tr>
<td valign="top">
<form method="post" action="tbl_rename.php3"
onsubmit="return emptyFormElements(this, 'new_name')">
<input type="hidden" name="server" value="<?php echo $server; ?>" />
@ -965,20 +962,43 @@ echo "\n";
<input type="hidden" name="db" value="<?php echo $db; ?>" />
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<input type="hidden" name="reload" value="1" />
<?php echo $strRenameTable; ?>&nbsp;:
<input type="text" size="20" name="new_name" />&nbsp;
<input type="submit" value="<?php echo $strGo; ?>" />
</form>
</div>
</li>
<!-- Move and copy table -->
<li style="vertical-align: top">
<div style="margin-bottom: 10px">
<table border="0" cellspacing="0" cellpadding="0" style="vertical-align: top">
<tr>
<td valign="top">
<form method="post" action="tbl_move_copy.php3"
onsubmit="return emptyFormElements(this, 'new_name')">
<input type="hidden" name="server" value="<?php echo $server; ?>" />
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
<input type="hidden" name="db" value="<?php echo $db; ?>" />
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<input type="hidden" name="reload" value="1" />
<input type="hidden" name="what" value="data" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php echo $strRenameTable; ?>&nbsp;:
<td nowrap="nowrap">
<?php echo $strMoveTable . "\n"; ?>
</td>
</tr>
<tr>
<td>
<input type="text" style="width: 100%" name="new_name" />
<input type="text" size="10" name="target_db" />
&nbsp;<b>.</b>&nbsp;
<input type="text" size="20" name="new_name" value="<?php echo $table; ?>" />
</td>
</tr>
<tr>
<td align="right" valign="bottom">
<input type="submit" value="<?php echo $strGo; ?>" />
<td align="right" valign="top">
<input type="submit" name="submit_move" value="<?php echo $strGo; ?>" />
</td>
</tr>
</table>
@ -986,7 +1006,7 @@ echo "\n";
</td>
<td width="25">&nbsp;</td>
<td valign="top">
<form method="post" action="tbl_copy.php3"
<form method="post" action="tbl_move_copy.php3"
onsubmit="return emptyFormElements(this, 'new_name')">
<input type="hidden" name="server" value="<?php echo $server; ?>" />
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
@ -995,15 +1015,15 @@ echo "\n";
<input type="hidden" name="reload" value="1" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<?php echo $strCopyTable . ' (' . trim($strDatabase) . '<b>.</b>' . trim($strTable) . ')'; ?>&nbsp;:
<td colspan="2" nowrap="nowrap">
<?php echo $strCopyTable . "\n"; ?>
</td>
</tr>
<tr>
<td colspan="2">
<input type="text" size="10" name="target_db" value="<?php echo $db; ?>" />
&nbsp;<b>.</b>&nbsp;
<input type="text" size="25" name="new_name" />
<input type="text" size="20" name="new_name" />
</td>
</tr>
<tr>
@ -1014,7 +1034,7 @@ echo "\n";
<?php echo $strStrucData; ?>&nbsp;&nbsp;
</td>
<td align="right" valign="top">
<input type="submit" value="<?php echo $strGo; ?>" />
<input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" />
</td>
</tr>
</table>