import the 'insert new row to edit page' feature put by Korakot in the stable CVS tree
This commit is contained in:
@@ -135,7 +135,8 @@ echo "</table>";
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" value="<?php echo $strSave; ?>">
|
<input type="submit" name="submit_type" value="<?php echo $strSave; ?>">
|
||||||
|
<input type="submit" name="submit_type" value="<?php echo $strInsertNewRow; ?>">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@@ -16,7 +16,7 @@ if($goto == "sql.php3")
|
|||||||
reset($fields);
|
reset($fields);
|
||||||
reset($funcs);
|
reset($funcs);
|
||||||
|
|
||||||
if(isset($primary_key)) {
|
if(isset($primary_key) && ($submit_type != $strInsertNewRow)) {
|
||||||
if(get_magic_quotes_gpc()) {
|
if(get_magic_quotes_gpc()) {
|
||||||
$primary_key = stripslashes($primary_key);
|
$primary_key = stripslashes($primary_key);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user