Fix Voucher Searching
This commit is contained in:
parent
9f09909616
commit
0c3386f0d1
@ -2,7 +2,7 @@
|
|||||||
"name": "hotspotbilling/phpnuxbill",
|
"name": "hotspotbilling/phpnuxbill",
|
||||||
"type": "template",
|
"type": "template",
|
||||||
"description": "PHPNuxBill a Hotspot Billing Software.",
|
"description": "PHPNuxBill a Hotspot Billing Software.",
|
||||||
"keywords": ["template"],
|
"keywords": ["template","PHPMixBill","PHPnuxBill","Mikrotik","Hotspot","Billing"],
|
||||||
"homepage": "https://github.com/hotspotbilling/phpnuxbill",
|
"homepage": "https://github.com/hotspotbilling/phpnuxbill",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -367,7 +367,7 @@ switch ($action) {
|
|||||||
$paginator = Paginator::bootstrap('tbl_voucher', 'code', '%' . $code . '%');
|
$paginator = Paginator::bootstrap('tbl_voucher', 'code', '%' . $code . '%');
|
||||||
$d = ORM::for_table('tbl_plans')->where('enabled', '1')
|
$d = ORM::for_table('tbl_plans')->where('enabled', '1')
|
||||||
->join('tbl_voucher', array('tbl_plans.id', '=', 'tbl_voucher.id_plan'))
|
->join('tbl_voucher', array('tbl_plans.id', '=', 'tbl_voucher.id_plan'))
|
||||||
->where_like('tbl_plans.code', '%' . $code . '%')
|
->where_like('tbl_voucher.code', '%' . $code . '%')
|
||||||
->offset($paginator['startpoint'])
|
->offset($paginator['startpoint'])
|
||||||
->limit($paginator['limit'])
|
->limit($paginator['limit'])
|
||||||
->find_many();
|
->find_many();
|
||||||
@ -380,6 +380,7 @@ switch ($action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ui->assign('d', $d);
|
$ui->assign('d', $d);
|
||||||
|
$ui->assign('_code', $code);
|
||||||
$ui->assign('paginator', $paginator);
|
$ui->assign('paginator', $paginator);
|
||||||
run_hook('view_list_voucher'); #HOOK
|
run_hook('view_list_voucher'); #HOOK
|
||||||
$ui->display('voucher.tpl');
|
$ui->display('voucher.tpl');
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<span class="fa fa-search"></span>
|
<span class="fa fa-search"></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" name="code" class="form-control"
|
<input type="text" name="code" class="form-control"
|
||||||
placeholder="{$_L['Search_by_Code']}...">
|
placeholder="{$_L['Search_by_Code']}..." value="{$_code}">
|
||||||
<div class="input-group-btn">
|
<div class="input-group-btn">
|
||||||
<button class="btn btn-success">{$_L['Search']}</button>
|
<button class="btn btn-success">{$_L['Search']}</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user