Move to new table after copying cookiefied.
This commit is contained in:
@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-04-02 Garvin Hicking <me@supergarv.de>
|
||||
* tbl_move_copy.php3, tbl_properties_operations.php3: Made 'move to
|
||||
newly created table' depend on a selected checkbox. State of that
|
||||
checkbox is saved in a cookie.
|
||||
* lang/*: Added $strSwitchToTable for the above.
|
||||
* lang/german-*: Translations
|
||||
|
||||
2003-04-02 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* tbl_move_copy.php3: Fixed copying/moving to work after some changes in
|
||||
generated SQL dump, move to newly created table also after copying.
|
||||
|
@@ -381,9 +381,21 @@ if (isset($new_name) && trim($new_name) != '') {
|
||||
$message = sprintf($message, $source, $target);
|
||||
$reload = 1;
|
||||
$js_to_run = 'functions.js';
|
||||
/* Work on new table */
|
||||
$db = $target_db;
|
||||
$table = $new_name;
|
||||
/* Check: Work on new table or on old table? */
|
||||
if (isset($submit_move)) {
|
||||
$db = $target_db;
|
||||
$table = $new_name;
|
||||
} else {
|
||||
$pma_uri_parts = parse_url($cfg['PmaAbsoluteUri']);
|
||||
if (isset($switch_to_new) && $switch_to_new == 'true') {
|
||||
setcookie('pma_switch_to_new', 'true', 0, substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')), '', ($pma_uri_parts['scheme'] == 'https'));
|
||||
$db = $target_db;
|
||||
$table = $new_name;
|
||||
} else {
|
||||
setcookie('pma_switch_to_new', '', 0, substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/')), '', ($pma_uri_parts['scheme'] == 'https'));
|
||||
// garvin:Keep original table for work.
|
||||
}
|
||||
}
|
||||
include('./header.inc.php3');
|
||||
} // end is target table name
|
||||
|
||||
|
@@ -175,7 +175,9 @@ for ($i = 0; $i < $num_dbs; $i++) {
|
||||
<input type="radio" name="what" value="dataonly" id="radio_copy_dataonly" />
|
||||
<label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label> <br />
|
||||
<input type="checkbox" name="drop_if_exists" value="true" id="checkbox_drop" />
|
||||
<label for="checkbox_drop"><?php echo $strStrucDrop; ?></label>
|
||||
<label for="checkbox_drop"><?php echo $strStrucDrop; ?></label> <br />
|
||||
<input type="checkbox" name="switch_to_new" value="true" id="checkbox_switch" <?php echo ((isset($pma_switch_to_new) && $pma_switch_to_new == 'true') ? 'checked="checked"' : ''); ?>/>
|
||||
<label for="checkbox_switch"><?php echo $strSwitchToTable; ?></label>
|
||||
</td>
|
||||
<td align="<?php echo $cell_align_right; ?>" valign="top">
|
||||
<input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" />
|
||||
|
Reference in New Issue
Block a user