Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for phpMyEdit/phpMyEdit.class.php between version 1.139 and 1.140

version 1.139, 2004/04/20 14:21:57 version 1.140, 2004/04/20 17:47:28
Line 19 
Line 19 
  * 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);

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top