version 1.191, 2007/04/11 19:55:57 |
version 1.192, 2007/04/11 20:06:35 |
|
|
return $ret; |
return $ret; |
} /* }}} */ |
} /* }}} */ |
|
|
|
function get_SQL_main_list_query($qparts) /* {{{ */ |
|
{ |
|
return $this->get_SQL_query($qparts); |
|
} /* }}} */ |
|
|
|
|
|
|
function get_SQL_query($parts) /* {{{ */ |
function get_SQL_query($parts) /* {{{ */ |
{ |
{ |
foreach ($parts as $k => $v) { |
foreach ($parts as $k => $v) { |
Line 2016 function '.$this->js['prefix'].'filter_h |
|
Line 2023 function '.$this->js['prefix'].'filter_h |
|
'select' => 'count(*)', |
'select' => 'count(*)', |
'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_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, 'n'); |
$this->total_recs = $row[0]; |
$this->total_recs = $row[0]; |
} /* }}} */ |
} /* }}} */ |
Line 2184 function '.$this->js['prefix'].'filter_h |
|
Line 2191 function '.$this->js['prefix'].'filter_h |
|
* $this->sql_field_len() function. We will also fetch the first row to get |
* $this->sql_field_len() function. We will also fetch the first row to get |
* the field names. |
* the field names. |
*/ |
*/ |
$query = $this->get_SQL_query($qparts); |
$query = $this->get_SQL_main_list_query($qparts); |
$res = $this->myquery($query, __LINE__); |
$res = $this->myquery($query, __LINE__); |
if ($res == false) { |
if ($res == false) { |
$this->error('invalid SQL query', $query); |
$this->error('invalid SQL query', $query); |