mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02:00
included total_matchs to read categories
This commit is contained in:
parent
c4cf4bb037
commit
aacca9b4da
@ -29,6 +29,7 @@
|
|||||||
var $app_name;
|
var $app_name;
|
||||||
var $cats;
|
var $cats;
|
||||||
var $db;
|
var $db;
|
||||||
|
var $total_records;
|
||||||
|
|
||||||
function filter($type)
|
function filter($type)
|
||||||
{
|
{
|
||||||
@ -106,6 +107,7 @@
|
|||||||
$this->account_id = $account_id;
|
$this->account_id = $account_id;
|
||||||
$this->app_name = $app_name;
|
$this->app_name = $app_name;
|
||||||
$this->db = $phpgw->db;
|
$this->db = $phpgw->db;
|
||||||
|
$this->total_records = $this->db->num_rows();
|
||||||
$this->cats = $this->return_array($type,$start,$limit,$query,$sort,$order);
|
$this->cats = $this->return_array($type,$start,$limit,$query,$sort,$order);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,6 +117,7 @@
|
|||||||
global $phpgw;
|
global $phpgw;
|
||||||
$filter = $this->filter($type);
|
$filter = $this->filter($type);
|
||||||
|
|
||||||
|
|
||||||
if ($format == 'select') {
|
if ($format == 'select') {
|
||||||
$this->db->query("select * from phpgw_categories where cat_appname='" . $this->app_name
|
$this->db->query("select * from phpgw_categories where cat_appname='" . $this->app_name
|
||||||
. "' $filter",__LINE__,__FILE__);
|
. "' $filter",__LINE__,__FILE__);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user