add option for check is customer online
This commit is contained in:
parent
155b2959b5
commit
d5cba4b3c1
@ -85,6 +85,7 @@ switch ($action) {
|
||||
$ui->display('autoload.tpl');
|
||||
break;
|
||||
case 'customer_is_active':
|
||||
if ($config['check_customer_online'] == 'yes') {
|
||||
$c = ORM::for_table('tbl_customers')->where('username', $routes['2'])->find_one();
|
||||
$p = ORM::for_table('tbl_plans')->find_one($routes['3']);
|
||||
$dvc = Package::getDevice($p);
|
||||
@ -102,6 +103,7 @@ switch ($action) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'plan_is_active':
|
||||
$ds = ORM::for_table('tbl_user_recharges')->where('customer_id', $routes['2'])->find_array();
|
||||
@ -110,6 +112,7 @@ switch ($action) {
|
||||
$c = ORM::for_table('tbl_customers')->find_one($routes['2']);
|
||||
foreach ($ds as $d) {
|
||||
if ($d['status'] == 'on') {
|
||||
if ($config['check_customer_online'] == 'yes') {
|
||||
$p = ORM::for_table('tbl_plans')->find_one($d['plan_id']);
|
||||
$dvc = Package::getDevice($p);
|
||||
$status = "";
|
||||
@ -127,6 +130,7 @@ switch ($action) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$ps[] = ('<span class="label label-primary m-1" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">' . $d['namebp'] . ' ' . $status . '</span>');
|
||||
} else {
|
||||
$ps[] = ('<span class="label label-danger m-1" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">' . $d['namebp'] . '</span>');
|
||||
|
@ -693,5 +693,8 @@
|
||||
"This_will_allow_you_to_download_plugin_from_private_paid_repository": "Ini akan memungkinkan Anda mengunduh plugin dari repositori pribadi\/berbayar",
|
||||
"Expired_Cronjob_Every_5_Minutes": "Cronjob Kedaluwarsa Setiap 5 Menit",
|
||||
"Expired_Cronjob_Every_1_Hour": "Cronjob Kedaluwarsa Setiap 1 Jam",
|
||||
"Reminder_Cronjob_Every_7_AM": "Pengingat Cronjob Setiap Jam 7 Pagi"
|
||||
"Reminder_Cronjob_Every_7_AM": "Pengingat Cronjob Setiap Jam 7 Pagi",
|
||||
"Check_if_Customer_Online": "Periksa apakah Pelanggan Online",
|
||||
"Active_Customers": "Pelanggan Aktif",
|
||||
"This_will_show_is_Customer_currently_is_online_or_not": "Ini akan menunjukkan apakah Pelanggan sedang online atau tidak"
|
||||
}
|
@ -740,6 +740,22 @@
|
||||
phpnuxbill-login-hotspot</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Check if Customer Online')}</label>
|
||||
<div class="col-md-6">
|
||||
<select name="check_customer_online" id="check_customer_online" class="form-control">
|
||||
<option value="no">
|
||||
{Lang::T('No')}
|
||||
</option>
|
||||
<option value="yes" {if $_c['check_customer_online']=='yes' }selected="selected" {/if}>
|
||||
{Lang::T('Yes')}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<p class="help-block col-md-4">
|
||||
{Lang::T('This will show is Customer currently is online or not')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-heading">
|
||||
|
Loading…
x
Reference in New Issue
Block a user