made the "insert-new-row" feature sticky

This commit is contained in:
Loïc Chapeaux
2002-03-30 11:28:38 +00:00
parent f4d9e53303
commit a51d18fe84
2 changed files with 7 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2002-03-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/zip.lib.php3: optimized a bit.
* confic.inc.php3: reordered some directives.
* tbl_change.php3: made the "insert-new-row" feature sticky.
2002-03-29 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* sql.php3, lines 456-457: swap form fields position for consistency

View File

@@ -500,7 +500,11 @@ if (isset($primary_key)) {
<?php
echo ' ' . $strInsertAsNewRow . "\n";
}
echo "\n"
echo "\n";
// Defines whether "insert a new row after the current insert" should be
// checked or not (keep this choice sticky)
$checked = (!empty($message)) ? ' checked="checked"' : '';
?>
</td>
<td valign="middle">
@@ -509,7 +513,7 @@ echo "\n"
<td valign="middle" nowrap="nowrap">
<input type="radio" name="after_insert" value="back" checked="checked" tabindex="<?php echo $fields_cnt+4; ?>" /><?php echo $strAfterInsertBack; ?><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $strOr; ?><br />
<input type="radio" name="after_insert" value="new_insert" tabindex="<?php echo $fields_cnt+5; ?>" /><?php echo $strAfterInsertNewInsert . "\n"; ?>
<input type="radio" name="after_insert" value="new_insert"<?php echo $checked; ?> tabindex="<?php echo $fields_cnt+5; ?>" /><?php echo $strAfterInsertNewInsert . "\n"; ?>
</td>
</tr>