Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 24. október 2026

Rozdiely pre phpMyEdit/phpMyEdit.class.php medzi verziami 1.224 a 1.225

verzia 1.224, 2017/11/07 08:51:38 verzia 1.225, 2017/11/08 05:27:43
Riadok 19 
Riadok 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.223 2017/06/09 15:02:38 igor Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.224 2017/11/07 08:51:38 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.
Riadok 35 
Riadok 35 
           original table view (Pass 1).            original table view (Pass 1).
 */  */
   
 define('FETCH_ASSOC', 0);  define('PME_FETCH_BOTH',  0);
 define('FETCH_NUM',   1);  define('PME_FETCH_ASSOC', 1);
 define('FETCH_BOTH',  2);  define('PME_FETCH_NUM',   2);
   
   
 class phpMyEdit_timer /* {{{ */  class phpMyEdit_timer /* {{{ */
 {  {
Riadok 348  class phpMyEdit
Riadok 347  class phpMyEdit
                 }                  }
         } /* }}} */          } /* }}} */
   
         function sql_fetch(&$result, $result_type = FETCH_BOTH) /* {{{ */          function sql_fetch(&$result, $result_type = PME_FETCH_BOTH) /* {{{ */
         {          {
                 if (version_compare(PHP_VERSION, '7.0.0') >= 0) {                  if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
                         switch($result_type) {                          switch($result_type) {
                                 default:                                  default:
                                 case FETCH_BOTH:  $type = MYSQLI_BOTH; break;                                  case PME_FETCH_BOTH:  $type = MYSQLI_BOTH; break;
                                 case FETCH_NUM:   $type = MYSQLI_NUM; break;                                  case PME_FETCH_NUM:   $type = MYSQLI_NUM; break;
                                 case FETCH_ASSOC: $type = MYSQLI_ASSOC; break;                                  case PME_FETCH_ASSOC: $type = MYSQLI_ASSOC; break;
                         }                          }
                         return mysqli_fetch_array($result, $type);                          return mysqli_fetch_array($result, $type);
                 } else { // FOR OLD PHP                  } else { // FOR OLD PHP
                         switch($result_type) {                          switch($result_type) {
                                 default:                                  default:
                                 case FETCH_BOTH:  $type = MYSQL_BOTH; break;                                  case PME_FETCH_BOTH:  $type = MYSQL_BOTH; break;
                                 case FETCH_NUM:   $type = MYSQL_NUM; break;                                  case PME_FETCH_NUM:   $type = MYSQL_NUM; break;
                                 case FETCH_ASSOC: $type = MYSQL_ASSOC; break;                                  case PME_FETCH_ASSOC: $type = MYSQL_ASSOC; break;
                         }                          }
                         return mysql_fetch_array($result, $type);                          return mysql_fetch_array($result, $type);
                 }                  }
Riadok 558  class phpMyEdit
Riadok 557  class phpMyEdit
                 }                  }
                 $values = array();                  $values = array();
                 $res    = $this->myquery($this->get_SQL_query($qparts), __LINE__);                  $res    = $this->myquery($this->get_SQL_query($qparts), __LINE__);
                 while ($row = $this->sql_fetch($res, 'n')) {                  while ($row = $this->sql_fetch($res, PME_FETCH_NUM)) {
                         $values[$row[0]] = $desc ? $row[1] : $row[0];                          $values[$row[0]] = $desc ? $row[1] : $row[0];
                 }                  }
                 return $values;                  return $values;
Riadok 2119  function '.$this->js['prefix'].'filter_h
Riadok 2118  function '.$this->js['prefix'].'filter_h
                 if (in_array($name, array('add','view','change','copy','delete'))) {                  if (in_array($name, array('add','view','change','copy','delete'))) {
                         $enabled_fnc = $name.'_enabled';                          $enabled_fnc = $name.'_enabled';
                         $enabled     = $this->$enabled_fnc();                          $enabled     = $this->$enabled_fnc();
                         if ($name != 'add' && ! @$this->total_recs && strstr('LF', $this->page_type))                          if ($name != 'add' && ! @$this->total_recs && strstr('LF', $this->page_type)) {
                                 $enabled = false;                                  $enabled = false;
                           }
                         return $this->htmlSubmit('operation', ucfirst($name),                          return $this->htmlSubmit('operation', ucfirst($name),
                                         $this->getCSSclass($name, $position), false, $enabled ? 0 : $disabled);                                          $this->getCSSclass($name, $position), false, $enabled ? 0 : $disabled);
                 }                  }
Riadok 2203  function '.$this->js['prefix'].'filter_h
Riadok 2203  function '.$this->js['prefix'].'filter_h
                                 'from'   => @$this->get_SQL_join_clause(),                                  'from'   => @$this->get_SQL_join_clause(),
                                 'where'  => @$this->get_SQL_where_from_query_opts());                                  'where'  => @$this->get_SQL_where_from_query_opts());
                 $res = $this->myquery($this->get_SQL_main_list_query($count_parts), __LINE__);                  $res = $this->myquery($this->get_SQL_main_list_query($count_parts), __LINE__);
                 $row = $this->sql_fetch($res, 'n');                  $row = $this->sql_fetch($res, PME_FETCH_NUM);
                 $this->total_recs = $row[0];                  $this->total_recs = $row[0];
         } /* }}} */          } /* }}} */
   

Legend:
Odstranené z verzie1.224  
zmenené riadky
  Pridané vo verzii1.225

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok