show user active

This commit is contained in:
Ibnu Maksum
2023-09-07 10:54:20 +07:00
parent eeae60d88e
commit c57bbeace3
9 changed files with 129 additions and 82 deletions

View File

@ -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'));