fix cookies recall

This commit is contained in:
Michal Čihař
2003-04-02 13:19:46 +00:00
parent 98be3e057a
commit 4adff3a3c4
2 changed files with 9 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ $Source$
tbl_properties_structure.php3: Show multi submits result after headers
and tabs from originating place.
* lang/czech: Updated.
* tbl_properties_operations.php3: Not only remember, but also recall state
of checkbox for move to newly created table (see Garvin's entry above).
2003-04-01 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: clarify about wildcard database

View File

@@ -176,6 +176,13 @@ for ($i = 0; $i < $num_dbs; $i++) {
<label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label>&nbsp;&nbsp;<br />
<input type="checkbox" name="drop_if_exists" value="true" id="checkbox_drop" />
<label for="checkbox_drop"><?php echo $strStrucDrop; ?></label>&nbsp;&nbsp;<br />
<?php
if (isset($_COOKIE) && isset($_COOKIE['pma_switch_to_new']) && $_COOKIE['pma_switch_to_new'] == 'true') {
$pma_switch_to_new = 'true';
} elseif (isset($HTTP_COOKIE_VARS) && isset($HTTP_COOKIE_VARS['pma_switch_to_new']) && $HTTP_COOKIE_VARS['pma_switch_to_new'] == 'true') {
$pma_switch_to_new = 'true';
}
?>
<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>&nbsp;&nbsp;
</td>