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.79 and 1.80

version 1.79, 2003/05/01 21:44:44 version 1.80, 2003/05/02 17:55:47
Line 19 
Line 19 
  * http://www.platon.sk/projects/phpMyEdit/   * http://www.platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.78 2003/04/28 22:18:36 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.79 2003/05/01 21:44:44 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 779  function phpMyEdit_form_control(theForm)
Line 779  function phpMyEdit_form_control(theForm)
                         $css_class_name = $this->getCSSclass('input', null, 'next', $css_postfix);                          $css_class_name = $this->getCSSclass('input', null, 'next', $css_postfix);
                         echo '<tr class="',$this->getCSSclass('row', null, true, $css_postfix),'">',"\n";                          echo '<tr class="',$this->getCSSclass('row', null, true, $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";
                         echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">',"\n";                          echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';
                           echo $this->getColAttributes($k),">\n";
                         if ($this->col_has_values($k)) {                          if ($this->col_has_values($k)) {
                                 $vals       = $this->set_values($k);                                  $vals       = $this->set_values($k);
                                 $selected   = @$this->fdd[$k]['default'];                                  $selected   = @$this->fdd[$k]['default'];
Line 882  function phpMyEdit_form_control(theForm)
Line 883  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";
                                 if ($this->password($k)) {                                  if ($this->password($k)) {
                                         echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">';                                          echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';
                                         echo $this->labels['hidden'],'</td>';                                          echo $this->getColAttributes($k),'>',$this->labels['hidden'],'</td>',"\n";
                                 } else {                                  } else {
                                         $this->display_delete_field($row, $k);                                          $this->display_delete_field($row, $k);
                                 }                                  }
Line 901  function phpMyEdit_form_control(theForm)
Line 902  function phpMyEdit_form_control(theForm)
         {          {
                 $css_postfix    = @$this->fdd[$k]['css']['postfix'];                  $css_postfix    = @$this->fdd[$k]['css']['postfix'];
                 $css_class_name = $this->getCSSclass('input', null, true, $css_postfix);                  $css_class_name = $this->getCSSclass('input', null, true, $css_postfix);
                 echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">',"\n";                  echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';
                   echo $this->getColAttributes($k),">\n";
                 if ($this->col_has_values($k)) {                  if ($this->col_has_values($k)) {
                         $vals       = $this->set_values($k);                          $vals       = $this->set_values($k);
                         $multiple   = $this->col_has_multiple_select($k);                          $multiple   = $this->col_has_multiple_select($k);
Line 942  function phpMyEdit_form_control(theForm)
Line 944  function phpMyEdit_form_control(theForm)
         function display_password_field($row, $k) /* {{{ */          function display_password_field($row, $k) /* {{{ */
         {          {
                 $css_postfix = @$this->fdd[$k]['css']['postfix'];                  $css_postfix = @$this->fdd[$k]['css']['postfix'];
                 echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">',"\n";                  echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';
                   echo $this->getColAttributes($k),">\n";
                 $size_ml_props = '';                  $size_ml_props = '';
                 $maxlen = intval($this->fdd[$k]['maxlen']);                  $maxlen = intval($this->fdd[$k]['maxlen']);
                 //$maxlen > 0 || $maxlen = 300;                  //$maxlen > 0 || $maxlen = 300;
Line 959  function phpMyEdit_form_control(theForm)
Line 962  function phpMyEdit_form_control(theForm)
         {          {
                 $css_postfix    = @$this->fdd[$k]['css']['postfix'];                  $css_postfix    = @$this->fdd[$k]['css']['postfix'];
                 $css_class_name = $this->getCSSclass('value', null, true, $css_postfix);                  $css_class_name = $this->getCSSclass('value', null, true, $css_postfix);
                 echo '<td class="',$css_class_name,'">';                  echo '<td class="',$css_class_name,'"',$this->getColAttributes($k),">\n";
                 echo $this->cellDisplay($k, $row, $css_class_name);                  echo $this->cellDisplay($k, $row, $css_class_name);
                 echo '</td>',"\n";                  echo '</td>',"\n";
         } /* }}} */          } /* }}} */
Line 1004  function phpMyEdit_form_control(theForm)
Line 1007  function phpMyEdit_form_control(theForm)
         } /* }}} */          } /* }}} */
   
         /**          /**
            * Returns field cell HTML attributes
            */
           function getColAttributes($k) /* {{{ */
           {
                   $colattrs = '';
                   if (isset($this->fdd[$k]['colattrs'])) {
                           $colattrs .= ' ';
                           $colattrs .= trim($this->fdd[$k]['colattrs']);
                   }
                   if (isset($this->fdd[$k]['nowrap'])) {
                           $colattrs .= ' nowrap';
                   }
                   if (isset($this->fdd[$k]['width'])) {
                           $colattrs .= ' width="'.$this->fdd[$fd]['width'].'"';
                   }
                   return $colattrs;
           } /* }}} */
   
           /**
          * Print URL           * Print URL
          */           */
         function urlDisplay($k, $value, $css, $key) /* {{{ */          function urlDisplay($k, $value, $css, $key) /* {{{ */
Line 1936  function phpMyEdit_form_control(theForm)
Line 1958  function phpMyEdit_form_control(theForm)
                                         echo '<td class="',$css_class_name,'">',$this->labels['hidden'],'</td>',"\n";                                          echo '<td class="',$css_class_name,'">',$this->labels['hidden'],'</td>',"\n";
                                         continue;                                          continue;
                                 }                                  }
                                 // display the contents                                  echo '<td class="',$css_class_name,'"',$this->getColAttributes($fd),'>';
                                 $colattrs = @$this->fdd[$fd]['colattrs'];  
                                 if ($colattrs != '')  
                                         $colattrs = ' '.$colattrs;  
                                 if (@$this->fdd[$fd]['nowrap'])  
                                         $colattrs .= ' nowrap';  
                                 if (isset($this->fdd[$fd]['width'])) {  
                                         $colattrs .= ' width="'.$this->fdd[$fd]['width'].'"';  
                                 }  
                                 echo '<td class="',$css_class_name,'"',$colattrs,'>';  
                                 echo $this->cellDisplay($k, $row, $css_class_name);                                  echo $this->cellDisplay($k, $row, $css_class_name);
                                 echo '</td>',"\n";                                  echo '</td>',"\n";
                         } /* }}} */                          } /* }}} */

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80

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