Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.111 and 1.112

version 1.111, 2004/01/03 02:27:31 version 1.112, 2004/01/03 02:51:07
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.110 2004/01/02 18:53:45 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.111 2004/01/03 02:27:31 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 835  function phpMyEdit_form_control(theForm)
Line 835  function phpMyEdit_form_control(theForm)
                         }                          }
                 }                  }
   
                   if ($this->filter_operation()) {
                                   echo '<script type="text/javascript"><!--',"\n";
                                   echo '
   function phpMyEdit_filter_handler(theForm, theEvent)
   {
           var pressed_key = null;
           if (theEvent.which) {
                   pressed_key = theEvent.which;
           } else {
                   pressed_key = theEvent.keyCode;
           }
           if (pressed_key == 13) { // enter pressed
                   theForm.submit();
                   return false;
           }
           return true;
   }',"\n\n";
                                   echo '// --></script>', "\n";
                   }
   
                 if ($this->display['form']) {                  if ($this->display['form']) {
                         echo '<form class="',$this->getCSSclass('form'),'" method="POST"';                          echo '<form class="',$this->getCSSclass('form'),'" method="POST"';
                         echo ' action="',$page_name,'" name="phpMyEdit_form">',"\n";                          echo ' action="',$page_name,'" name="phpMyEdit_form">',"\n";
Line 1945  function phpMyEdit_form_control(theForm)
Line 1965  function phpMyEdit_form_control(theForm)
                                                         echo $this->htmlSelect($l.'_comp', $css_class_name, $this->comp_ops, $mc);                                                          echo $this->htmlSelect($l.'_comp', $css_class_name, $this->comp_ops, $mc);
                                                 }                                                  }
                                                 echo '<input class="',$css_class_name,'" value="';                                                  echo '<input class="',$css_class_name,'" value="';
                                                 echo htmlspecialchars(@$m),'" type="text" name="qf',$k,'"',$size_ml_props,'>';                                                  echo htmlspecialchars(@$m),'" type="text" name="qf',$k,'"',$size_ml_props;
                                                   echo ' onKeyPress="phpMyEdit_filter_handler(this.form, event);">';
                                         } else {                                          } else {
                                                 echo '&nbsp;';                                                  echo '&nbsp;';
                                         }                                          }

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

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