mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
change pagination class
This commit is contained in:
parent
e99108a34a
commit
37f72d881e
11 changed files with 62 additions and 57 deletions
|
@ -18,10 +18,10 @@ class Paginator
|
|||
$page = (int)(empty(_get('p')) ? 1 : _get('p'));
|
||||
$pagination = "";
|
||||
foreach($colVal as $k=>$v) {
|
||||
if(!empty($query)){
|
||||
$table = $table->where_like($k, $v);
|
||||
}else{
|
||||
if(strpos($v,'%') === false) {
|
||||
$table = $table->where($k, $v);
|
||||
}else{
|
||||
$table = $table->where_like($k, $v);
|
||||
}
|
||||
}
|
||||
$totalReq = $table->count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue