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.200 and 1.201

version 1.200, 2007/09/06 18:31:04 version 1.201, 2007/09/08 11:47:22
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.199 2007-09-02 21:48:32 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.200 2007-09-06 18:31:04 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 524  class phpMyEdit
Line 524  class phpMyEdit
                                 } else if (is_array($desc)) {                                  } else if (is_array($desc)) {
                                         // TODO                                          // TODO
                                 } else {                                  } else {
                                         $ret = 'PMEjoin'.$field.'.'.$this->sd.$this->fdd[$this->fds[$field]]['values']['description'].$this->ed;                                          $ret = $this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->sd.$this->fdd[$this->fds[$field]]['values']['description'].$this->ed;
                                 }                                  }
                         // TODO: remove me                          // TODO: remove me
                         } elseif (0 && $this->fdd[$this->fds[$field]]['values']['column'] && ! $dont_cols) {                          } elseif (0 && $this->fdd[$this->fds[$field]]['values']['column'] && ! $dont_cols) {
                                 $ret = 'PMEjoin'.$field.'.'.$this->fdd[$this->fds[$field]]['values']['column'];                                  $ret = $this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->fdd[$this->fds[$field]]['values']['column'];
                         } else {                          } else {
                                 $ret = $this->sd.'PMEtable0'.$this->ed.'.'.$this->sd.$this->fds[$field].$this->ed;                                  $ret = $this->sd.'PMEtable0'.$this->ed.'.'.$this->sd.$this->fds[$field].$this->ed;
                         }                          }
Line 620  class phpMyEdit
Line 620  class phpMyEdit
                         if($this->fdd[$main_column]['values']['db']) {                          if($this->fdd[$main_column]['values']['db']) {
                                 $dbp = $this->sd.$this->fdd[$main_column]['values']['db'].$this->ed.'.';                                  $dbp = $this->sd.$this->fdd[$main_column]['values']['db'].$this->ed.'.';
                         } else {                          } else {
                                 $dbp = $this->dbp;                                  //$dbp = $this->dbp;
                         }                          }
                         $table       = $this->sd.$this->fdd[$main_column]['values']['table'].$this->ed;                          $table       = $this->sd.$this->fdd[$main_column]['values']['table'].$this->ed;
                         $join_column = $this->sd.$this->fdd[$main_column]['values']['column'].$this->ed;                          $join_column = $this->sd.$this->fdd[$main_column]['values']['column'].$this->ed;
Line 1537  function '.$this->js['prefix'].'filter_h
Line 1537  function '.$this->js['prefix'].'filter_h
                 }                  }
                 $ret .= '"'.($readonly ? ' disabled ' : ' ').$js.">\n";                  $ret .= '"'.($readonly ? ' disabled ' : ' ').$js.">\n";
                 if (! is_array($selected)) {                  if (! is_array($selected)) {
                         $selected = $selected === null ? array() : array($selected);                          $selected = $selected === null ? array() : array((string)$selected);
                   } else {
                           foreach($selected as $val) $selecte2[]=(string)$val;
                           $selected = $selected2;
                 }                  }
                 $found = false;                  $found = false;
                 foreach ($kv_array as $key => $value) {                  foreach ($kv_array as $key => $value) {
                         $ret .= '<option value="'.htmlspecialchars($key).'"';                          $ret .= '<option value="'.htmlspecialchars($key).'"';
                         if ((! $found || $multiple) && in_array(/* (string) see #446 */ $key, $selected, 1)                          if ((! $found || $multiple) && in_array((string)$key, $selected, 1)
                                         || (count($selected) == 0 && ! $found && ! $multiple)) {                                          || (count($selected) == 0 && ! $found && ! $multiple)) {
                                 $ret  .= ' selected="selected"';                                  $ret  .= ' selected="selected"';
                                 $found = true;                                  $found = true;

Legend:
Removed from v.1.200  
changed lines
  Added in v.1.201

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