Merge branch 'Development'
This commit is contained in:
commit
e710bd2862
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2024.2.21
|
||||||
|
|
||||||
|
- Fix SQL Installer
|
||||||
|
- remove multiple space in language
|
||||||
|
- Change Phone Number require OTP by @Focuslinkstech
|
||||||
|
- Change burst Form
|
||||||
|
- Delete Table Responsive, first Column Freeze
|
||||||
|
|
||||||
## 2024.2.20
|
## 2024.2.20
|
||||||
|
|
||||||
- Fix list admin
|
- Fix list admin
|
||||||
|
@ -12,6 +12,7 @@ class Lang
|
|||||||
{
|
{
|
||||||
global $_L, $lan_file, $config;
|
global $_L, $lan_file, $config;
|
||||||
$_L = $_SESSION['Lang'];
|
$_L = $_SESSION['Lang'];
|
||||||
|
$key = preg_replace('/\s+/', ' ', $key);
|
||||||
if (!empty($_L[$key])) {
|
if (!empty($_L[$key])) {
|
||||||
return $_L[$key];
|
return $_L[$key];
|
||||||
}
|
}
|
||||||
|
@ -42,17 +42,17 @@ switch ($action) {
|
|||||||
$c = ORM::for_table('tbl_user_recharges')->where('username', $user['username'])->find_one();
|
$c = ORM::for_table('tbl_user_recharges')->where('username', $user['username'])->find_one();
|
||||||
if ($c) {
|
if ($c) {
|
||||||
$p = ORM::for_table('tbl_plans')->where('id', $c['plan_id'])->find_one();
|
$p = ORM::for_table('tbl_plans')->where('id', $c['plan_id'])->find_one();
|
||||||
if($p['is_radius']){
|
if ($p['is_radius']) {
|
||||||
if($c['type'] == 'Hotspot' || ($c['type'] == 'PPPOE' && empty($d['pppoe_password']))){
|
if ($c['type'] == 'Hotspot' || ($c['type'] == 'PPPOE' && empty($d['pppoe_password']))) {
|
||||||
Radius::customerUpsert($d, $p);
|
Radius::customerUpsert($d, $p);
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
$mikrotik = Mikrotik::info($c['routers']);
|
$mikrotik = Mikrotik::info($c['routers']);
|
||||||
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
||||||
if ($c['type'] == 'Hotspot') {
|
if ($c['type'] == 'Hotspot') {
|
||||||
Mikrotik::setHotspotUser($client, $c['username'], $npass);
|
Mikrotik::setHotspotUser($client, $c['username'], $npass);
|
||||||
Mikrotik::removeHotspotActiveUser($client, $user['username']);
|
Mikrotik::removeHotspotActiveUser($client, $user['username']);
|
||||||
} else if(empty($d['pppoe_password'])){
|
} else if (empty($d['pppoe_password'])) {
|
||||||
// only change when pppoe_password empty
|
// only change when pppoe_password empty
|
||||||
Mikrotik::setPpoeUser($client, $c['username'], $npass);
|
Mikrotik::setPpoeUser($client, $c['username'], $npass);
|
||||||
Mikrotik::removePpoeActive($client, $user['username']);
|
Mikrotik::removePpoeActive($client, $user['username']);
|
||||||
@ -122,6 +122,98 @@ switch ($action) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'phone-update':
|
||||||
|
|
||||||
|
$d = ORM::for_table('tbl_customers')->find_one($user['id']);
|
||||||
|
if ($d) {
|
||||||
|
//run_hook('customer_view_edit_profile'); #HOOK
|
||||||
|
$ui->assign('d', $d);
|
||||||
|
$ui->display('user-phone-update.tpl');
|
||||||
|
} else {
|
||||||
|
r2(U . 'home', 'e', Lang::T('Account Not Found'));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'phone-update-otp':
|
||||||
|
$phone = _post('phone');
|
||||||
|
$username = $user['username'];
|
||||||
|
$otpPath = 'system/cache/sms/';
|
||||||
|
|
||||||
|
if (empty($config['sms_url'])) {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', Lang::T('SMS server not Available, Please try again later'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($config['sms_url'])) {
|
||||||
|
if (!empty($phone)) {
|
||||||
|
$d = ORM::for_table('tbl_customers')->where('username', $username)->where('phonenumber', $phone)->find_one();
|
||||||
|
if ($d) {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', Lang::T('You cannot use your current phone number'));
|
||||||
|
}
|
||||||
|
if (!file_exists($otpPath)) {
|
||||||
|
mkdir($otpPath);
|
||||||
|
touch($otpPath . 'index.html');
|
||||||
|
}
|
||||||
|
$otpFile = $otpPath . sha1($username . $db_password) . ".txt";
|
||||||
|
$phoneFile = $otpPath . sha1($username . $db_password) . "_phone.txt";
|
||||||
|
|
||||||
|
// expired 10 minutes
|
||||||
|
if (file_exists($otpFile) && time() - filemtime($otpFile) < 1200) {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', Lang::T('Please wait ' . (1200 - (time() - filemtime($otpFile))) . ' seconds before sending another SMS'));
|
||||||
|
} else {
|
||||||
|
$otp = rand(100000, 999999);
|
||||||
|
file_put_contents($otpFile, $otp);
|
||||||
|
file_put_contents($phoneFile, $phone);
|
||||||
|
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
||||||
|
r2(U . 'accounts/phone-update', 'e', Lang::T('Verification code has been sent to your phone'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'phone-update-post':
|
||||||
|
$phone = _post('phone');
|
||||||
|
$otp_code = _post('otp');
|
||||||
|
$username = $user['username'];
|
||||||
|
$otpPath = 'system/cache/sms/';
|
||||||
|
|
||||||
|
if (!empty($config['sms_url'])) {
|
||||||
|
$otpFile = $otpPath . sha1($username . $db_password) . ".txt";
|
||||||
|
$phoneFile = $otpPath . sha1($username . $db_password) . "_phone.txt";
|
||||||
|
// expired 10 minutes
|
||||||
|
if (file_exists($otpFile) && time() - filemtime($otpFile) > 1200) {
|
||||||
|
unlink($otpFile);
|
||||||
|
unlink($phoneFile);
|
||||||
|
r2(U . 'accounts/phone-update', 'e', 'Verification code expired');
|
||||||
|
} else if (file_exists($otpFile)) {
|
||||||
|
$code = file_get_contents($otpFile);
|
||||||
|
if ($code != $otp_code) {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', 'Wrong Verification code');
|
||||||
|
exit();
|
||||||
|
} elseif (file_exists($phoneFile)) {
|
||||||
|
$savedPhone = file_get_contents($phoneFile);
|
||||||
|
if ($savedPhone !== $phone) {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', 'The phone number does not match the one that requested the OTP');
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
unlink($otpFile);
|
||||||
|
unlink($phoneFile);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
r2(U . 'accounts/phone-update', 'e', 'No Verification code');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||||
|
if ($d) {
|
||||||
|
$d->phonenumber = Lang::phoneFormat($phone);
|
||||||
|
$d->save();
|
||||||
|
}
|
||||||
|
r2(U . 'accounts/profile', 's', 'Phone number updated successfully');
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$ui->display('a404.tpl');
|
$ui->display('a404.tpl');
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_bandwith'); #HOOK
|
run_hook('view_edit_bandwith'); #HOOK
|
||||||
$d = ORM::for_table('tbl_bandwidth')->find_one($id);
|
$d = ORM::for_table('tbl_bandwidth')->find_one($id);
|
||||||
if($d){
|
if($d){
|
||||||
|
$ui->assign('burst',explode(" ", $d['burst']));
|
||||||
$ui->assign('d',$d);
|
$ui->assign('d',$d);
|
||||||
$ui->display('bandwidth-edit.tpl');
|
$ui->display('bandwidth-edit.tpl');
|
||||||
}else{
|
}else{
|
||||||
@ -67,8 +68,19 @@ switch ($action) {
|
|||||||
$rate_down_unit = _post('rate_down_unit');
|
$rate_down_unit = _post('rate_down_unit');
|
||||||
$rate_up = _post('rate_up');
|
$rate_up = _post('rate_up');
|
||||||
$rate_up_unit = _post('rate_up_unit');
|
$rate_up_unit = _post('rate_up_unit');
|
||||||
$burst = _post('burst');
|
|
||||||
run_hook('add_bandwidth'); #HOOK
|
run_hook('add_bandwidth'); #HOOK
|
||||||
|
$isBurst = true;
|
||||||
|
$burst = "";
|
||||||
|
if(isset($_POST['burst'])){
|
||||||
|
foreach($_POST['burst'] as $b){
|
||||||
|
if(empty($b)){
|
||||||
|
$isBurst = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($isBurst){
|
||||||
|
$burst = implode(' ', $_POST['burst']);
|
||||||
|
};
|
||||||
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,16,4) == false){
|
if(Validator::Length($name,16,4) == false){
|
||||||
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
||||||
@ -104,8 +116,19 @@ switch ($action) {
|
|||||||
$rate_down_unit = _post('rate_down_unit');
|
$rate_down_unit = _post('rate_down_unit');
|
||||||
$rate_up = _post('rate_up');
|
$rate_up = _post('rate_up');
|
||||||
$rate_up_unit = _post('rate_up_unit');
|
$rate_up_unit = _post('rate_up_unit');
|
||||||
$burst = _post('burst');
|
run_hook('edit_bandwidth'); #HOOK
|
||||||
run_hook('edit_bandwidth'); #HOOK
|
$isBurst = true;
|
||||||
|
$burst = "";
|
||||||
|
if(isset($_POST['burst'])){
|
||||||
|
foreach($_POST['burst'] as $b){
|
||||||
|
if(empty($b)){
|
||||||
|
$isBurst = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($isBurst){
|
||||||
|
$burst = implode(' ', $_POST['burst']);
|
||||||
|
};
|
||||||
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,16,4) == false){
|
if(Validator::Length($name,16,4) == false){
|
||||||
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
||||||
|
@ -427,5 +427,19 @@
|
|||||||
"Code": "Code",
|
"Code": "Code",
|
||||||
"Send_To_Customer": "Send To Customer",
|
"Send_To_Customer": "Send To Customer",
|
||||||
"Prev": "Prev",
|
"Prev": "Prev",
|
||||||
"Voucher_Not_Found": "Voucher Not Found"
|
"Voucher_Not_Found": "Voucher Not Found",
|
||||||
|
"Miscellaneous": "Miscellaneous",
|
||||||
|
"OTP_Required": "OTP Required",
|
||||||
|
"Change": "Change",
|
||||||
|
"Change_Phone_Number": "Change Phone Number",
|
||||||
|
"Current_Number": "Current Number",
|
||||||
|
"New_Number": "New Number",
|
||||||
|
"Input_your_phone_number": "Input your phone number",
|
||||||
|
"OTP": "OTP",
|
||||||
|
"Enter_OTP_that_was_sent_to_your_phone": "Enter OTP that was sent to your phone",
|
||||||
|
"Update": "Update",
|
||||||
|
"OTP_is_required_when_user_want_to_change_phone_number": "OTP is required when user want to change phone number",
|
||||||
|
"Rate": "Rate",
|
||||||
|
"Burst": "Burst",
|
||||||
|
"Editing_Bandwidth_will_not_automatically_update_the_plan__you_need_to_edit_the_plan_then_save_again": "Editing Bandwidth will not automatically update the plan, you need to edit the plan then save again"
|
||||||
}
|
}
|
@ -74,11 +74,11 @@
|
|||||||
<label class="col-md-2 control-label">Theme</label>
|
<label class="col-md-2 control-label">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}>Default
|
<option value="default" {if $_c['theme'] eq 'default' }selected="selected" {/if}>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}>
|
||||||
{Lang::ucWords($theme)}</option>
|
{Lang::ucWords($theme)}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -103,21 +103,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><input type="checkbox" name="hide_mrc" value="yes"
|
<label class="col-md-3 control-label"><input type="checkbox" name="hide_mrc" value="yes" {if
|
||||||
{if $_c['hide_mrc'] eq 'yes'}checked{/if}>
|
$_c['hide_mrc'] eq 'yes' }checked{/if}>
|
||||||
{Lang::T('Monthly Registered Customers')}</label>
|
{Lang::T('Monthly Registered Customers')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_tms" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_tms" value="yes" {if
|
||||||
{if $_c['hide_tms'] eq 'yes'}checked{/if}> {Lang::T('Total Monthly Sales')}</label>
|
$_c['hide_tms'] eq 'yes' }checked{/if}> {Lang::T('Total Monthly Sales')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_aui" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_aui" value="yes" {if
|
||||||
{if $_c['hide_aui'] eq 'yes'}checked{/if}> {Lang::T('All Users Insights')}</label>
|
$_c['hide_aui'] eq 'yes' }checked{/if}> {Lang::T('All Users Insights')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_al" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_al" value="yes" {if
|
||||||
{if $_c['hide_al'] eq 'yes'}checked{/if}> {Lang::T('Activity Log')}</label>
|
$_c['hide_al'] eq 'yes' }checked{/if}> {Lang::T('Activity Log')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_uet" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_uet" value="yes" {if
|
||||||
{if $_c['hide_uet'] eq 'yes'}checked{/if}> {Lang::T('User Expired, Today')}</label>
|
$_c['hide_uet'] eq 'yes' }checked{/if}> {Lang::T('User Expired, Today')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_vs" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_vs" value="yes" {if
|
||||||
{if $_c['hide_vs'] eq 'yes'}checked{/if}> Vouchers Stock</label>
|
$_c['hide_vs'] eq 'yes' }checked{/if}> Vouchers Stock</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="hide_pg" value="yes"
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_pg" value="yes" {if
|
||||||
{if $_c['hide_pg'] eq 'yes'}checked{/if}> Payment Gateway</label>
|
$_c['hide_pg'] eq 'yes' }checked{/if}> Payment Gateway</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
@ -132,9 +132,9 @@
|
|||||||
<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}>No
|
<option value="no" {if $_c['disable_voucher']=='no' }selected="selected" {/if}>No
|
||||||
</option>
|
</option>
|
||||||
<option value="yes" {if $_c['disable_voucher'] == 'yes'}selected="selected" {/if}>Yes
|
<option value="yes" {if $_c['disable_voucher']=='yes' }selected="selected" {/if}>Yes
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -144,12 +144,12 @@
|
|||||||
<label class="col-md-2 control-label">{Lang::T('Voucher Format')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Voucher Format')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select name="voucher_format" id="voucher_format" class="form-control">
|
<select name="voucher_format" id="voucher_format" class="form-control">
|
||||||
<option value="up" {if $_c['voucher_format'] == 'up'}selected="selected" {/if}>UPPERCASE
|
<option value="up" {if $_c['voucher_format']=='up' }selected="selected" {/if}>UPPERCASE
|
||||||
</option>
|
</option>
|
||||||
<option value="low" {if $_c['voucher_format'] == 'low'}selected="selected" {/if}>
|
<option value="low" {if $_c['voucher_format']=='low' }selected="selected" {/if}>
|
||||||
lowercase
|
lowercase
|
||||||
</option>
|
</option>
|
||||||
<option value="rand" {if $_c['voucher_format'] == 'rand'}selected="selected" {/if}>
|
<option value="rand" {if $_c['voucher_format']=='rand' }selected="selected" {/if}>
|
||||||
RaNdoM
|
RaNdoM
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
@ -157,31 +157,33 @@
|
|||||||
<p class="help-block col-md-4">UPPERCASE lowercase RaNdoM</p>
|
<p class="help-block col-md-4">UPPERCASE lowercase RaNdoM</p>
|
||||||
</div>
|
</div>
|
||||||
{if $_c['disable_voucher'] != 'yes'}
|
{if $_c['disable_voucher'] != 'yes'}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<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}>No
|
<option value="no" {if $_c['disable_registration']=='no' }selected="selected" {/if}>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}>
|
||||||
Yes
|
Yes
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
<p class="help-block col-md-4">
|
|
||||||
{Lang::T('Customer just Login with Phone number and Voucher Code, Voucher will be password')}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<p class="help-block col-md-4">
|
||||||
<label class="col-md-2 control-label">Redirect after Activation</label>
|
{Lang::T('Customer just Login with Phone number and Voucher Code, Voucher will be
|
||||||
<div class="col-md-6">
|
password')}
|
||||||
<input type="text" class="form-control" id="voucher_redirect" name="voucher_redirect"
|
</p>
|
||||||
placeholder="https://192.168.88.1/status" value="{$voucher_redirect}">
|
</div>
|
||||||
</div>
|
<div class="form-group">
|
||||||
<p class="help-block col-md-4">
|
<label class="col-md-2 control-label">Redirect after Activation</label>
|
||||||
{Lang::T('After Customer activate voucher or login, customer will be redirected to this url')}
|
<div class="col-md-6">
|
||||||
</p>
|
<input type="text" class="form-control" id="voucher_redirect" name="voucher_redirect"
|
||||||
|
placeholder="https://192.168.88.1/status" value="{$voucher_redirect}">
|
||||||
</div>
|
</div>
|
||||||
|
<p class="help-block col-md-4">
|
||||||
|
{Lang::T('After Customer activate voucher or login, customer will be redirected to this
|
||||||
|
url')}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
@ -223,9 +225,9 @@
|
|||||||
<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}>No
|
<option value="no" {if $_c['enable_balance']=='no' }selected="selected" {/if}>No
|
||||||
</option>
|
</option>
|
||||||
<option value="yes" {if $_c['enable_balance'] == 'yes'}selected="selected" {/if}>Yes
|
<option value="yes" {if $_c['enable_balance']=='yes' }selected="selected" {/if}>Yes
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -235,10 +237,10 @@
|
|||||||
<label class="col-md-2 control-label">{Lang::T('Allow Transfer')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Allow Transfer')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select name="allow_balance_transfer" id="allow_balance_transfer" class="form-control">
|
<select name="allow_balance_transfer" id="allow_balance_transfer" class="form-control">
|
||||||
<option value="no" {if $_c['allow_balance_transfer'] == 'no'}selected="selected" {/if}>
|
<option value="no" {if $_c['allow_balance_transfer']=='no' }selected="selected" {/if}>
|
||||||
No</option>
|
No</option>
|
||||||
<option value="yes" {if $_c['allow_balance_transfer'] == 'yes'}selected="selected"
|
<option value="yes" {if $_c['allow_balance_transfer']=='yes' }selected="selected" {/if}>
|
||||||
{/if}>Yes</option>
|
Yes</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block col-md-4">{Lang::T('Allow balance transfer between customers')}</p>
|
<p class="help-block col-md-4">{Lang::T('Allow balance transfer between customers')}</p>
|
||||||
@ -304,8 +306,8 @@
|
|||||||
onchange="document.getElementById('sms_url').value = this.value">
|
onchange="document.getElementById('sms_url').value = this.value">
|
||||||
<option value="">Select Router</option>
|
<option value="">Select Router</option>
|
||||||
{foreach $r as $rs}
|
{foreach $r as $rs}
|
||||||
<option value="{$rs['name']}" {if $rs['name']==$_c['sms_url']}selected{/if}>
|
<option value="{$rs['name']}" {if $rs['name']==$_c['sms_url']}selected{/if}>
|
||||||
{$rs['name']}</option>
|
{$rs['name']}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -352,9 +354,9 @@
|
|||||||
<select name="user_notification_expired" id="user_notification_expired"
|
<select name="user_notification_expired" id="user_notification_expired"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="wa" {if $_c['user_notification_expired'] == 'wa'}selected="selected"
|
<option value="wa" {if $_c['user_notification_expired']=='wa' }selected="selected"
|
||||||
{/if}>Whatsapp</option>
|
{/if}>Whatsapp</option>
|
||||||
<option value="sms" {if $_c['user_notification_expired'] == 'sms'}selected="selected"
|
<option value="sms" {if $_c['user_notification_expired']=='sms' }selected="selected"
|
||||||
{/if}>SMS</option>
|
{/if}>SMS</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -366,9 +368,9 @@
|
|||||||
<select name="user_notification_payment" id="user_notification_payment"
|
<select name="user_notification_payment" id="user_notification_payment"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="wa" {if $_c['user_notification_payment'] == 'wa'}selected="selected"
|
<option value="wa" {if $_c['user_notification_payment']=='wa' }selected="selected"
|
||||||
{/if}>Whatsapp</option>
|
{/if}>Whatsapp</option>
|
||||||
<option value="sms" {if $_c['user_notification_payment'] == 'sms'}selected="selected"
|
<option value="sms" {if $_c['user_notification_payment']=='sms' }selected="selected"
|
||||||
{/if}>SMS</option>
|
{/if}>SMS</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -381,9 +383,9 @@
|
|||||||
<select name="user_notification_reminder" id="user_notification_reminder"
|
<select name="user_notification_reminder" id="user_notification_reminder"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="wa" {if $_c['user_notification_reminder'] == 'wa'}selected="selected"
|
<option value="wa" {if $_c['user_notification_reminder']=='wa' }selected="selected"
|
||||||
{/if}>Whatsapp</option>
|
{/if}>Whatsapp</option>
|
||||||
<option value="sms" {if $_c['user_notification_reminder'] == 'sms'}selected="selected"
|
<option value="sms" {if $_c['user_notification_reminder']=='sms' }selected="selected"
|
||||||
{/if}>SMS</option>
|
{/if}>SMS</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -452,6 +454,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="panel-heading">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
{Lang::T('Miscellaneous')}
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('OTP Required')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<select name="allow_phone_otp" id="allow_phone_otp" class="form-control">
|
||||||
|
<option value="no" {if $_c['allow_phone_otp']=='no' }selected="selected" {/if}>
|
||||||
|
No</option>
|
||||||
|
<option value="yes" {if $_c['allow_phone_otp']=='yes' }selected="selected" {/if}>Yes
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<p class="help-block col-md-4">{Lang::T('OTP is required when user want to change phone
|
||||||
|
number')}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{* <div class="panel-heading" id="envato">
|
{* <div class="panel-heading" id="envato">
|
||||||
<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
|
||||||
@ -484,8 +508,8 @@
|
|||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-success btn-block waves-effect waves-light"
|
<button class="btn btn-success btn-block waves-effect waves-light" type="submit">{Lang::T('Save
|
||||||
type="submit">{Lang::T('Save Changes')}</button>
|
Changes')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -511,14 +535,14 @@ add dst-host=*.{$_domain}</pre>
|
|||||||
function testWa() {
|
function testWa() {
|
||||||
var target = prompt("Phone number\nSave First before Test", "");
|
var target = prompt("Phone number\nSave First before Test", "");
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
window.location.href = '{$_url}settings/app&testWa='+target;
|
window.location.href = '{$_url}settings/app&testWa=' + target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function testSms() {
|
function testSms() {
|
||||||
var target = prompt("Phone number\nSave First before Test", "");
|
var target = prompt("Phone number\nSave First before Test", "");
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
window.location.href = '{$_url}settings/app&testSms='+target;
|
window.location.href = '{$_url}settings/app&testSms=' + target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,31 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">Burst Limit</label>
|
<label class="col-md-2 control-label">Burst Limit</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="burst" name="burst" placeholder="[Burst/Limit] [Burst/Threshold] [Burst/Time] [Priority] [Limit/At]">
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Limit]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Threshold</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Threshold]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Time</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Time]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Priority</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="number" class="form-control" name="burst[]" placeholder="[Priority]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Limit At</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Limit/At]">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -43,11 +43,39 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">Burst Limit</label>
|
<label class="col-md-2 control-label">Burst Limit</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="burst" name="burst" value="{$d['burst']}" placeholder="[Burst/Limit] [Burst/Threshold] [Burst/Time] [Priority] [Limit/At]">
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Limit]" value="{$burst[0]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Threshold</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Threshold]" value="{$burst[1]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Time</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Time]" value="{$burst[2]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Priority</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="number" class="form-control" name="burst[]" placeholder="[Priority]" value="{$burst[3]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Limit At</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Limit/At]" value="{$burst[4]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-lg-offset-2 col-lg-10">
|
||||||
|
<small>{Lang::T('Editing Bandwidth will not automatically update the plan, you need to edit the plan then save again')}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-condensed table-striped table_mobile">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Lang::T('Bandwidth Name')}</th>
|
<th>{Lang::T('Bandwidth Name')}</th>
|
||||||
<th>{Lang::T('Rate Download')}</th>
|
<th>{Lang::T('Rate')}</th>
|
||||||
<th>{Lang::T('Rate Upload')}</th>
|
<th>{Lang::T('Burst')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -37,8 +37,8 @@
|
|||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$ds['name_bw']}</td>
|
<td>{$ds['name_bw']}</td>
|
||||||
<td>{$ds['rate_down']} {$ds['rate_down_unit']}</td>
|
<td>{$ds['rate_down']} {$ds['rate_down_unit']} / {$ds['rate_up']} {$ds['rate_up_unit']}</td>
|
||||||
<td>{$ds['rate_up']} {$ds['rate_up_unit']}</td>
|
<td>{$ds['burst']}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{Lang::T('Edit')}</a>
|
<a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{Lang::T('Edit')}</a>
|
||||||
<a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm" onclick="return confirm('{Lang::T('Delete')}?')" ><i class="glyphicon glyphicon-trash"></i></a>
|
<a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm" onclick="return confirm('{Lang::T('Delete')}?')" ><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
class="ion ion-android-add"> </i> {Lang::T('Add New Contact')}</a>
|
class="ion ion-android-add"> </i> {Lang::T('Add New Contact')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive table_mobile">
|
||||||
<table class="table table-bordered table-striped table-condensed">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
||||||
<div class="panel-heading">Vouchers Stock</div>
|
<div class="panel-heading">Vouchers Stock</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Lang::T('Plan Name')}</th>
|
<th>{Lang::T('Plan Name')}</th>
|
||||||
@ -139,20 +139,17 @@
|
|||||||
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
||||||
<div class="panel-heading">{Lang::T('User Expired, Today')}</div>
|
<div class="panel-heading">{Lang::T('User Expired, Today')}</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Id</th>
|
|
||||||
<th>{Lang::T('Username')}</th>
|
<th>{Lang::T('Username')}</th>
|
||||||
<th>{Lang::T('Created On')}</th>
|
<th>{Lang::T('Created On')}</th>
|
||||||
<th>{Lang::T('Expires On')}</th>
|
<th>{Lang::T('Expires On')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{$no = 1}
|
|
||||||
{foreach $expire as $expired}
|
{foreach $expire as $expired}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$no++}</td>
|
|
||||||
<td><a href="{$_url}customers/viewu/{$expired['username']}">{$expired['username']}</a></td>
|
<td><a href="{$_url}customers/viewu/{$expired['username']}">{$expired['username']}</a></td>
|
||||||
<td>{Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])}
|
<td>{Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])}
|
||||||
</td>
|
</td>
|
||||||
|
@ -45,13 +45,14 @@
|
|||||||
<th>{Lang::T('Routers')}</th>
|
<th>{Lang::T('Routers')}</th>
|
||||||
<th>{Lang::T('Expired IP Pool')}</th>
|
<th>{Lang::T('Expired IP Pool')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr {if $ds['enabled'] != 1}class="danger" title="disabled"
|
<tr {if $ds['enabled'] != 1}class="danger" title="disabled"
|
||||||
{elseif $ds['allow_purchase'] != 'yes'}class="warning" title="Customer can't purchase" {/if}>
|
{elseif $ds['allow_purchase'] != 'yes'}class="warning" title="Customer can't purchase" {/if}>
|
||||||
<td>{$ds['name_plan']}</td>
|
<td class="headcol">{$ds['name_plan']}</td>
|
||||||
<td>{$ds['typebp']}</td>
|
<td>{$ds['typebp']}</td>
|
||||||
<td>{$ds['name_bw']}</td>
|
<td>{$ds['name_bw']}</td>
|
||||||
<td>{Lang::moneyFormat($ds['price'])}</td>
|
<td>{Lang::moneyFormat($ds['price'])}</td>
|
||||||
@ -75,6 +76,7 @@
|
|||||||
onclick="return confirm('{Lang::T('Delete')}?')"
|
onclick="return confirm('{Lang::T('Delete')}?')"
|
||||||
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -36,18 +36,16 @@
|
|||||||
<table class="table table-bordered table-striped table-condensed">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
|
||||||
<th>{Lang::T('Name Pool')}</th>
|
<th>{Lang::T('Name Pool')}</th>
|
||||||
<th>{Lang::T('Range IP')}</th>
|
<th>{Lang::T('Range IP')}</th>
|
||||||
<th>{Lang::T('Routers')}</th>
|
<th>{Lang::T('Routers')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{$no = 1}
|
|
||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">{$no++}</td>
|
|
||||||
<td>{$ds['pool_name']}</td>
|
<td>{$ds['pool_name']}</td>
|
||||||
<td>{$ds['range_ip']}</td>
|
<td>{$ds['range_ip']}</td>
|
||||||
<td>{$ds['routers']}</td>
|
<td>{$ds['routers']}</td>
|
||||||
@ -57,6 +55,7 @@
|
|||||||
onclick="return confirm('{Lang::T('Delete')}?')"
|
onclick="return confirm('{Lang::T('Delete')}?')"
|
||||||
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
<th>{Lang::T('Expired IP Pool')}</th>
|
<th>{Lang::T('Expired IP Pool')}</th>
|
||||||
<th>{Lang::T('Routers')}</th>
|
<th>{Lang::T('Routers')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -70,6 +71,7 @@
|
|||||||
onclick="return confirm('{Lang::T('Delete')}?')" id="{$ds['id']}"
|
onclick="return confirm('{Lang::T('Delete')}?')" id="{$ds['id']}"
|
||||||
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
<table class="table table-bordered table-striped table-condensed">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>IP</th>
|
<th>IP</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
@ -40,12 +39,12 @@
|
|||||||
<th>Community</th>
|
<th>Community</th>
|
||||||
<th>Routers</th>
|
<th>Routers</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach $nas as $ds}
|
{foreach $nas as $ds}
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">{$ds['id']}</td>
|
|
||||||
<td>{$ds['shortname']}</td>
|
<td>{$ds['shortname']}</td>
|
||||||
<td>{$ds['nasname']}</td>
|
<td>{$ds['nasname']}</td>
|
||||||
<td>{$ds['type']}</td>
|
<td>{$ds['type']}</td>
|
||||||
@ -59,6 +58,7 @@
|
|||||||
onclick="return confirm('{Lang::T('Delete')}?')"
|
onclick="return confirm('{Lang::T('Delete')}?')"
|
||||||
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center">{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -31,19 +31,18 @@
|
|||||||
<table class="table table-bordered table-striped table-condensed">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
|
||||||
<th>{Lang::T('Router Name')}</th>
|
<th>{Lang::T('Router Name')}</th>
|
||||||
<th>{Lang::T('IP Address')}</th>
|
<th>{Lang::T('IP Address')}</th>
|
||||||
<th>{Lang::T('Username')}</th>
|
<th>{Lang::T('Username')}</th>
|
||||||
<th>{Lang::T('Description')}</th>
|
<th>{Lang::T('Description')}</th>
|
||||||
<th>{Lang::T('Status')}</th>
|
<th>{Lang::T('Status')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr {if $ds['enabled'] != 1}class="danger" title="disabled" {/if}>
|
<tr {if $ds['enabled'] != 1}class="danger" title="disabled" {/if}>
|
||||||
<td>{$ds['id']}</td>
|
|
||||||
<td>{$ds['name']}</td>
|
<td>{$ds['name']}</td>
|
||||||
<td>{$ds['ip_address']}</td>
|
<td>{$ds['ip_address']}</td>
|
||||||
<td>{$ds['username']}</td>
|
<td>{$ds['username']}</td>
|
||||||
@ -56,6 +55,7 @@
|
|||||||
onclick="return confirm('{Lang::T('Delete')}?')"
|
onclick="return confirm('{Lang::T('Delete')}?')"
|
||||||
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -41,19 +41,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 40em) {
|
th:first-child,
|
||||||
thead th:not(:first-child) {
|
td:first-child {
|
||||||
display: none;
|
position: sticky;
|
||||||
}
|
left: 0px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
td,
|
|
||||||
th {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
td[data-th]:before {
|
|
||||||
content: attr(data-th);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="panel-heading">{Lang::T('List Activated Voucher')}</div>
|
<div class="panel-heading">{Lang::T('List Activated Voucher')}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-bordered table-striped">
|
<table id="datatable" class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Lang::T('Username')}</th>
|
<th>{Lang::T('Username')}</th>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="panel-heading">{Lang::T('Order History')}</div>
|
<div class="panel-heading">{Lang::T('Order History')}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-bordered table-striped">
|
<table id="datatable" class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Lang::T('Plan Name')}</th>
|
<th>{Lang::T('Plan Name')}</th>
|
||||||
|
80
ui/ui/user-phone-update.tpl
Normal file
80
ui/ui/user-phone-update.tpl
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
{include file="sections/user-header.tpl"}
|
||||||
|
|
||||||
|
<!-- user-phone-update -->
|
||||||
|
|
||||||
|
<div class="box box-danger">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<h3 class="box-title">{Lang::T('Change Phone Number')}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="form-horizontal">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('Current Number')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="basic-addon1">+</span>
|
||||||
|
<input type="text" class="form-control" name="phonenumber" id="phonenumber"
|
||||||
|
value="{$d['phonenumber']}" readonly placeholder="{Lang::T('Phone Number')}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form method="post" role="form" action="{$_url}accounts/phone-update-otp">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('New Number')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="basic-addon1">+</span>
|
||||||
|
<input type="number" class="form-control" name="phone" id="phone" value="" required
|
||||||
|
placeholder="{Lang::T('Input your phone number')}">
|
||||||
|
<span class="input-group-btn">
|
||||||
|
<button type="submit" class="btn btn-info btn-flat">{Lang::T('Request OTP')}</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<form method="post" role="form" action="{$_url}accounts/phone-update-post">
|
||||||
|
<!-- Form 2 -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('OTP')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="number" class="form-control" id="otp" name="otp"
|
||||||
|
placeholder="{Lang::T('Enter OTP that was sent to your phone')}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Hidden field to store the phone number value -->
|
||||||
|
<input type="hidden" name="phone" id="hidden_phone" required>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-lg-offset-2 col-lg-10">
|
||||||
|
<button class="btn btn-success waves-effect waves-light" type="submit"
|
||||||
|
onclick="return validateForm()">{Lang::T('Update')}</button>
|
||||||
|
Or <a href="{$_url}home">{Lang::T('Cancel')}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function validateForm() {
|
||||||
|
var phoneNumber = document.getElementById("phone").value;
|
||||||
|
var otp = document.getElementById("otp").value;
|
||||||
|
|
||||||
|
if (phoneNumber.trim() === "") {
|
||||||
|
alert("Phone number is required.");
|
||||||
|
return false; // Prevent form submission
|
||||||
|
}
|
||||||
|
|
||||||
|
if (otp.trim() === "") {
|
||||||
|
alert("OTP code is required.");
|
||||||
|
return false; // Prevent form submission
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the phone number value in the hidden field
|
||||||
|
document.getElementById("hidden_phone").value = phoneNumber;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{include file="sections/user-footer.tpl"}
|
@ -34,17 +34,35 @@
|
|||||||
<textarea name="address" id="address" class="form-control">{$d['address']}</textarea>
|
<textarea name="address" id="address" class="form-control">{$d['address']}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
{if $_c['allow_phone_otp'] != 'yes'}
|
||||||
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
|
<div class="form-group">
|
||||||
<div class="col-md-6">
|
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
|
||||||
<div class="input-group">
|
<div class="col-md-6">
|
||||||
<span class="input-group-addon" id="basic-addon1">+</span>
|
<div class="input-group">
|
||||||
<input type="text" class="form-control" name="phonenumber" id="phonenumber"
|
<span class="input-group-addon" id="basic-addon1">+</span>
|
||||||
value="{$d['phonenumber']}"
|
<input type="text" class="form-control" name="phonenumber" id="phonenumber"
|
||||||
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']}{/if} {Lang::T('Phone Number')}">
|
value="{$d['phonenumber']}"
|
||||||
|
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']}{/if} {Lang::T('Phone Number')}">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{else}
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon" id="basic-addon1">+</span>
|
||||||
|
<input type="text" class="form-control" name="phonenumber" id="phonenumber"
|
||||||
|
value="{$d['phonenumber']}" readonly
|
||||||
|
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']}{/if} {Lang::T('Phone Number')}">
|
||||||
|
<span class="input-group-btn">
|
||||||
|
<a href="{$_url}accounts/phone-update" type="button"
|
||||||
|
class="btn btn-info btn-flat">{Lang::T('Change')}</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Email')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Email')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@ -54,8 +72,8 @@
|
|||||||
|
|
||||||
<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 waves-effect waves-light"
|
<button class="btn btn-success waves-effect waves-light" type="submit">
|
||||||
type="submit">{Lang::T('Save Changes')}</button>
|
{Lang::T('Save Changes')}</button>
|
||||||
Or <a href="{$_url}home">{Lang::T('Cancel')}</a>
|
Or <a href="{$_url}home">{Lang::T('Cancel')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,10 +27,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
|
||||||
<th>{Lang::T('Username')}</th>
|
<th>{Lang::T('Username')}</th>
|
||||||
<th>{Lang::T('Full Name')}</th>
|
<th>{Lang::T('Full Name')}</th>
|
||||||
<th>{Lang::T('Phone')}</th>
|
<th>{Lang::T('Phone')}</th>
|
||||||
@ -40,12 +39,12 @@
|
|||||||
<th>{Lang::T('Agent')}</th>
|
<th>{Lang::T('Agent')}</th>
|
||||||
<th>{Lang::T('Last Login')}</th>
|
<th>{Lang::T('Last Login')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
|
<th>ID</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr {if $ds['status'] != 'Active'}class="danger"{/if}>
|
<tr {if $ds['status'] != 'Active'}class="danger"{/if}>
|
||||||
<td>{$ds['id']}</td>
|
|
||||||
<td>{$ds['username']}</td>
|
<td>{$ds['username']}</td>
|
||||||
<td>{$ds['fullname']}</td>
|
<td>{$ds['fullname']}</td>
|
||||||
<td>{$ds['phone']}</td>
|
<td>{$ds['phone']}</td>
|
||||||
@ -66,6 +65,7 @@
|
|||||||
class="btn btn-danger btn-xs" onclick="return confirm('{Lang::T('Delete')}?')"><i class="glyphicon glyphicon-trash"></i></a>
|
class="btn btn-danger btn-xs" onclick="return confirm('{Lang::T('Delete')}?')"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
|
<td>{$ds['id']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable" class="table table-bordered table-striped">
|
<table id="datatable" class="table table-bordered table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.2.20"
|
"version": "2024.2.21"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user