chenge _post to _get

This commit is contained in:
Ibnu Maksum 2024-09-09 14:01:55 +07:00
parent 594fab1151
commit b7fce955ac
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 6 additions and 6 deletions

View File

@ -673,10 +673,10 @@ switch ($action) {
default: default:
run_hook('list_customers'); #HOOK run_hook('list_customers'); #HOOK
$search = _post('search'); $search = _req('search');
$order = _post('order', 'username'); $order = _req('order', 'username');
$filter = _post('filter', 'Active'); $filter = _req('filter', 'Active');
$orderby = _post('orderby', 'asc'); $orderby = _req('orderby', 'asc');
$order_pos = [ $order_pos = [
'username' => 0, 'username' => 0,
'created_at' => 8, 'created_at' => 8,

View File

@ -54,7 +54,7 @@
<li>{Lang::dateFormat($start_date)}</li> <li>{Lang::dateFormat($start_date)}</li>
<li>{Lang::dateFormat($current_date)}</li> <li>{Lang::dateFormat($current_date)}</li>
{if $_c['enable_balance'] == 'yes' && in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])} {if $_c['enable_balance'] == 'yes' && in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])}
<li> <li onclick="window.location.href = '{$_url}customers&search=&order=balance&filter=Active&orderby=desc'" style="cursor: pointer;">
{Lang::T('Customer Balance')} <sup>{$_c['currency_code']}</sup> {Lang::T('Customer Balance')} <sup>{$_c['currency_code']}</sup>
<b>{number_format($cb,0,$_c['dec_point'],$_c['thousands_sep'])}</b> <b>{number_format($cb,0,$_c['dec_point'],$_c['thousands_sep'])}</b>
</li> </li>