mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-25 19:18:33 +02:00
show user active
This commit is contained in:
parent
eeae60d88e
commit
c57bbeace3
9 changed files with 129 additions and 82 deletions
|
@ -36,6 +36,17 @@ switch ($action) {
|
|||
|
||||
$ui->display('autoload.tpl');
|
||||
break;
|
||||
case 'customer_is_active':
|
||||
$d = ORM::for_table('tbl_user_recharges')->where('customer_id', $routes['2'])->findOne();
|
||||
if ($d) {
|
||||
if ($d['status'] == 'on') {
|
||||
die('<span class="label label-success" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">on</span>');
|
||||
} else {
|
||||
die('<span class="label label-danger" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">off</span>');
|
||||
}
|
||||
} else {
|
||||
die('<span class="label label-danger">off</span>');
|
||||
}
|
||||
case 'customer_select2':
|
||||
|
||||
$s = addslashes(_get('s'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue