show bandwidth plan
This commit is contained in:
parent
a51462ef1a
commit
6462572fb8
@ -28,7 +28,10 @@ switch ($action) {
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('autoload-pool.tpl');
|
||||
break;
|
||||
|
||||
case 'bw_name':
|
||||
$bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']);
|
||||
echo $bw['name_bw'];
|
||||
die();
|
||||
case 'server':
|
||||
$d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many();
|
||||
$ui->assign('d', $d);
|
||||
|
@ -45,6 +45,10 @@ switch ($action) {
|
||||
die('--');
|
||||
}
|
||||
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':
|
||||
$count = ORM::for_table('tbl_customers_inbox')->where('customer_id', $user['id'])->whereRaw('date_read is null')->count('id');
|
||||
if ($count > 0) {
|
||||
|
@ -62,7 +62,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<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">
|
||||
<input type="number" required class="form-control" id="printer_cols" placeholder="37"
|
||||
name="printer_cols" value="{$_c['printer_cols']}">
|
||||
@ -73,7 +74,8 @@
|
||||
<label class="col-md-2 control-label">{Lang::T('Theme')}</label>
|
||||
<div class="col-md-6">
|
||||
<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>
|
||||
{foreach $themes as $theme}
|
||||
<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>
|
||||
<div class="col-md-6">
|
||||
<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 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>
|
||||
</select>
|
||||
</div>
|
||||
@ -184,7 +188,8 @@
|
||||
<label class="col-md-2 control-label">{Lang::T('Disable Registration')}</label>
|
||||
<div class="col-md-6">
|
||||
<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 value="yes" {if $_c['disable_registration']=='yes' }selected="selected" {/if}>
|
||||
{Lang::T('Yes')}
|
||||
@ -220,7 +225,8 @@
|
||||
<div class="col-md-6">
|
||||
<select name="radius_enable" id="radius_enable" class="form-control text-muted">
|
||||
<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>
|
||||
</div>
|
||||
<p class="help-block col-md-4"><a
|
||||
@ -241,7 +247,8 @@
|
||||
<div class="col-md-6">
|
||||
<select name="extend_expired" id="extend_expired" class="form-control text-muted">
|
||||
<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>
|
||||
</div>
|
||||
<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>
|
||||
<div class="col-md-6">
|
||||
<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 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>
|
||||
</select>
|
||||
</div>
|
||||
@ -331,7 +340,8 @@
|
||||
</div>
|
||||
<div class="panel-heading">
|
||||
<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
|
||||
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
|
||||
</div>
|
||||
@ -365,7 +375,8 @@
|
||||
</p>
|
||||
</div>
|
||||
<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 class="panel-heading">
|
||||
<div class="btn-group pull-right">
|
||||
@ -386,11 +397,13 @@
|
||||
{Lang::T('it will be replaced.')}
|
||||
</div>
|
||||
<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 class="panel-heading">
|
||||
<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
|
||||
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
|
||||
</div>
|
||||
@ -546,7 +559,8 @@
|
||||
<label class="col-md-2 control-label">{Lang::T('Access Token')}</label>
|
||||
<div class="col-md-6">
|
||||
<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'">
|
||||
</div>
|
||||
<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 class="panel-heading">
|
||||
<div class="panel-heading" id="miscellaneous">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn btn-primary btn-xs" title="save" type="submit"><span
|
||||
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>
|
||||
<div class="col-md-6">
|
||||
<select name="router_check" id="router_check" class="form-control">
|
||||
<option value="0" {if $_c['router_check']=='0' }selected="selected"
|
||||
{/if}>{Lang::T('Disabled')}
|
||||
<option value="0" {if $_c['router_check']=='0' }selected="selected" {/if}>
|
||||
{Lang::T('Disabled')}
|
||||
</option>
|
||||
<option value="1" {if $_c['router_check']=='1' }selected="selected"
|
||||
{/if}>{Lang::T('Enabled')}
|
||||
<option value="1" {if $_c['router_check']=='1' }selected="selected" {/if}>
|
||||
{Lang::T('Enabled')}
|
||||
</option>
|
||||
</select>
|
||||
</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>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@ -642,7 +657,8 @@
|
||||
<select name="allow_phone_otp" id="allow_phone_otp" class="form-control">
|
||||
<option value="no" {if $_c['allow_phone_otp']=='no' }selected="selected" {/if}>
|
||||
{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>
|
||||
</select>
|
||||
</div>
|
||||
@ -671,7 +687,8 @@
|
||||
<select name="allow_email_otp" id="allow_email_otp" class="form-control">
|
||||
<option value="no" {if $_c['allow_email_otp']=='no' }selected="selected" {/if}>
|
||||
{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>
|
||||
</select>
|
||||
</div>
|
||||
@ -692,6 +709,19 @@
|
||||
<p class="help-block col-md-4">
|
||||
{Lang::T('If user buy same internet plan, expiry date will extend')}</p>
|
||||
</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">
|
||||
<label class="col-md-2 control-label">{Lang::T('Hotspot Auth Method')}</label>
|
||||
<div class="col-md-6">
|
||||
|
@ -42,6 +42,10 @@
|
||||
class="pull-right">{if $plan['prepaid'] eq 'yes'}Prepaid{else}Postpaid{/if}
|
||||
{$plan['type']}</span>
|
||||
</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">
|
||||
<b>{Lang::T('Plan Price')}</b> <span
|
||||
class="pull-right">{if $using eq 'zero'}{Lang::moneyFormat(0)}{else}{Lang::moneyFormat($plan['price'])}{/if}</span>
|
||||
|
@ -192,12 +192,14 @@
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $_c['show_bandwidth_plan'] == 'yes'}
|
||||
<tr>
|
||||
<td class="small text-primary text-uppercase text-normal">{Lang::T('Bandwidth')}</td>
|
||||
<td class="small mb15">
|
||||
{$_bill['name_bw']}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td class="small text-info text-uppercase text-normal">{Lang::T('Created On')}</td>
|
||||
<td class="small mb15">
|
||||
@ -232,7 +234,8 @@
|
||||
<tr>
|
||||
{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 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']}"
|
||||
target="_blank">{$tcf['field_value']}</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
@ -25,6 +25,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -83,6 +89,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -142,6 +154,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -199,6 +217,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -268,6 +292,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -324,6 +354,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -380,6 +416,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -440,6 +482,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -494,6 +542,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
@ -548,6 +602,12 @@
|
||||
<td>{Lang::T('Type')}</td>
|
||||
<td>{$plan['type']}</td>
|
||||
</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>
|
||||
<td>{Lang::T('Price')}</td>
|
||||
<td>{Lang::moneyFormat($plan['price'])}
|
||||
|
Loading…
x
Reference in New Issue
Block a user