Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.185 and 1.186

version 1.185, 2006/09/08 13:54:58 version 1.186, 2006/09/08 14:25:48
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.184 2006-09-04 18:25:29 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.185 2006-09-08 13:54:58 michal 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 956  function '.$this->js['prefix'].'filter_h
Line 956  function '.$this->js['prefix'].'filter_h
                         }                          }
                         $css_postfix    = @$this->fdd[$k]['css']['postfix'];                          $css_postfix    = @$this->fdd[$k]['css']['postfix'];
                         $css_class_name = $this->getCSSclass('input', null, 'next', $css_postfix);                          $css_class_name = $this->getCSSclass('input', null, 'next', $css_postfix);
                           $escape                 = isset($this->fdd[$k]['escape']) ? $this->fdd[$k]['escape'] : true;
                         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),'">';                          echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">';
                         echo $this->fdd[$k]['name'],'</td>',"\n";                          echo $this->fdd[$k]['name'],'</td>',"\n";
Line 967  function '.$this->js['prefix'].'filter_h
Line 968  function '.$this->js['prefix'].'filter_h
                                 $multiple   = $this->col_has_multiple($k);                                  $multiple   = $this->col_has_multiple($k);
                                 $readonly   = $this->readonly($k);                                  $readonly   = $this->readonly($k);
                                 $strip_tags = true;                                  $strip_tags = true;
                                 $escape     = true;                                  //$escape     = true;
                                 if ($this->col_has_checkboxes($k) || $this->col_has_radio_buttons($k)) {                                  if ($this->col_has_checkboxes($k) || $this->col_has_radio_buttons($k)) {
                                         echo $this->htmlRadioCheck($this->cgi['prefix']['data'].$this->fds[$k],                                          echo $this->htmlRadioCheck($this->cgi['prefix']['data'].$this->fds[$k],
                                                         $css_class_name, $vals, $selected, $multiple, $readonly,                                                          $css_class_name, $vals, $selected, $multiple, $readonly,
Line 991  function '.$this->js['prefix'].'filter_h
Line 992  function '.$this->js['prefix'].'filter_h
                                 } else {                                  } else {
                                         echo ' wrap="virtual"';                                          echo ' wrap="virtual"';
                                 }                                  }
                                 echo '>',htmlspecialchars($this->fdd[$k]['default']),'</textarea>',"\n";                                  echo '>';
                                   if($escape) echo htmlspecialchars($this->fdd[$k]['default']);
                                   else echo $this->fdd[$k]['default'];
                                   echo '</textarea>',"\n";
                         } elseif ($this->col_has_php($k)) {                          } elseif ($this->col_has_php($k)) {
                                 echo include($this->fdd[$k]['php']);                                  echo include($this->fdd[$k]['php']);
                         } else {                          } else {
Line 1006  function '.$this->js['prefix'].'filter_h
Line 1010  function '.$this->js['prefix'].'filter_h
                                 echo ($this->readonly($k) ? ' disabled' : '');                                  echo ($this->readonly($k) ? ' disabled' : '');
                                 echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"';                                  echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"';
                                 echo $size_ml_props,' value="';                                  echo $size_ml_props,' value="';
                                 echo htmlspecialchars($this->fdd[$k]['default']),'" />';                                  if($escape) echo htmlspecialchars($this->fdd[$k]['default']);
                               else echo $this->fdd[$k]['default'];
                                   echo '" />';
                         }                          }
                         echo '</td>',"\n";                          echo '</td>',"\n";
                         if ($this->guidance) {                          if ($this->guidance) {
Line 1094  function '.$this->js['prefix'].'filter_h
Line 1100  function '.$this->js['prefix'].'filter_h
                 }                  }
         } /* }}} */          } /* }}} */
   
         function display_change_field($row, $k) /* {{{ */          function display_change_field($row, $k) /* {{{ */
         {          {
                 $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);
                   $escape         = isset($this->fdd[$k]['escape']) ? $this->fdd[$k]['escape'] : true;
                 echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';                  echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"';
                 echo $this->getColAttributes($k),">\n";                  echo $this->getColAttributes($k),">\n";
                 if ($this->col_has_values($k)) {                  if ($this->col_has_values($k)) {
Line 1105  function '.$this->js['prefix'].'filter_h
Line 1112  function '.$this->js['prefix'].'filter_h
                         $multiple   = $this->col_has_multiple($k);                          $multiple   = $this->col_has_multiple($k);
                         $readonly   = $this->readonly($k);                          $readonly   = $this->readonly($k);
                         $strip_tags = true;                          $strip_tags = true;
                         $escape     = true;                          //$escape     = true;
                         if ($this->col_has_checkboxes($k) || $this->col_has_radio_buttons($k)) {                          if ($this->col_has_checkboxes($k) || $this->col_has_radio_buttons($k)) {
                                 echo $this->htmlRadioCheck($this->cgi['prefix']['data'].$this->fds[$k],                                  echo $this->htmlRadioCheck($this->cgi['prefix']['data'].$this->fds[$k],
                                                 $css_class_name, $vals, $row["qf$k"], $multiple, $readonly,                                                  $css_class_name, $vals, $row["qf$k"], $multiple, $readonly,
Line 1129  function '.$this->js['prefix'].'filter_h
Line 1136  function '.$this->js['prefix'].'filter_h
                         } else {                          } else {
                                 echo ' wrap="virtual"';                                  echo ' wrap="virtual"';
                         }                          }
                         echo '>',htmlspecialchars($row["qf$k"]),'</textarea>',"\n";                          echo '>';
                           if($escape) echo htmlspecialchars($row["qf$k"]);
                           else echo $row["qf$k"];
                           echo '</textarea>',"\n";
                 } elseif ($this->col_has_php($k)) {                  } elseif ($this->col_has_php($k)) {
                         echo include($this->fdd[$k]['php']);                          echo include($this->fdd[$k]['php']);
                 } else {                  } else {
Line 1141  function '.$this->js['prefix'].'filter_h
Line 1151  function '.$this->js['prefix'].'filter_h
                         echo '<input class="',$css_class_name,'" type="text" ';                          echo '<input class="',$css_class_name,'" type="text" ';
                         echo ($this->readonly($k) ? 'disabled ' : '');                          echo ($this->readonly($k) ? 'disabled ' : '');
                         echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';                          echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
                         echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";                          if($escape) echo htmlspecialchars($row["qf$k"]);
                           else echo $row["qf$k"];
                           echo '" />',"\n";
                 }                  }
                 echo '</td>',"\n";                  echo '</td>',"\n";
         } /* }}} */          } /* }}} */

Legend:
Removed from v.1.185  
changed lines
  Added in v.1.186

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