show bandwidth plan

This commit is contained in:
Ibnu Maksum 2024-09-25 15:00:13 +07:00
parent a51462ef1a
commit 6462572fb8
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
6 changed files with 430 additions and 326 deletions

View File

@ -28,7 +28,10 @@ switch ($action) {
$ui->assign('d', $d); $ui->assign('d', $d);
$ui->display('autoload-pool.tpl'); $ui->display('autoload-pool.tpl');
break; break;
case 'bw_name':
$bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']);
echo $bw['name_bw'];
die();
case 'server': case 'server':
$d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many(); $d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many();
$ui->assign('d', $d); $ui->assign('d', $d);

View File

@ -45,6 +45,10 @@ switch ($action) {
die('--'); die('--');
} }
break; break;
case 'bw_name':
$bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']);
echo $bw['name_bw'];
die();
case 'inbox_unread': case 'inbox_unread':
$count = ORM::for_table('tbl_customers_inbox')->where('customer_id', $user['id'])->whereRaw('date_read is null')->count('id'); $count = ORM::for_table('tbl_customers_inbox')->where('customer_id', $user['id'])->whereRaw('date_read is null')->count('id');
if ($count > 0) { if ($count > 0) {

View File

@ -62,7 +62,8 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label"><i class="glyphicon glyphicon-print"></i> {Lang::T('Print Max Char')}</label> <label class="col-md-2 control-label"><i class="glyphicon glyphicon-print"></i>
{Lang::T('Print Max Char')}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="number" required class="form-control" id="printer_cols" placeholder="37" <input type="number" required class="form-control" id="printer_cols" placeholder="37"
name="printer_cols" value="{$_c['printer_cols']}"> name="printer_cols" value="{$_c['printer_cols']}">
@ -73,7 +74,8 @@
<label class="col-md-2 control-label">{Lang::T('Theme')}</label> <label class="col-md-2 control-label">{Lang::T('Theme')}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="theme" id="theme" class="form-control"> <select name="theme" id="theme" class="form-control">
<option value="default" {if $_c['theme'] eq 'default' }selected="selected" {/if}>{Lang::T('Default')} <option value="default" {if $_c['theme'] eq 'default' }selected="selected" {/if}>
{Lang::T('Default')}
</option> </option>
{foreach $themes as $theme} {foreach $themes as $theme}
<option value="{$theme}" {if $_c['theme'] eq $theme}selected="selected" {/if}> <option value="{$theme}" {if $_c['theme'] eq $theme}selected="selected" {/if}>
@ -151,9 +153,11 @@
<label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label> <label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="disable_voucher" id="disable_voucher" class="form-control"> <select name="disable_voucher" id="disable_voucher" class="form-control">
<option value="no" {if $_c['disable_voucher']=='no' }selected="selected" {/if}>{Lang::T('No')} <option value="no" {if $_c['disable_voucher']=='no' }selected="selected" {/if}>
{Lang::T('No')}
</option> </option>
<option value="yes" {if $_c['disable_voucher']=='yes' }selected="selected" {/if}>{Lang::T('Yes')} <option value="yes" {if $_c['disable_voucher']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')}
</option> </option>
</select> </select>
</div> </div>
@ -184,7 +188,8 @@
<label class="col-md-2 control-label">{Lang::T('Disable Registration')}</label> <label class="col-md-2 control-label">{Lang::T('Disable Registration')}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="disable_registration" id="disable_registration" class="form-control"> <select name="disable_registration" id="disable_registration" class="form-control">
<option value="no" {if $_c['disable_registration']=='no' }selected="selected" {/if}>{Lang::T('No')} <option value="no" {if $_c['disable_registration']=='no' }selected="selected" {/if}>
{Lang::T('No')}
</option> </option>
<option value="yes" {if $_c['disable_registration']=='yes' }selected="selected" {/if}> <option value="yes" {if $_c['disable_registration']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')} {Lang::T('Yes')}
@ -220,7 +225,8 @@
<div class="col-md-6"> <div class="col-md-6">
<select name="radius_enable" id="radius_enable" class="form-control text-muted"> <select name="radius_enable" id="radius_enable" class="form-control text-muted">
<option value="0">{Lang::T('No')}</option> <option value="0">{Lang::T('No')}</option>
<option value="1" {if $_c['radius_enable']}selected="selected" {/if}>{Lang::T('Yes')}</option> <option value="1" {if $_c['radius_enable']}selected="selected" {/if}>{Lang::T('Yes')}
</option>
</select> </select>
</div> </div>
<p class="help-block col-md-4"><a <p class="help-block col-md-4"><a
@ -241,7 +247,8 @@
<div class="col-md-6"> <div class="col-md-6">
<select name="extend_expired" id="extend_expired" class="form-control text-muted"> <select name="extend_expired" id="extend_expired" class="form-control text-muted">
<option value="0">{Lang::T('No')}</option> <option value="0">{Lang::T('No')}</option>
<option value="1" {if $_c['extend_expired'] ==1}selected="selected" {/if}>{Lang::T('Yes')}</option> <option value="1" {if $_c['extend_expired'] ==1}selected="selected" {/if}>
{Lang::T('Yes')}</option>
</select> </select>
</div> </div>
<p class="help-block col-md-4">{Lang::T('Customer can request to extend expirations')}</p> <p class="help-block col-md-4">{Lang::T('Customer can request to extend expirations')}</p>
@ -273,9 +280,11 @@
<label class="col-md-2 control-label">{Lang::T('Enable System')}</label> <label class="col-md-2 control-label">{Lang::T('Enable System')}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="enable_balance" id="enable_balance" class="form-control"> <select name="enable_balance" id="enable_balance" class="form-control">
<option value="no" {if $_c['enable_balance']=='no' }selected="selected" {/if}>{Lang::T('No')} <option value="no" {if $_c['enable_balance']=='no' }selected="selected" {/if}>
{Lang::T('No')}
</option> </option>
<option value="yes" {if $_c['enable_balance']=='yes' }selected="selected" {/if}>{Lang::T('Yes')} <option value="yes" {if $_c['enable_balance']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')}
</option> </option>
</select> </select>
</div> </div>
@ -331,7 +340,8 @@
</div> </div>
<div class="panel-heading"> <div class="panel-heading">
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testSms()">{Lang::T('Test SMS')}</a> <a class="btn btn-success btn-xs" style="color: black;"
href="javascript:testSms()">{Lang::T('Test SMS')}</a>
<button class="btn btn-primary btn-xs" title="save" type="submit"><span <button class="btn btn-primary btn-xs" title="save" type="submit"><span
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button> class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
</div> </div>
@ -365,7 +375,8 @@
</p> </p>
</div> </div>
<small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp <small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp
{Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free Server')}</a></small> {Lang::T('in here too.')} <a href="https://wa.nux.my.id/login"
target="_blank">{Lang::T('Free Server')}</a></small>
</div> </div>
<div class="panel-heading"> <div class="panel-heading">
<div class="btn-group pull-right"> <div class="btn-group pull-right">
@ -386,11 +397,13 @@
{Lang::T('it will be replaced.')} {Lang::T('it will be replaced.')}
</div> </div>
<small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp <small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp
{Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free Server')}</a></small> {Lang::T('in here too.')} <a href="https://wa.nux.my.id/login"
target="_blank">{Lang::T('Free Server')}</a></small>
</div> </div>
<div class="panel-heading"> <div class="panel-heading">
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testEmail()">Test Email</a> <a class="btn btn-success btn-xs" style="color: black;" href="javascript:testEmail()">Test
Email</a>
<button class="btn btn-primary btn-xs" title="save" type="submit"><span <button class="btn btn-primary btn-xs" title="save" type="submit"><span
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button> class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
</div> </div>
@ -546,7 +559,8 @@
<label class="col-md-2 control-label">{Lang::T('Access Token')}</label> <label class="col-md-2 control-label">{Lang::T('Access Token')}</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="password" class="form-control" id="api_key" name="api_key" <input type="password" class="form-control" id="api_key" name="api_key"
value="{$_c['api_key']}" placeholder="{Lang::T('Empty this to randomly created API key')}" value="{$_c['api_key']}"
placeholder="{Lang::T('Empty this to randomly created API key')}"
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'"> onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'">
</div> </div>
<p class="col-md-4 help-block">{Lang::T('This Token will act as SuperAdmin/Admin')}</p> <p class="col-md-4 help-block">{Lang::T('This Token will act as SuperAdmin/Admin')}</p>
@ -576,7 +590,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="panel-heading"> <div class="panel-heading" id="miscellaneous">
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<button class="btn btn-primary btn-xs" title="save" type="submit"><span <button class="btn btn-primary btn-xs" title="save" type="submit"><span
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button> class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
@ -625,15 +639,16 @@
<label class="col-md-2 control-label">{Lang::T('Router Check')}</label> <label class="col-md-2 control-label">{Lang::T('Router Check')}</label>
<div class="col-md-6"> <div class="col-md-6">
<select name="router_check" id="router_check" class="form-control"> <select name="router_check" id="router_check" class="form-control">
<option value="0" {if $_c['router_check']=='0' }selected="selected" <option value="0" {if $_c['router_check']=='0' }selected="selected" {/if}>
{/if}>{Lang::T('Disabled')} {Lang::T('Disabled')}
</option> </option>
<option value="1" {if $_c['router_check']=='1' }selected="selected" <option value="1" {if $_c['router_check']=='1' }selected="selected" {/if}>
{/if}>{Lang::T('Enabled')} {Lang::T('Enabled')}
</option> </option>
</select> </select>
</div> </div>
<p class="help-block col-md-4">{Lang::T('If enabled, the system will notify Admin when router goes Offline, If admin have 10 or more router and many customers, it will get overlapping, you can disabled')} <p class="help-block col-md-4">
{Lang::T('If enabled, the system will notify Admin when router goes Offline, If admin have 10 or more router and many customers, it will get overlapping, you can disabled')}
</p> </p>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -642,7 +657,8 @@
<select name="allow_phone_otp" id="allow_phone_otp" class="form-control"> <select name="allow_phone_otp" id="allow_phone_otp" class="form-control">
<option value="no" {if $_c['allow_phone_otp']=='no' }selected="selected" {/if}> <option value="no" {if $_c['allow_phone_otp']=='no' }selected="selected" {/if}>
{Lang::T('No')}</option> {Lang::T('No')}</option>
<option value="yes" {if $_c['allow_phone_otp']=='yes' }selected="selected" {/if}>{Lang::T('Yes')} <option value="yes" {if $_c['allow_phone_otp']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')}
</option> </option>
</select> </select>
</div> </div>
@ -671,7 +687,8 @@
<select name="allow_email_otp" id="allow_email_otp" class="form-control"> <select name="allow_email_otp" id="allow_email_otp" class="form-control">
<option value="no" {if $_c['allow_email_otp']=='no' }selected="selected" {/if}> <option value="no" {if $_c['allow_email_otp']=='no' }selected="selected" {/if}>
{Lang::T('No')}</option> {Lang::T('No')}</option>
<option value="yes" {if $_c['allow_email_otp']=='yes' }selected="selected" {/if}>{Lang::T('Yes')} <option value="yes" {if $_c['allow_email_otp']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')}
</option> </option>
</select> </select>
</div> </div>
@ -692,6 +709,19 @@
<p class="help-block col-md-4"> <p class="help-block col-md-4">
{Lang::T('If user buy same internet plan, expiry date will extend')}</p> {Lang::T('If user buy same internet plan, expiry date will extend')}</p>
</div> </div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Show Bandwidth Plan')}</label>
<div class="col-md-6">
<select name="show_bandwidth_plan" id="show_bandwidth_plan" class="form-control">
<option value="no" {if $_c['show_bandwidth_plan']=='no' }selected="selected" {/if}>
{Lang::T('No')}</option>
<option value="yes" {if $_c['show_bandwidth_plan']=='yes' }selected="selected" {/if}>
{Lang::T('Yes')}</option>
</select>
</div>
<p class="help-block col-md-4">
{Lang::T(' for Customer')}</p>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Hotspot Auth Method')}</label> <label class="col-md-2 control-label">{Lang::T('Hotspot Auth Method')}</label>
<div class="col-md-6"> <div class="col-md-6">
@ -919,4 +949,4 @@ add dst-host=*.{$_domain}</pre>
document.getElementById("tax_rate").addEventListener("change", toggleCustomTaxRate); document.getElementById("tax_rate").addEventListener("change", toggleCustomTaxRate);
}); });
</script> </script>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -42,6 +42,10 @@
class="pull-right">{if $plan['prepaid'] eq 'yes'}Prepaid{else}Postpaid{/if} class="pull-right">{if $plan['prepaid'] eq 'yes'}Prepaid{else}Postpaid{/if}
{$plan['type']}</span> {$plan['type']}</span>
</li> </li>
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload/bw_name/{$plan['id_bw']}"></td>
</tr>
<li class="list-group-item"> <li class="list-group-item">
<b>{Lang::T('Plan Price')}</b> <span <b>{Lang::T('Plan Price')}</b> <span
class="pull-right">{if $using eq 'zero'}{Lang::moneyFormat(0)}{else}{Lang::moneyFormat($plan['price'])}{/if}</span> class="pull-right">{if $using eq 'zero'}{Lang::moneyFormat(0)}{else}{Lang::moneyFormat($plan['price'])}{/if}</span>

View File

@ -4,52 +4,52 @@
<div class="row"> <div class="row">
<div class="col col-md-6 col-md-push-6"> <div class="col col-md-6 col-md-push-6">
{if $unpaid } {if $unpaid }
<div class="box box-danger box-solid"> <div class="box box-danger box-solid">
<div class="box-header"> <div class="box-header">
<h3 class="box-title">{Lang::T('Unpaid Order')}</h3> <h3 class="box-title">{Lang::T('Unpaid Order')}</h3>
</div>
<div style="margin-left: 5px; margin-right: 5px;">
<table class="table table-condensed table-bordered table-striped table-hover"
style="margin-bottom: 0px;">
<tbody>
<tr>
<td>{Lang::T('expired')}</td>
<td>{Lang::dateTimeFormat($unpaid['expired_date'])} </td>
</tr>
<tr>
<td>{Lang::T('Plan Name')}</td>
<td>{$unpaid['plan_name']}</td>
</tr>
<tr>
<td>{Lang::T('Plan Price')}</td>
<td>{$unpaid['price']}</td>
</tr>
<tr>
<td>{Lang::T('Routers')}</td>
<td>{$unpaid['routers']}</td>
</tr>
</tbody>
</table> &nbsp;
</div>
<div class="box-footer p-2">
<div class="btn-group btn-group-justified mb15">
<div class="btn-group">
<a href="{$_url}order/view/{$unpaid['id']}/cancel" class="btn btn-danger btn-sm"
onclick="return confirm('{Lang::T('Cancel it?')}')">
<span class="glyphicon glyphicon-trash"></span>
{Lang::T('Cancel')}
</a>
</div>
<div class="btn-group">
<a class="btn btn-success btn-block btn-sm" href="{$_url}order/view/{$unpaid['id']}">
<span class="icon"><i class="ion ion-card"></i></span>
<span>{Lang::T('PAY NOW')}</span>
</a>
</div>
</div> </div>
<div style="margin-left: 5px; margin-right: 5px;">
<table class="table table-condensed table-bordered table-striped table-hover"
style="margin-bottom: 0px;">
<tbody>
<tr>
<td>{Lang::T('expired')}</td>
<td>{Lang::dateTimeFormat($unpaid['expired_date'])} </td>
</tr>
<tr>
<td>{Lang::T('Plan Name')}</td>
<td>{$unpaid['plan_name']}</td>
</tr>
<tr>
<td>{Lang::T('Plan Price')}</td>
<td>{$unpaid['price']}</td>
</tr>
<tr>
<td>{Lang::T('Routers')}</td>
<td>{$unpaid['routers']}</td>
</tr>
</tbody>
</table> &nbsp;
</div>
<div class="box-footer p-2">
<div class="btn-group btn-group-justified mb15">
<div class="btn-group">
<a href="{$_url}order/view/{$unpaid['id']}/cancel" class="btn btn-danger btn-sm"
onclick="return confirm('{Lang::T('Cancel it?')}')">
<span class="glyphicon glyphicon-trash"></span>
{Lang::T('Cancel')}
</a>
</div>
<div class="btn-group">
<a class="btn btn-success btn-block btn-sm" href="{$_url}order/view/{$unpaid['id']}">
<span class="icon"><i class="ion ion-card"></i></span>
<span>{Lang::T('PAY NOW')}</span>
</a>
</div>
</div>
</div>&nbsp;&nbsp; </div>&nbsp;&nbsp;
</div> </div>
{/if} {/if}
<div class="box box-info box-solid"> <div class="box box-info box-solid">
<div class="box-header"> <div class="box-header">
@ -58,7 +58,7 @@
<div class="box-body"> <div class="box-body">
{$Announcement_Customer = "{$PAGES_PATH}/Announcement_Customer.html"} {$Announcement_Customer = "{$PAGES_PATH}/Announcement_Customer.html"}
{if file_exists($Announcement_Customer)} {if file_exists($Announcement_Customer)}
{include file=$Announcement_Customer} {include file=$Announcement_Customer}
{/if} {/if}
</div> </div>
</div> </div>
@ -85,130 +85,132 @@
<td class="small text-success text-uppercase text-normal">{Lang::T('Service Type')}</td> <td class="small text-success text-uppercase text-normal">{Lang::T('Service Type')}</td>
<td class="small mb15"> <td class="small mb15">
{if $_user.service_type == 'Hotspot'} {if $_user.service_type == 'Hotspot'}
Hotspot Hotspot
{elseif $_user.service_type == 'PPPoE'} {elseif $_user.service_type == 'PPPoE'}
PPPoE PPPoE
{elseif $_user.service_type == 'VPN'} {elseif $_user.service_type == 'VPN'}
VPN VPN
{elseif $_user.service_type == 'Others' || $_user.service_type == null} {elseif $_user.service_type == 'Others' || $_user.service_type == null}
Others Others
{/if} {/if}
</td> </td>
</tr> </tr>
{if $_c['enable_balance'] == 'yes'} {if $_c['enable_balance'] == 'yes'}
<tr> <tr>
<td class="small text-warning text-uppercase text-normal">{Lang::T('Balance')}</td> <td class="small text-warning text-uppercase text-normal">{Lang::T('Balance')}</td>
<td class="small mb15 text-bold"> <td class="small mb15 text-bold">
{Lang::moneyFormat($_user['balance'])} {Lang::moneyFormat($_user['balance'])}
{if $_user['auto_renewal'] == 1} {if $_user['auto_renewal'] == 1}
<a class="label label-success pull-right" href="{$_url}home&renewal=0" <a class="label label-success pull-right" href="{$_url}home&renewal=0"
onclick="return confirm('{Lang::T('Disable auto renewal?')}')">{Lang::T('Auto Renewal onclick="return confirm('{Lang::T('Disable auto renewal?')}')">{Lang::T('Auto Renewal
On')}</a> On')}</a>
{else} {else}
<a class="label label-danger pull-right" href="{$_url}home&renewal=1" <a class="label label-danger pull-right" href="{$_url}home&renewal=1"
onclick="return confirm('{Lang::T('Enable auto renewal?')}')">{Lang::T('Auto Renewal onclick="return confirm('{Lang::T('Enable auto renewal?')}')">{Lang::T('Auto Renewal
Off')}</a> Off')}</a>
{/if} {/if}
</td> </td>
</tr> </tr>
{/if} {/if}
</table>&nbsp;&nbsp; </table>&nbsp;&nbsp;
</div> </div>
{if $abills && count($abills)>0} {if $abills && count($abills)>0}
<div class="box-header"> <div class="box-header">
<h3 class="box-title">{Lang::T('Additional Billing')}</h3> <h3 class="box-title">{Lang::T('Additional Billing')}</h3>
</div> </div>
<div style="margin-left: 5px; margin-right: 5px;"> <div style="margin-left: 5px; margin-right: 5px;">
<table class="table table-bordered table-striped table-bordered table-hover mb-0" <table class="table table-bordered table-striped table-bordered table-hover mb-0"
style="margin-bottom: 0px;"> style="margin-bottom: 0px;">
{assign var="total" value=0} {assign var="total" value=0}
{foreach $abills as $k => $v} {foreach $abills as $k => $v}
<tr> <tr>
<td class="small text-success text-uppercase text-normal">{str_replace(' Bill', '', $k)}</td> <td class="small text-success text-uppercase text-normal">{str_replace(' Bill', '', $k)}</td>
<td class="small mb15"> <td class="small mb15">
{if strpos($v, ':') === false} {if strpos($v, ':') === false}
{Lang::moneyFormat($v)} {Lang::moneyFormat($v)}
<sup title="recurring">∞</sup> <sup title="recurring">∞</sup>
{assign var="total" value=$v+$total} {assign var="total" value=$v+$total}
{else} {else}
{assign var="exp" value=explode(':',$v)} {assign var="exp" value=explode(':',$v)}
{Lang::moneyFormat($exp[0])} {Lang::moneyFormat($exp[0])}
<sup title="{$exp[1]} more times">{if $exp[1]==0}{Lang::T('paid <sup title="{$exp[1]} more times">{if $exp[1]==0}{Lang::T('paid
off')}{else}{$exp[1]}x{/if}</sup> off')}{else}{$exp[1]}x{/if}</sup>
{if $exp[1]>0} {if $exp[1]>0}
{assign var="total" value=$exp[0]+$total} {assign var="total" value=$exp[0]+$total}
{/if} {/if}
{/if} {/if}
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
<tr> <tr>
<td class="small text-success text-uppercase text-normal"><b>{Lang::T('Total')}</b></td> <td class="small text-success text-uppercase text-normal"><b>{Lang::T('Total')}</b></td>
<td class="small mb15"><b> <td class="small mb15"><b>
{if $total==0} {if $total==0}
{ucwords(Lang::T('paid off'))} {ucwords(Lang::T('paid off'))}
{else} {else}
{Lang::moneyFormat($total)} {Lang::moneyFormat($total)}
{/if} {/if}
</b></td> </b></td>
</tr> </tr>
</table> </table>
</div> &nbsp;&nbsp; </div> &nbsp;&nbsp;
{/if} {/if}
</div> </div>
{if $_bills} {if $_bills}
<div class="box box-primary box-solid"> <div class="box box-primary box-solid">
{foreach $_bills as $_bill} {foreach $_bills as $_bill}
{if $_bill['routers'] != 'radius'} {if $_bill['routers'] != 'radius'}
<div class="box-header"> <div class="box-header">
<h3 class="box-title">{$_bill['routers']}</h3> <h3 class="box-title">{$_bill['routers']}</h3>
<div class="btn-group pull-right"> <div class="btn-group pull-right">
{if $_bill['type'] == 'Hotspot'} {if $_bill['type'] == 'Hotspot'}
{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if} {if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
{else if $_bill['type'] == 'PPPOE'} {else if $_bill['type'] == 'PPPOE'}
{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if} {if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}
{else if $_bill['type'] == 'VPN'} {else if $_bill['type'] == 'VPN'}
{if $_c['pppoe_plan']==''}VPN Plan{else}{$_c['vpn_plan']}{/if} {if $_c['pppoe_plan']==''}VPN Plan{else}{$_c['vpn_plan']}{/if}
{/if}
</div>
</div>
{else}
<div class="box-header">
<h3 class="box-title">{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</h3>
</div>
{/if} {/if}
</div> <div style="margin-left: 5px; margin-right: 5px;">
</div> <table class="table table-bordered table-striped table-bordered table-hover"
{else} style="margin-bottom: 0px;">
<div class="box-header"> <tr>
<h3 class="box-title">{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</h3> <td class="small text-primary text-uppercase text-normal">{Lang::T('Plan Name')}</td>
</div> <td class="small mb15">
{/if} {$_bill['namebp']}
<div style="margin-left: 5px; margin-right: 5px;"> {if $_bill['status'] != 'on'}
<table class="table table-bordered table-striped table-bordered table-hover" <a class="label label-danger pull-right"
style="margin-bottom: 0px;"> href="{$_url}order/package">{Lang::T('expired')}</a>
<tr> {/if}
<td class="small text-primary text-uppercase text-normal">{Lang::T('Plan Name')}</td> </td>
<td class="small mb15"> </tr>
{$_bill['namebp']} {if $_c['show_bandwidth_plan'] == 'yes'}
{if $_bill['status'] != 'on'} <tr>
<a class="label label-danger pull-right" <td class="small text-primary text-uppercase text-normal">{Lang::T('Bandwidth')}</td>
href="{$_url}order/package">{Lang::T('expired')}</a> <td class="small mb15">
{$_bill['name_bw']}
</td>
</tr>
{/if} {/if}
</td> <tr>
</tr> <td class="small text-info text-uppercase text-normal">{Lang::T('Created On')}</td>
<tr> <td class="small mb15">
<td class="small text-primary text-uppercase text-normal">{Lang::T('Bandwidth')}</td> {if $_bill['time'] ne
<td class="small mb15"> ''}{Lang::dateAndTimeFormat($_bill['recharged_on'],$_bill['recharged_time'])}
{$_bill['name_bw']} {/if}&nbsp;</td>
</td> </tr>
</tr> <tr>
<tr> <td class="small text-danger text-uppercase text-normal">{Lang::T('Expires On')}</td>
<td class="small text-info text-uppercase text-normal">{Lang::T('Created On')}</td> <td class="small mb15 text-danger">
<td class="small mb15"> {if $_bill['time'] ne
{if $_bill['time'] ne
''}{Lang::dateAndTimeFormat($_bill['recharged_on'],$_bill['recharged_time'])}
{/if}&nbsp;</td>
</tr>
<tr>
<td class="small text-danger text-uppercase text-normal">{Lang::T('Expires On')}</td>
<td class="small mb15 text-danger">
{if $_bill['time'] ne
''}{Lang::dateAndTimeFormat($_bill['expiration'],$_bill['time'])}{/if}&nbsp; ''}{Lang::dateAndTimeFormat($_bill['expiration'],$_bill['time'])}{/if}&nbsp;
</td> </td>
</tr> </tr>
@ -219,36 +221,37 @@
{$_bill['plan_type']} {$_bill['plan_type']}
</td> </td>
</tr> </tr>
{if $_bill['type'] == 'VPN' && $_bill['routers'] == $vpn['routers']} {if $_bill['type'] == 'VPN' && $_bill['routers'] == $vpn['routers']}
<tr> <tr>
<td class="small text-success text-uppercase text-normal">{Lang::T('Public IP')}</td> <td class="small text-success text-uppercase text-normal">{Lang::T('Public IP')}</td>
<td class="small mb15">{$vpn['public_ip']} / {$vpn['port_name']}</td> <td class="small mb15">{$vpn['public_ip']} / {$vpn['port_name']}</td>
</tr> </tr>
<tr> <tr>
<td class="small text-success text-uppercase text-normal">{Lang::T('Private IP')}</td> <td class="small text-success text-uppercase text-normal">{Lang::T('Private IP')}</td>
<td class="small mb15">{$_user['pppoe_ip']}</td> <td class="small mb15">{$_user['pppoe_ip']}</td>
</tr> </tr>
{foreach $cf as $tcf} {foreach $cf as $tcf}
<tr> <tr>
{if $tcf['field_name'] == 'Winbox' or $tcf['field_name'] == 'Api' or $tcf['field_name'] == 'Web'} {if $tcf['field_name'] == 'Winbox' or $tcf['field_name'] == 'Api' or $tcf['field_name'] == 'Web'}
<td class="small text-info text-uppercase text-normal">{$tcf['field_name']} - Port</td> <td class="small text-info text-uppercase text-normal">{$tcf['field_name']} - Port</td>
<td class="small mb15"><a href="http://{$vpn['public_ip']}:{$tcf['field_value']}" target="_blank">{$tcf['field_value']}</a></td> <td class="small mb15"><a href="http://{$vpn['public_ip']}:{$tcf['field_value']}"
</tr> target="_blank">{$tcf['field_value']}</a></td>
{/if} </tr>
{/foreach} {/if}
{/if} {/foreach}
{/if}
{if $nux_ip neq ''} {if $nux_ip neq ''}
<tr> <tr>
<td class="small text-primary text-uppercase text-normal">{Lang::T('Current IP')}</td> <td class="small text-primary text-uppercase text-normal">{Lang::T('Current IP')}</td>
<td class="small mb15">{$nux_ip}</td> <td class="small mb15">{$nux_ip}</td>
</tr> </tr>
{/if} {/if}
{if $nux_mac neq ''} {if $nux_mac neq ''}
<tr> <tr>
<td class="small text-primary text-uppercase text-normal">{Lang::T('Current MAC')}</td> <td class="small text-primary text-uppercase text-normal">{Lang::T('Current MAC')}</td>
<td class="small mb15">{$nux_mac}</td> <td class="small mb15">{$nux_mac}</td>
</tr> </tr>
{/if} {/if}
{if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_bill['routers'] != 'radius' && {if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_bill['routers'] != 'radius' &&
$_c['hs_auth_method'] != 'hchap'} $_c['hs_auth_method'] != 'hchap'}
@ -260,34 +263,34 @@
</tr> </tr>
{/if} {/if}
{if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_c['hs_auth_method'] == 'hchap'} {if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_c['hs_auth_method'] == 'hchap'}
<tr> <tr>
<td class="small text-primary text-uppercase text-normal">{Lang::T('Login Status')}</td> <td class="small text-primary text-uppercase text-normal">{Lang::T('Login Status')}</td>
<td class="small mb15"> <td class="small mb15">
{if $logged == '1'} {if $logged == '1'}
<a href="http://{$hostname}/status" class="btn btn-success btn-xs btn-block">{Lang::T('You <a href="http://{$hostname}/status" class="btn btn-success btn-xs btn-block">{Lang::T('You
are are
Online, Check Status')}</a> Online, Check Status')}</a>
{else} {else}
<a href="{$_url}home&mikrotik=login" <a href="{$_url}home&mikrotik=login"
onclick="return confirm('{Lang::T('Connect to Internet')}')" onclick="return confirm('{Lang::T('Connect to Internet')}')"
class="btn btn-danger btn-xs btn-block">{Lang::T('Not Online, Login now?')}</a> class="btn btn-danger btn-xs btn-block">{Lang::T('Not Online, Login now?')}</a>
{/if} {/if}
</td> </td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td class="small text-primary text-uppercase text-normal"> <td class="small text-primary text-uppercase text-normal">
{if $_bill['status'] == 'on'} {if $_bill['status'] == 'on'}
<a href="{$_url}home&deactivate={$_bill['id']}" <a href="{$_url}home&deactivate={$_bill['id']}"
onclick="return confirm('{Lang::T('Deactivate')}?')" class="btn btn-danger btn-xs"><i onclick="return confirm('{Lang::T('Deactivate')}?')" class="btn btn-danger btn-xs"><i
class="glyphicon glyphicon-trash"></i></a> class="glyphicon glyphicon-trash"></i></a>
{/if} {/if}
</td> </td>
<td class="small row"> <td class="small row">
{if $_bill['status'] != 'on' && $_bill['prepaid'] != 'yes' && $_c['extend_expired']} {if $_bill['status'] != 'on' && $_bill['prepaid'] != 'yes' && $_c['extend_expired']}
<a class="btn btn-warning text-black btn-sm" <a class="btn btn-warning text-black btn-sm"
href="{$_url}home&extend={$_bill['id']}&stoken={App::getToken()}" href="{$_url}home&extend={$_bill['id']}&stoken={App::getToken()}"
onclick="return confirm('{Text::toHex($_c['extend_confirmation'])}')">{Lang::T('Extend')}</a> onclick="return confirm('{Text::toHex($_c['extend_confirmation'])}')">{Lang::T('Extend')}</a>
{/if} {/if}
<a class="btn btn-primary pull-right btn-sm" <a class="btn btn-primary pull-right btn-sm"
href="{$_url}home&recharge={$_bill['id']}&stoken={App::getToken()}" href="{$_url}home&recharge={$_bill['id']}&stoken={App::getToken()}"
@ -307,137 +310,137 @@
</div> </div>
{/if} {/if}
{if $_c['disable_voucher'] == 'yes'} {if $_c['disable_voucher'] == 'yes'}
<div class="box-footer"> <div class="box-footer">
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' } {if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
<a href="{$_url}order/package" class="btn btn-primary btn-block"> <a href="{$_url}order/package" class="btn btn-primary btn-block">
<i class="ion ion-ios-cart"></i> <i class="ion ion-ios-cart"></i>
{Lang::T('Order Package')} {Lang::T('Order Package')}
</a> </a>
{/if} {/if}
</div> </div>
{/if} {/if}
{if $_bills} {if $_bills}
{foreach $_bills as $_bill} {foreach $_bills as $_bill}
{if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_c['hs_auth_method'] != 'hchap'} {if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on' && $_c['hs_auth_method'] != 'hchap'}
<script> <script>
setTimeout(() => { setTimeout(() => {
$.ajax({ $.ajax({
url: "index.php?_route=autoload_user/isLogin/{$_bill['id']}", url: "index.php?_route=autoload_user/isLogin/{$_bill['id']}",
cache: false, cache: false,
success: function (msg) { success: function(msg) {
$("#login_status_{$_bill['id']}").html(msg); $("#login_status_{$_bill['id']}").html(msg);
} }
}); });
}, 2000); }, 2000);
</script> </script>
{/if} {/if}
{/foreach} {/foreach}
{/if} {/if}
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes'} {if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes'}
<div class="box box-primary box-solid mb30"> <div class="box box-primary box-solid mb30">
<div class="box-header"> <div class="box-header">
<h4 class="box-title">{Lang::T("Transfer Balance")}</h4> <h4 class="box-title">{Lang::T("Transfer Balance")}</h4>
</div> </div>
<div class="box-body p-0"> <div class="box-body p-0">
<form method="post" onsubmit="return askConfirm()" role="form" action="{$_url}home"> <form method="post" onsubmit="return askConfirm()" role="form" action="{$_url}home">
<div class="form-group"> <div class="form-group">
<div class="col-sm-5"> <div class="col-sm-5">
<input type="text" id="username" name="username" class="form-control" required <input type="text" id="username" name="username" class="form-control" required
placeholder="{Lang::T('Username')}"> placeholder="{Lang::T('Username')}">
</div>
<div class="col-sm-5">
<input type="number" id="balance" name="balance" autocomplete="off" class="form-control"
required placeholder="{Lang::T('Balance')}">
</div>
<div class="form-group col-sm-2" align="center">
<button class="btn btn-success btn-block" id="sendBtn" type="submit" name="send"
onclick="return confirm('{Lang::T(" Are You Sure?")}')" value="balance"><i
class="glyphicon glyphicon-send"></i></button>
</div>
</div> </div>
<div class="col-sm-5"> </form>
<input type="number" id="balance" name="balance" autocomplete="off" class="form-control" <script>
required placeholder="{Lang::T('Balance')}"> function askConfirm() {
</div> if (confirm('{Lang::T('Send your balance ? ')}')) {
<div class="form-group col-sm-2" align="center">
<button class="btn btn-success btn-block" id="sendBtn" type="submit" name="send"
onclick="return confirm('{Lang::T(" Are You Sure?")}')" value="balance"><i
class="glyphicon glyphicon-send"></i></button>
</div>
</div>
</form>
<script>
function askConfirm() {
if (confirm('{Lang::T('Send your balance ? ')}')) {
setTimeout(() => { setTimeout(() => {
document.getElementById('sendBtn').setAttribute('disabled', ''); document.getElementById('sendBtn').setAttribute('disabled', '');
}, 1000); }, 1000);
return true; return true;
} }
return false; return false;
} }
</script> </script>
</div> </div>
<div class="box-header"> <div class="box-header">
<h4 class="box-title">{Lang::T("Recharge a friend")}</h4> <h4 class="box-title">{Lang::T("Recharge a friend")}</h4>
</div> </div>
<div class="box-body p-0"> <div class="box-body p-0">
<form method="post" role="form" action="{$_url}home"> <form method="post" role="form" action="{$_url}home">
<div class="form-group"> <div class="form-group">
<div class="col-sm-10"> <div class="col-sm-10">
<input type="text" id="username" name="username" class="form-control" required <input type="text" id="username" name="username" class="form-control" required
placeholder="{Lang::T('Username')}"> placeholder="{Lang::T('Username')}">
</div>
<div class="form-group col-sm-2" align="center">
<button class="btn btn-success btn-block" id="sendBtn" type="submit" name="send"
onclick="return confirm('{Lang::T(" Are You Sure?")}')" value="plan"><i
class="glyphicon glyphicon-send"></i></button>
</div>
</div> </div>
<div class="form-group col-sm-2" align="center"> </form>
<button class="btn btn-success btn-block" id="sendBtn" type="submit" name="send" </div>
onclick="return confirm('{Lang::T(" Are You Sure?")}')" value="plan"><i
class="glyphicon glyphicon-send"></i></button>
</div>
</div>
</form>
</div> </div>
</div>
{/if} {/if}
<br> <br>
{if $_c['disable_voucher'] != 'yes'} {if $_c['disable_voucher'] != 'yes'}
<div class="box box-primary box-solid mb30"> <div class="box box-primary box-solid mb30">
<div class="box-header"> <div class="box-header">
<h3 class="box-title">{Lang::T('Voucher Activation')}</h3> <h3 class="box-title">{Lang::T('Voucher Activation')}</h3>
</div> </div>
<div class="box-body"> <div class="box-body">
<form method="post" role="form" class="form-horizontal" action="{$_url}voucher/activation-post"> <form method="post" role="form" class="form-horizontal" action="{$_url}voucher/activation-post">
<div class="input-group"> <div class="input-group">
<span class="input-group-btn"> <span class="input-group-btn">
<a class="btn btn-default" href="{APP_URL}/scan/?back={urlencode($_url)}{urlencode(" <a class="btn btn-default" href="{APP_URL}/scan/?back={urlencode($_url)}{urlencode("
home&code=")}"><i class="glyphicon glyphicon-qrcode"></i></a> home&code=")}"><i class="glyphicon glyphicon-qrcode"></i></a>
</span> </span>
<input type="text" id="code" name="code" class="form-control" <input type="text" id="code" name="code" class="form-control"
placeholder="{Lang::T('Enter voucher code here')}" value="{$code}"> placeholder="{Lang::T('Enter voucher code here')}" value="{$code}">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-primary" type="submit">{Lang::T('Recharge')}</button> <button class="btn btn-primary" type="submit">{Lang::T('Recharge')}</button>
</span> </span>
</div>
</form>
</div>
<div class="box-body">
<div class="btn-group btn-group-justified" role="group">
<a class="btn btn-default" href="{$_url}voucher/activation">
<i class="ion ion-ios-cart"></i>
{Lang::T('Order Voucher')}
</a>
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
<a href="{$_url}order/package" class="btn btn-default">
<i class="ion ion-ios-cart"></i>
{Lang::T('Order Package')}
</a>
{/if}
</div> </div>
</form>
</div>
<div class="box-body">
<div class="btn-group btn-group-justified" role="group">
<a class="btn btn-default" href="{$_url}voucher/activation">
<i class="ion ion-ios-cart"></i>
{Lang::T('Order Voucher')}
</a>
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
<a href="{$_url}order/package" class="btn btn-default">
<i class="ion ion-ios-cart"></i>
{Lang::T('Order Package')}
</a>
{/if}
</div> </div>
</div> </div>
</div>
{/if} {/if}
</div> </div>
</div> </div>
{if isset($hostname) && $hchap == 'true' && $_c['hs_auth_method'] == 'hchap'} {if isset($hostname) && $hchap == 'true' && $_c['hs_auth_method'] == 'hchap'}
<script type="text/javascript" src="/ui/ui/scripts/md5.js"></script> <script type="text/javascript" src="/ui/ui/scripts/md5.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var hostname = "http://{$hostname}/login"; var hostname = "http://{$hostname}/login";
var user = "{$_user['username']}"; var user = "{$_user['username']}";
var pass = "{$_user['password']}"; var pass = "{$_user['password']}";
var dst = "{$apkurl}"; var dst = "{$apkurl}";
var authdly = "2"; var authdly = "2";
var key = hexMD5('{$key1}' + pass + '{$key2}'); var key = hexMD5('{$key1}' + pass + '{$key2}');
var auth = hostname + '?username=' + user + '&dst=' + dst + '&password=' + key; var auth = hostname + '?username=' + user + '&dst=' + dst + '&password=' + key;
document.write('<meta http-equiv="refresh" target="_blank" content="' + authdly + '; url=' + auth + '">'); document.write('<meta http-equiv="refresh" target="_blank" content="' + authdly + '; url=' + auth + '">');
</script> </script>
{/if} {/if}
{include file="user-ui/footer.tpl"} {include file="user-ui/footer.tpl"}

View File

@ -25,6 +25,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -83,6 +89,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -142,6 +154,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -199,6 +217,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -268,6 +292,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -324,6 +354,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -380,6 +416,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -440,6 +482,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -494,6 +542,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}
@ -548,6 +602,12 @@
<td>{Lang::T('Type')}</td> <td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td> <td>{$plan['type']}</td>
</tr> </tr>
{if $_c['show_bandwidth_plan'] == 'yes'}
<tr>
<td>{Lang::T('Bandwidth')}</td>
<td api-get-text="{$_url}autoload_user/bw_name/{$plan['id_bw']}"></td>
</tr>
{/if}
<tr> <tr>
<td>{Lang::T('Price')}</td> <td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])} <td>{Lang::moneyFormat($plan['price'])}