| version 1.139, 2004/04/20 14:21:57 |
version 1.140, 2004/04/20 17:47:28 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.138 2004/04/20 13:30:04 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.139 2004/04/20 14:21:57 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
| Line 1697 function phpMyEdit_filter_handler(theFor |
|
| Line 1697 function phpMyEdit_filter_handler(theFor |
|
| */ |
*/ |
| function list_table() /* {{{ */ |
function list_table() /* {{{ */ |
| { |
{ |
| // Cancel Triggers |
|
| if (($this->add_canceled() || $this->copy_canceled()) && isset($this->triggers['insert']['cancel'])) { |
|
| include($this->triggers['insert']['cancel']); |
|
| } |
|
| if ($this->view_canceled() && isset($this->triggers['select']['cancel'])) { |
|
| include($this->triggers['select']['cancel']); |
|
| } |
|
| if ($this->change_canceled() && isset($this->triggers['update']['cancel'])) { |
|
| include($this->triggers['update']['cancel']); |
|
| } |
|
| if ($this->delete_canceled() && isset($this->triggers['delete']['cancel'])) { |
|
| include($this->triggers['delete']['cancel']); |
|
| } |
|
| if ($this->fm == '') { |
if ($this->fm == '') { |
| $this->fm = 0; |
$this->fm = 0; |
| } |
} |
| Line 2799 function phpMyEdit_filter_handler(theFor |
|
| Line 2786 function phpMyEdit_filter_handler(theFor |
|
| /* |
/* |
| * ====================================================================== |
* ====================================================================== |
| * Pass 3: process any updates generated if the user has selected |
* Pass 3: process any updates generated if the user has selected |
| * a save button during Pass 2 |
* a save or cancel button during Pass 2 |
| * ====================================================================== |
* ====================================================================== |
| */ |
*/ |
| |
// Cancel button - Cancel Triggers |
| |
if (($this->add_canceled() || $this->copy_canceled()) && isset($this->triggers['insert']['cancel'])) { |
| |
include($this->triggers['insert']['cancel']); |
| |
} |
| |
if ($this->view_canceled() && isset($this->triggers['select']['cancel'])) { |
| |
include($this->triggers['select']['cancel']); |
| |
} |
| |
if ($this->change_canceled() && isset($this->triggers['update']['cancel'])) { |
| |
include($this->triggers['update']['cancel']); |
| |
} |
| |
if ($this->delete_canceled() && isset($this->triggers['delete']['cancel'])) { |
| |
include($this->triggers['delete']['cancel']); |
| |
} |
| |
// Save/More Button - database operations |
| if ($this->saveadd == $this->labels['Save'] || $this->savecopy == $this->labels['Save']) { |
if ($this->saveadd == $this->labels['Save'] || $this->savecopy == $this->labels['Save']) { |
| $this->add_enabled() && $this->do_add_record(); |
$this->add_enabled() && $this->do_add_record(); |
| unset($this->saveadd); |
unset($this->saveadd); |