Netscape 4.8 bug if both radios are checked

This commit is contained in:
Marc Delisle
2003-08-13 09:25:25 +00:00
parent efdb539f19
commit 50fa1295af
2 changed files with 13 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-08-13 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3: do not check both radios (confuses Netscape 4.8)
2003-08-13 Michal Cihar <nijel@users.sourceforge.net>
* tbl_addfield.php3: Highlight correct tab after changing structure.

View File

@@ -735,16 +735,23 @@ echo "\n";
// Defines whether "insert a new row after the current insert" should be
// checked or not (keep this choice sticky)
$checked = !empty($disp_message) ? ' checked="checked"' : '';
// but do not check both radios, because Netscape 4.8 would display both checked
if (!empty($disp_message)) {
$checked_after_insert_new_insert = ' checked="checked"';
$checked_after_insert_back = '';
} else {
$checked_after_insert_back = ' checked="checked"';
$checked_after_insert_new_insert = '';
}
?>
</td>
<td valign="middle">
&nbsp;&nbsp;&nbsp;<b>-- <?php echo $strAnd; ?> --</b>&nbsp;&nbsp;&nbsp;
</td>
<td valign="middle" nowrap="nowrap">
<input type="radio" name="after_insert" value="back" id="radio_after_insert_back" checked="checked" tabindex="<?php echo ((3 * $fields_cnt) + 3); ?>" /><label for="radio_after_insert_back"><?php echo $strAfterInsertBack; ?></label><br />
<input type="radio" name="after_insert" value="back" id="radio_after_insert_back" <?php echo $checked_after_insert_back; ?> tabindex="<?php echo ((3 * $fields_cnt) + 3); ?>" /><label for="radio_after_insert_back"><?php echo $strAfterInsertBack; ?></label><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $strOr; ?><br />
<input type="radio" name="after_insert" value="new_insert" id="radio_after_insert_new_insert"<?php echo $checked; ?> tabindex="<?php echo ((3 * $fields_cnt) + 4); ?>" /><label for="radio_after_insert_new_insert"><?php echo $strAfterInsertNewInsert; ?></label>
<input type="radio" name="after_insert" value="new_insert" id="radio_after_insert_new_insert"<?php echo $checked_after_insert_new_insert; ?> tabindex="<?php echo ((3 * $fields_cnt) + 4); ?>" /><label for="radio_after_insert_new_insert"><?php echo $strAfterInsertNewInsert; ?></label>
</td>
</tr>