show customer package instead active only
This commit is contained in:
parent
f292da9d8d
commit
5fc2190f4a
@ -40,13 +40,14 @@ switch ($action) {
|
|||||||
$d = ORM::for_table('tbl_user_recharges')->where('customer_id', $routes['2'])->findOne();
|
$d = ORM::for_table('tbl_user_recharges')->where('customer_id', $routes['2'])->findOne();
|
||||||
if ($d) {
|
if ($d) {
|
||||||
if ($d['status'] == 'on') {
|
if ($d['status'] == 'on') {
|
||||||
die('<span class="label label-success" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">on</span>');
|
die('<span class="label label-success" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">'.$d['namebp'].'</span>');
|
||||||
} else {
|
} else {
|
||||||
die('<span class="label label-danger" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">off</span>');
|
die('<span class="label label-danger" title="Expired ' . Lang::dateAndTimeFormat($d['expiration'], $d['time']) . '">'.$d['namebp'].'</span>');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
die('<span class="label label-danger">off</span>');
|
die('<span class="label label-danger">•</span>');
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 'customer_select2':
|
case 'customer_select2':
|
||||||
|
|
||||||
$s = addslashes(_get('s'));
|
$s = addslashes(_get('s'));
|
||||||
|
@ -27,12 +27,12 @@
|
|||||||
<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>{$_L['Username']}</th>
|
<th>{$_L['Username']}</th>
|
||||||
<th>{$_L['Full_Name']}</th>
|
<th>{$_L['Full_Name']}</th>
|
||||||
<th>{Lang::T('Balance')}</th>
|
<th>{Lang::T('Balance')}</th>
|
||||||
<th>{$_L['Phone_Number']}</th>
|
<th>{$_L['Phone_Number']}</th>
|
||||||
<th>{$_L['Email']}</th>
|
<th>{$_L['Email']}</th>
|
||||||
|
<th>{$_L['Package']}</th>
|
||||||
<th>{$_L['Created_On']}</th>
|
<th>{$_L['Created_On']}</th>
|
||||||
<th>{$_L['Manage']}</th>
|
<th>{$_L['Manage']}</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -40,14 +40,14 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" api-get-text="{$_url}autoload/customer_is_active/{$ds['id']}">
|
|
||||||
<span class="label label-default">-</span>
|
|
||||||
</td>
|
|
||||||
<td onclick="window.location.href = '{$_url}customers/view/{$ds['id']}'" style="cursor:pointer;">{$ds['username']}</td>
|
<td onclick="window.location.href = '{$_url}customers/view/{$ds['id']}'" style="cursor:pointer;">{$ds['username']}</td>
|
||||||
<td onclick="window.location.href = '{$_url}customers/view/{$ds['id']}'" style="cursor: pointer;">{$ds['fullname']}</td>
|
<td onclick="window.location.href = '{$_url}customers/view/{$ds['id']}'" style="cursor: pointer;">{$ds['fullname']}</td>
|
||||||
<td>{Lang::moneyFormat($ds['balance'])}</td>
|
<td>{Lang::moneyFormat($ds['balance'])}</td>
|
||||||
<td>{$ds['phonenumber']}</td>
|
<td>{$ds['phonenumber']}</td>
|
||||||
<td>{$ds['email']}</td>
|
<td>{$ds['email']}</td>
|
||||||
|
<td align="center" api-get-text="{$_url}autoload/customer_is_active/{$ds['id']}">
|
||||||
|
<span class="label label-default">•</span>
|
||||||
|
</td>
|
||||||
<td>{Lang::dateTimeFormat($ds['created_at'])}</td>
|
<td>{Lang::dateTimeFormat($ds['created_at'])}</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="{$_url}customers/view/{$ds['id']}" id="{$ds['id']}" style="margin: 0px;"
|
<a href="{$_url}customers/view/{$ds['id']}" id="{$ds['id']}" style="margin: 0px;"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user