Commit 84313b29 authored by Anthony.Suerte's avatar Anthony.Suerte

User Transaction Query Replacement

parent b18dcacc
This diff is collapsed.
......@@ -24,11 +24,11 @@ class LogicAccountTransactions extends ModelAccountTransactions {
"overall_total");
$this -> setTotal($rowCount);
$start = ($this -> getTargetPage() - VAL_INT_1) * VAR_DEFAULT_PAGE_COUNT;
$start = ($this -> getTargetPage() - VAL_INT_1) * $this -> getDefaultPageCount();
$this -> setStart($start);
$where[] = " LIMIT {$start}, ".VAR_DEFAULT_PAGE_COUNT;
$where[] = " LIMIT {$start}, {$this -> getDefaultPageCount()}";
$this -> setResult($this -> accessSelect('LIST_USER_TRANSACTION_ADMIN', $where));
}
......
......@@ -366,7 +366,7 @@ class ModelAccountTransactions extends ModelClassEx {
public function dispPager() {
echo $this -> getPagerCommon($this -> getTargetPage()
, $this -> getTotalPageCommon(VAR_DEFAULT_PAGE_COUNT, $this -> total)
, $this -> getTotalPageCommon($this -> getDefaultPageCount(), $this -> total)
, $this -> total
, NO_STRING
, false);
......@@ -376,6 +376,10 @@ class ModelAccountTransactions extends ModelClassEx {
$this -> rs = $rs;
}
public function getDefaultPageCount(){
return VAL_INT_20;
}
public function getCurrency(){
return $this -> currency;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment