bug 1429074, go back to this page choice not sticky
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
||||
|
||||
2006-02-12 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/english and hebrew: bug #1429769, typo
|
||||
* tbl_change.php, tbl_replace.php: bug #1429074, "go back to this page"
|
||||
choice should be sticky
|
||||
|
||||
2006-02-10 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* .htaccess added to main directory for bug #1411996; at least on
|
||||
|
@@ -924,14 +924,8 @@ if (isset($primary_key)) {
|
||||
<?php
|
||||
echo "\n";
|
||||
|
||||
// Defines whether "insert another new row" should be
|
||||
// selected or not (keep this choice sticky)
|
||||
if (!empty($disp_message)) {
|
||||
$selected_after_insert_new_insert = ' selected="selected"';
|
||||
$selected_after_insert_back = '';
|
||||
} else {
|
||||
$selected_after_insert_back = ' selected="selected"';
|
||||
$selected_after_insert_new_insert = '';
|
||||
if (!isset($after_insert)) {
|
||||
$after_insert = 'back';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@@ -940,12 +934,12 @@ if (!empty($disp_message)) {
|
||||
</td>
|
||||
<td valign="middle" nowrap="nowrap">
|
||||
<select name="after_insert">
|
||||
<option value="back" <?php echo $selected_after_insert_back; ?>><?php echo $strAfterInsertBack; ?></option>
|
||||
<option value="new_insert" <?php echo $selected_after_insert_new_insert; ?>><?php echo $strAfterInsertNewInsert; ?></option>
|
||||
<option value="back" <?php echo ($after_insert == 'back' ? 'selected="selected"' : ''); ?>><?php echo $strAfterInsertBack; ?></option>
|
||||
<option value="new_insert" <?php echo ($after_insert == 'new_insert' ? 'selected="selected"' : ''); ?>><?php echo $strAfterInsertNewInsert; ?></option>
|
||||
<?php
|
||||
if (isset($primary_key)) {
|
||||
?>
|
||||
<option value="same_insert"><?php echo $strAfterInsertSame; ?></option>
|
||||
<option value="same_insert" <?php echo ($after_insert == 'same_insert' ? 'selected="selected"' : ''); ?>><?php echo $strAfterInsertSame; ?></option>
|
||||
<?php
|
||||
// If we have just numeric primary key, we can also edit next
|
||||
if (preg_match('@^[\s]*`[^`]*` = [0-9]+@', $primary_key)) {
|
||||
|
@@ -35,6 +35,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
|
||||
. '&disp_direction=' . $disp_direction
|
||||
. '&repeat_cells=' . $repeat_cells
|
||||
. '&dontlimitchars=' . $dontlimitchars
|
||||
. '&after_insert=' . $after_insert
|
||||
. (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query));
|
||||
} elseif (isset($after_insert) && $after_insert == 'same_insert') {
|
||||
$goto = 'tbl_change.php?'
|
||||
@@ -45,6 +46,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
|
||||
. '&disp_direction=' . $disp_direction
|
||||
. '&repeat_cells=' . $repeat_cells
|
||||
. '&dontlimitchars=' . $dontlimitchars
|
||||
. '&after_insert=' . $after_insert
|
||||
. (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query));
|
||||
if (isset($primary_key)) {
|
||||
foreach ($primary_key AS $pk) {
|
||||
@@ -60,6 +62,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
|
||||
. '&disp_direction=' . $disp_direction
|
||||
. '&repeat_cells=' . $repeat_cells
|
||||
. '&dontlimitchars=' . $dontlimitchars
|
||||
. '&after_insert=' . $after_insert
|
||||
. (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query));
|
||||
if (isset($primary_key)) {
|
||||
foreach ($primary_key AS $pk) {
|
||||
|
Reference in New Issue
Block a user