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.159 and 1.160

version 1.159, 2004/12/30 19:58:51 version 1.160, 2005/01/04 09:59:54
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.158 2004/12/27 17:57:54 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.159 2004/12/30 19:58:51 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 1904  function '.$this->js['prefix'].'filter_h
Line 1904  function '.$this->js['prefix'].'filter_h
                 $qparts['where'] = $this->get_SQL_where_from_query_opts();                  $qparts['where'] = $this->get_SQL_where_from_query_opts();
                 // build up the ORDER BY clause                  // build up the ORDER BY clause
                 if (isset($this->sfn)) {                  if (isset($this->sfn)) {
                         // WTF $raw_sort_fields?                          $sort_fields   = array();
                         //$raw_sort_fields = array();                          $sort_fields_w = array();
                         $sort_fields     = array();  
                         $sort_fields_w   = array();  
                         foreach ($this->sfn as $field) {                          foreach ($this->sfn as $field) {
                                 if ($field[0] == '-') {                                  if ($field[0] == '-') {
                                         $field = substr($field, 1);                                          $field = substr($field, 1);
Line 1916  function '.$this->js['prefix'].'filter_h
Line 1914  function '.$this->js['prefix'].'filter_h
                                         $field = $field;                                          $field = $field;
                                         $desc  = false;                                          $desc  = false;
                                 }                                  }
                                 //$raw_sort_field = 'qf'.$field;  
                                 $sort_field   = $this->fqn($field);                                  $sort_field   = $this->fqn($field);
                                 $sort_field_w = $this->fdd[$field]['name'];                                  $sort_field_w = $this->fdd[$field]['name'];
                                 $this->col_has_sql($field) && $sort_field_w .= ' (sql)';                                  $this->col_has_sql($field) && $sort_field_w .= ' (sql)';
Line 1926  function '.$this->js['prefix'].'filter_h
Line 1923  function '.$this->js['prefix'].'filter_h
                                 } else {                                  } else {
                                         $sort_field_w .= ' '.$this->labels['ascending'];                                          $sort_field_w .= ' '.$this->labels['ascending'];
                                 }                                  }
                                 //$raw_sort_fields[] = $raw_sort_field;                                  $sort_fields[]   = $sort_field;
                                 $sort_fields[]     = $sort_field;                                  $sort_fields_w[] = $sort_field_w;
                                 $sort_fields_w[]   = $sort_field_w;  
                         }                          }
                         if (count($sort_fields) > 0) {                          if (count($sort_fields) > 0) {
                                 $qparts['orderby'] = join(',', $sort_fields);                                  $qparts['orderby'] = join(',', $sort_fields);
                         }                          }
                 }                  }
                 $to = $this->fm + $this->inc;  
                 $qparts['limit'] = $listall ? '' : $this->fm.','.$this->inc;                  $qparts['limit'] = $listall ? '' : $this->fm.','.$this->inc;
   
                 /*                  /*

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160

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