insert another new row: dropdown choice should be sticky

This commit is contained in:
Marc Delisle
2005-07-25 17:07:40 +00:00
parent f6f6df1037
commit e4e51a19e8
2 changed files with 11 additions and 9 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-07-25 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php: insert another new row: dropdown choice should be sticky
2005-07-24 Michal Čihař <michal@cihar.com> 2005-07-24 Michal Čihař <michal@cihar.com>
* libraries/check_user_privileges.lib.php: Undefined variable (bug * libraries/check_user_privileges.lib.php: Undefined variable (bug
#1243885). #1243885).

View File

@@ -864,15 +864,14 @@ if (isset($primary_key)) {
<?php <?php
echo "\n"; echo "\n";
// Defines whether "insert a new row after the current insert" should be // Defines whether "insert another new row" should be
// checked or not (keep this choice sticky) // selected or not (keep this choice sticky)
// but do not check both radios, because Netscape 4.8 would display both checked
if (!empty($disp_message)) { if (!empty($disp_message)) {
$checked_after_insert_new_insert = ' checked="checked"'; $selected_after_insert_new_insert = ' selected="selected"';
$checked_after_insert_back = ''; $selected_after_insert_back = '';
} else { } else {
$checked_after_insert_back = ' checked="checked"'; $selected_after_insert_back = ' selected="selected"';
$checked_after_insert_new_insert = ''; $selected_after_insert_new_insert = '';
} }
?> ?>
</td> </td>
@@ -881,8 +880,8 @@ if (!empty($disp_message)) {
</td> </td>
<td valign="middle" nowrap="nowrap"> <td valign="middle" nowrap="nowrap">
<select name="after_insert"> <select name="after_insert">
<option value="back" ><?php echo $strAfterInsertBack; ?></option> <option value="back" <?php echo $selected_after_insert_back; ?>><?php echo $strAfterInsertBack; ?></option>
<option value="new_insert"><?php echo $strAfterInsertNewInsert; ?></option> <option value="new_insert" <?php echo $selected_after_insert_new_insert; ?>><?php echo $strAfterInsertNewInsert; ?></option>
<?php <?php
if (isset($primary_key)) if (isset($primary_key))
{?> {?>