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.90 and 1.91

version 1.90, 2003/07/28 16:37:53 version 1.91, 2003/07/29 14:45:02
Line 19 
Line 19 
  * http://www.platon.sk/projects/phpMyEdit/   * http://www.platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.89 2003/07/25 20:53:18 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.90 2003/07/28 16:37:53 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 166  class phpMyEdit
Line 166  class phpMyEdit
                 || isset($this->fdd[$k]['URLprefix']) || isset($this->fdd[$k]['URLpostfix']); }                  || isset($this->fdd[$k]['URLprefix']) || isset($this->fdd[$k]['URLpostfix']); }
         function col_has_multiple_select($k)          function col_has_multiple_select($k)
         { return $this->fdd[$k]['select'] == 'M' && ! $this->fdd[$k]['values']['table']; }          { return $this->fdd[$k]['select'] == 'M' && ! $this->fdd[$k]['values']['table']; }
           function col_has_datemask($k)
           { return isset($this->fdd[$k]['datemask']) || isset($this->fdd[$k]['strftimemask']); }
   
         /*          /*
          * functions for indicating whether navigation style is enabled           * functions for indicating whether navigation style is enabled
Line 449  class phpMyEdit
Line 451  class phpMyEdit
                         if ($this->col_has_values($k)) {                          if ($this->col_has_values($k)) {
                                 $fields[] = $this->fqn($k, false, true, true).' AS qf'.$k.'_idx';                                  $fields[] = $this->fqn($k, false, true, true).' AS qf'.$k.'_idx';
                         }                          }
                         if (@$this->fdd[$k]['datemask']) {                          if ($this->col_has_datemask($k)) {
                                 $fields[] = 'UNIX_TIMESTAMP('.$this->fqn($k).') AS qf'.$k.'_timestamp';                                  $fields[] = 'UNIX_TIMESTAMP('.$this->fqn($k).') AS qf'.$k.'_timestamp';
                         }                          }
                 }                  }
Line 967  function phpMyEdit_form_control(theForm)
Line 969  function phpMyEdit_form_control(theForm)
                                 echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n";                                  echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n";
                                 echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">',$this->fdd[$k]['name'],'</td>',"\n";                                  echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">',$this->fdd[$k]['name'],'</td>',"\n";
                                 /* There are two possibilities of readonly fields handling:                                  /* There are two possibilities of readonly fields handling:
                                    1. Display plain text                                     1. Display plain text for readonly timestamps and dates.
                                    2. Display disabled input field                                     2. Display disabled input field
                                    In all cases particular readonly field will NOT be saved. */                                     In all cases particular readonly field will NOT be saved. */
                                 if (0 && $this->readonly($k)) {                                  if ($this->col_has_datemask($k) && $this->readonly($k)) {
                                         echo $this->display_delete_field($row, $k);                                          echo $this->display_delete_field($row, $k);
                                 } elseif ($this->password($k)) {                                  } elseif ($this->password($k)) {
                                         echo $this->display_password_field($row, $k);                                          echo $this->display_password_field($row, $k);

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91

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