Show From Customer
This commit is contained in:
parent
b95788262d
commit
b9e987570c
@ -152,9 +152,6 @@ switch ($action) {
|
|||||||
if (!$plan['enabled']) {
|
if (!$plan['enabled']) {
|
||||||
r2(U . "home", 'e', 'Plan is not exists');
|
r2(U . "home", 'e', 'Plan is not exists');
|
||||||
}
|
}
|
||||||
if ($plan['allow_purchase'] != 'yes') {
|
|
||||||
r2(U . "home", 'e', 'Cannot recharge this plan');
|
|
||||||
}
|
|
||||||
if ($routes['2'] == 'radius') {
|
if ($routes['2'] == 'radius') {
|
||||||
$router_name = 'radius';
|
$router_name = 'radius';
|
||||||
} else {
|
} else {
|
||||||
@ -188,9 +185,6 @@ switch ($action) {
|
|||||||
if (!$plan['enabled']) {
|
if (!$plan['enabled']) {
|
||||||
r2(U . "home", 'e', 'Plan is not exists');
|
r2(U . "home", 'e', 'Plan is not exists');
|
||||||
}
|
}
|
||||||
if ($plan['allow_purchase'] != 'yes') {
|
|
||||||
r2(U . "home", 'e', 'Cannot recharge this plan');
|
|
||||||
}
|
|
||||||
if ($routes['2'] == 'radius') {
|
if ($routes['2'] == 'radius') {
|
||||||
$router_name = 'radius';
|
$router_name = 'radius';
|
||||||
} else {
|
} else {
|
||||||
@ -319,7 +313,7 @@ switch ($action) {
|
|||||||
$router['id'] = 0;
|
$router['id'] = 0;
|
||||||
$router['name'] = 'balance';
|
$router['name'] = 'balance';
|
||||||
}
|
}
|
||||||
$plan = ORM::for_table('tbl_plans')->where('enabled', '1')->where('allow_purchase', 'yes')->find_one($routes['3']);
|
$plan = ORM::for_table('tbl_plans')->where('enabled', '1')->find_one($routes['3']);
|
||||||
if (empty($router) || empty($plan)) {
|
if (empty($router) || empty($plan)) {
|
||||||
r2(U . "order/package", 'e', Lang::T("Plan Not found"));
|
r2(U . "order/package", 'e', Lang::T("Plan Not found"));
|
||||||
}
|
}
|
||||||
|
@ -384,7 +384,6 @@
|
|||||||
"After_Customer_activate_voucher_or_login__customer_will_be_redirected_to_this_url": "After Customer activate voucher or login, customer will be redirected to this url",
|
"After_Customer_activate_voucher_or_login__customer_will_be_redirected_to_this_url": "After Customer activate voucher or login, customer will be redirected to this url",
|
||||||
"Voucher_Prefix": "Voucher Prefix",
|
"Voucher_Prefix": "Voucher Prefix",
|
||||||
"Voucher_activation_success__now_you_can_login": "Voucher activation success, now you can login",
|
"Voucher_activation_success__now_you_can_login": "Voucher activation success, now you can login",
|
||||||
"Client_Can_Purchase": "Client Can Purchase",
|
|
||||||
"Buy_this__your_active_package_will_be_overwritten": "Buy this? your active package will be overwritten",
|
"Buy_this__your_active_package_will_be_overwritten": "Buy this? your active package will be overwritten",
|
||||||
"Pay_this_with_Balance__your_active_package_will_be_overwritten": "Pay this with Balance? your active package will be overwritten",
|
"Pay_this_with_Balance__your_active_package_will_be_overwritten": "Pay this with Balance? your active package will be overwritten",
|
||||||
"Buy_this__your_active_package_will_be_overwrite": "Buy this? your active package will be overwrite",
|
"Buy_this__your_active_package_will_be_overwrite": "Buy this? your active package will be overwrite",
|
||||||
@ -468,5 +467,6 @@
|
|||||||
"Please_select_Payment_Gateway": "Please select Payment Gateway",
|
"Please_select_Payment_Gateway": "Please select Payment Gateway",
|
||||||
"Payment_Gateway_Deleted": "Payment Gateway Deleted",
|
"Payment_Gateway_Deleted": "Payment Gateway Deleted",
|
||||||
"Payment_Gateway_not_set__please_set_it_in_Settings": "Payment Gateway not set, please set it in Settings",
|
"Payment_Gateway_not_set__please_set_it_in_Settings": "Payment Gateway not set, please set it in Settings",
|
||||||
"Failed_to_create_Transaction__": "Failed to create Transaction.."
|
"Failed_to_create_Transaction__": "Failed to create Transaction..",
|
||||||
|
"Show_To_Customer": "Show To Customer"
|
||||||
}
|
}
|
@ -1,59 +1,60 @@
|
|||||||
{include file="sections/header.tpl"}
|
{include file="sections/header.tpl"}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-12">
|
<div class="col-sm-12 col-md-12">
|
||||||
<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('Add Service Plan')}</div>
|
<div class="panel-heading">{Lang::T('Add Service Plan')}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form class="form-horizontal" method="post" role="form" action="{$_url}services/balance-add-post" >
|
<form class="form-horizontal" method="post" role="form" action="{$_url}services/balance-add-post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Status')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Status')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<label class="radio-inline warning">
|
<label class="radio-inline warning">
|
||||||
<input type="radio" checked name="enabled" value="1"> Enable
|
<input type="radio" checked name="enabled" value="1"> Enable
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
<input type="radio" name="enabled" value="0"> Disable
|
<input type="radio" name="enabled" value="0"> Disable
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<label class="radio-inline warning">
|
<label class="radio-inline warning">
|
||||||
<input type="radio" checked name="allow_purchase" value="yes"> Yes
|
<input type="radio" checked name="allow_purchase" value="yes"> Yes
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
<input type="radio" name="allow_purchase" value="no"> No
|
<input type="radio" name="allow_purchase" value="no"> No
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Plan Name')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Plan Name')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" required class="form-control" id="name" name="name" maxlength="40" placeholder="Topup 100">
|
<input type="text" required class="form-control" id="name" name="name" maxlength="40"
|
||||||
</div>
|
placeholder="Topup 100">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label class="col-md-2 control-label">{Lang::T('Plan Price')}</label>
|
<div class="form-group">
|
||||||
<div class="col-md-6">
|
<label class="col-md-2 control-label">{Lang::T('Plan Price')}</label>
|
||||||
<div class="input-group">
|
<div class="col-md-6">
|
||||||
<span class="input-group-addon">{$_c['currency_code']}</span>
|
<div class="input-group">
|
||||||
<input type="number" class="form-control" name="price" required>
|
<span class="input-group-addon">{$_c['currency_code']}</span>
|
||||||
</div>
|
<input type="number" class="form-control" name="price" required>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-lg-offset-2 col-lg-10">
|
<div class="col-lg-offset-2 col-lg-10">
|
||||||
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button>
|
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button>
|
||||||
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
|
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file="sections/footer.tpl"}
|
{include file="sections/footer.tpl"}
|
@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Show To Customer')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<label class="radio-inline warning">
|
<label class="radio-inline warning">
|
||||||
<input type="radio" {if $d['allow_purchase'] == yes}checked{/if} name="allow_purchase" value="yes"> Yes
|
<input type="radio" {if $d['allow_purchase'] == yes}checked{/if} name="allow_purchase" value="yes"> Yes
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Show To Customer')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" name="allow_purchase" value="yes" checked> Yes
|
<input type="radio" name="allow_purchase" value="yes" checked> Yes
|
||||||
<input type="radio" name="allow_purchase" value="no"> No
|
<input type="radio" name="allow_purchase" value="no"> No
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Show To Customer')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" name="allow_purchase" value="yes" {if $d['allow_purchase'] == yes}checked{/if}> Yes
|
<input type="radio" name="allow_purchase" value="yes" {if $d['allow_purchase'] == yes}checked{/if}> Yes
|
||||||
<input type="radio" name="allow_purchase" value="no" {if $d['allow_purchase'] == no}checked{/if}> No
|
<input type="radio" name="allow_purchase" value="no" {if $d['allow_purchase'] == no}checked{/if}> No
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Show To Customer')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" checked name="allow_purchase" value="yes"> Yes
|
<input type="radio" checked name="allow_purchase" value="yes"> Yes
|
||||||
<input type="radio" name="allow_purchase" value="no"> No
|
<input type="radio" name="allow_purchase" value="no"> No
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Client Can Purchase')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Show To Customer')}</label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input type="radio" name="allow_purchase" value="yes" {if $d['allow_purchase'] == yes}checked{/if}> Yes
|
<input type="radio" name="allow_purchase" value="yes" {if $d['allow_purchase'] == yes}checked{/if}> Yes
|
||||||
<input type="radio" name="allow_purchase" value="no" {if $d['allow_purchase'] == no}checked{/if}> No
|
<input type="radio" name="allow_purchase" value="no" {if $d['allow_purchase'] == no}checked{/if}> No
|
||||||
|
Loading…
x
Reference in New Issue
Block a user