diff --git a/system/controllers/customers.php b/system/controllers/customers.php index b2624004..309650cf 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -216,7 +216,10 @@ switch ($action) { ->find_many(); $v = $routes['3']; - if (empty($v) || $v == 'order') { + if(empty($v)){ + $v = 'activation'; + } + if ($v == 'order') { $v = 'order'; $paginator = Paginator::build(ORM::for_table('tbl_payment_gateway'), ['username' => $customer['username']]); $order = ORM::for_table('tbl_payment_gateway') @@ -238,8 +241,7 @@ switch ($action) { $ui->assign('paginator', $paginator); $ui->assign('activation', $activation); } - $package = ORM::for_table('tbl_user_recharges')->where('username', $customer['username'])->find_one(); - $ui->assign('package', $package); + $ui->assign('packages', User::_billing($customer['id'])); $ui->assign('v', $v); $ui->assign('d', $customer); $ui->assign('customFields', $customFields); diff --git a/system/lan/english.json b/system/lan/english.json index e07b9d38..b8317e06 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -491,5 +491,6 @@ "Not_Found": "Not Found", "Cash": "Cash", "Payment_not_found": "Payment not found", - "If_your_friend_have_Additional_Cost__you_will_pay_for_that_too": "If your friend have Additional Cost, you will pay for that too" + "If_your_friend_have_Additional_Cost__you_will_pay_for_that_too": "If your friend have Additional Cost, you will pay for that too", + "Cache_cleared_successfully_": "Cache cleared successfully!" } \ No newline at end of file diff --git a/ui/compiled/index.html b/ui/compiled/index.html deleted file mode 100644 index 97579708..00000000 --- a/ui/compiled/index.html +++ /dev/null @@ -1,8 +0,0 @@ - -
-Directory access is forbidden.
- - \ No newline at end of file diff --git a/ui/ui/customers-view.tpl b/ui/ui/customers-view.tpl index 328344d5..8e38dcad 100644 --- a/ui/ui/customers-view.tpl +++ b/ui/ui/customers-view.tpl @@ -30,20 +30,20 @@ onclick="this.select()"> {if $d['pppoe_password'] != ''} -{Lang::T('Invoice')} | -{Lang::T('Username')} | -{Lang::T('Plan Name')} | -{Lang::T('Plan Price')} | -{Lang::T('Type')} | -{Lang::T('Created On')} | -{Lang::T('Expires On')} | -{Lang::T('Method')} | -|
---|---|---|---|---|---|---|---|---|
{$ds['invoice']} | -{$ds['username']} | -{$ds['plan_name']} | -{Lang::moneyFormat($ds['price'])} | -{$ds['type']} | -{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])} - | -{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])} | -{$ds['method']} | -|
{Lang::T('Invoice')} | +{Lang::T('Username')} | +{Lang::T('Plan Name')} | +{Lang::T('Plan Price')} | +{Lang::T('Type')} | +{Lang::T('Created On')} | +{Lang::T('Expires On')} | +{Lang::T('Method')} | +|
{$ds['invoice']} | +{$ds['username']} | +{$ds['plan_name']} | +{Lang::moneyFormat($ds['price'])} | +{$ds['type']} | +{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])} + | +{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])} | +{$ds['method']} | +|
{Lang::T('Plan Name')} | -{Lang::T('Gateway')} | -{Lang::T('Routers')} | -{Lang::T('Type')} | -{Lang::T('Plan Price')} | -{Lang::T('Created On')} | -{Lang::T('Expires On')} | -{Lang::T('Date Done')} | -{Lang::T('Method')} | -
{$ds['plan_name']} | -{$ds['gateway']} | -{$ds['routers']} | -{$ds['payment_channel']} | -{Lang::moneyFormat($ds['price'])} | -{Lang::dateTimeFormat($ds['created_date'])} | -{Lang::dateTimeFormat($ds['expired_date'])} | -{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if} | -{if $ds['status']==1}{Lang::T('UNPAID')} - {elseif $ds['status']==2}{Lang::T('PAID')} - {elseif $ds['status']==3}{$_L['FAILED']} - {elseif $ds['status']==4}{Lang::T('CANCELED')} - {elseif $ds['status']==5}{Lang::T('UNKNOWN')} - {/if} | -
{Lang::T('Plan Name')} | +{Lang::T('Gateway')} | +{Lang::T('Routers')} | +{Lang::T('Type')} | +{Lang::T('Plan Price')} | +{Lang::T('Created On')} | +{Lang::T('Expires On')} | +{Lang::T('Date Done')} | +{Lang::T('Method')} | +
{$ds['plan_name']} | +{$ds['gateway']} | +{$ds['routers']} | +{$ds['payment_channel']} | +{Lang::moneyFormat($ds['price'])} | +{Lang::dateTimeFormat($ds['created_date'])} | +{Lang::dateTimeFormat($ds['expired_date'])} | +{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if} | +{if $ds['status']==1}{Lang::T('UNPAID')} + {elseif $ds['status']==2}{Lang::T('PAID')} + {elseif $ds['status']==3}{$_L['FAILED']} + {elseif $ds['status']==4}{Lang::T('CANCELED')} + {elseif $ds['status']==5}{Lang::T('UNKNOWN')} + {/if} | +