Confirm Recharge can change Using
This commit is contained in:
parent
fa50539faa
commit
41c0190d19
@ -184,13 +184,18 @@ switch ($action) {
|
|||||||
$zero = 1;
|
$zero = 1;
|
||||||
$gateway = 'Recharge Zero';
|
$gateway = 'Recharge Zero';
|
||||||
}
|
}
|
||||||
|
$usings = explode(',', $config['payment_usings']);
|
||||||
|
$usings = array_filter(array_unique($usings));
|
||||||
|
if(count($usings)==0){
|
||||||
|
$usings[] = Lang::T('Cash');
|
||||||
|
}
|
||||||
|
$ui->assign('usings', $usings);
|
||||||
$ui->assign('bills', $bills);
|
$ui->assign('bills', $bills);
|
||||||
$ui->assign('add_cost', $add_cost);
|
$ui->assign('add_cost', $add_cost);
|
||||||
$ui->assign('cust', $cust);
|
$ui->assign('cust', $cust);
|
||||||
$ui->assign('gateway', $gateway);
|
$ui->assign('gateway', $gateway);
|
||||||
$ui->assign('channel', $channel);
|
$ui->assign('channel', $channel);
|
||||||
$ui->assign('server', $b['routers']);
|
$ui->assign('server', $b['routers']);
|
||||||
$ui->assign('using', 'cash');
|
|
||||||
$ui->assign('plan', $plan);
|
$ui->assign('plan', $plan);
|
||||||
$ui->display('recharge-confirm.tpl');
|
$ui->display('recharge-confirm.tpl');
|
||||||
} else {
|
} else {
|
||||||
|
@ -114,6 +114,12 @@ switch ($action) {
|
|||||||
$zero = 1;
|
$zero = 1;
|
||||||
$gateway = 'Recharge Zero';
|
$gateway = 'Recharge Zero';
|
||||||
}
|
}
|
||||||
|
$usings = explode(',', $config['payment_usings']);
|
||||||
|
$usings = array_filter(array_unique($usings));
|
||||||
|
if(count($usings)==0){
|
||||||
|
$usings[] = Lang::T('Cash');
|
||||||
|
}
|
||||||
|
$ui->assign('usings', $usings);
|
||||||
$ui->assign('bills', $bills);
|
$ui->assign('bills', $bills);
|
||||||
$ui->assign('add_cost', $add_cost);
|
$ui->assign('add_cost', $add_cost);
|
||||||
$ui->assign('cust', $cust);
|
$ui->assign('cust', $cust);
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
||||||
<div class="panel-heading">{Lang::T('Confirm')}</div>
|
<div class="panel-heading">{Lang::T('Confirm')}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<form class="form-horizontal" method="post" role="form" action="{$_url}plan/recharge-post">
|
||||||
<center><b>{Lang::T('Customer')}</b></center>
|
<center><b>{Lang::T('Customer')}</b></center>
|
||||||
<ul class="list-group list-group-unbordered">
|
<ul class="list-group list-group-unbordered">
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
@ -50,7 +51,17 @@
|
|||||||
{$plan['validity_unit']}</span>
|
{$plan['validity_unit']}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<b>{Lang::T('Using')}</b> <span class="pull-right">{ucwords($using)}</span>
|
<b>{Lang::T('Using')}</b> <span class="pull-right">
|
||||||
|
<select name="using" style="background-color: white;outline: 1px;border: 1px solid #b7b7b7;">
|
||||||
|
{foreach $usings as $us}
|
||||||
|
<option value="{trim($us)}" {if $using eq trim($us)}selected{/if}>{trim(ucWords($us))}</option>
|
||||||
|
{/foreach}
|
||||||
|
{if $_c['enable_balance'] eq 'yes'}
|
||||||
|
<option value="balance" {if $using eq 'balance'}selected{/if}>{Lang::T('Customer Balance')}</option>
|
||||||
|
{/if}
|
||||||
|
<option value="zero" {if $using eq 'zero'}selected{/if}>{$_c['currency_code']} 0</option>
|
||||||
|
</select>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<center><b>{Lang::T('Total')}</b></center>
|
<center><b>{Lang::T('Total')}</b></center>
|
||||||
@ -76,11 +87,9 @@
|
|||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
</ul>
|
</ul>
|
||||||
<form class="form-horizontal" method="post" role="form" action="{$_url}plan/recharge-post">
|
|
||||||
<input type="hidden" name="id_customer" value="{$cust['id']}">
|
<input type="hidden" name="id_customer" value="{$cust['id']}">
|
||||||
<input type="hidden" name="plan" value="{$plan['id']}">
|
<input type="hidden" name="plan" value="{$plan['id']}">
|
||||||
<input type="hidden" name="server" value="{$server}">
|
<input type="hidden" name="server" value="{$server}">
|
||||||
<input type="hidden" name="using" value="{$using}">
|
|
||||||
<input type="hidden" name="stoken" value="{App::getToken()}">
|
<input type="hidden" name="stoken" value="{App::getToken()}">
|
||||||
<center>
|
<center>
|
||||||
<button class="btn btn-success" type="submit">{Lang::T('Recharge')}</button><br>
|
<button class="btn btn-success" type="submit">{Lang::T('Recharge')}</button><br>
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select name="using" class="form-control">
|
<select name="using" class="form-control">
|
||||||
{foreach $usings as $using}
|
{foreach $usings as $using}
|
||||||
<option value="{trim(ucWords($using))}">{trim(ucWords($using))}</option>
|
<option value="{trim($using)}">{trim(ucWords($using))}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{if $_c['enable_balance'] eq 'yes'}
|
{if $_c['enable_balance'] eq 'yes'}
|
||||||
<option value="balance">{Lang::T('Customer Balance')}</option>
|
<option value="balance">{Lang::T('Customer Balance')}</option>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user