Format Money in History

This commit is contained in:
Ibnu Maksum 2023-08-15 16:21:35 +07:00
parent 499a32015a
commit d682d20035
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
4 changed files with 29 additions and 27 deletions

View File

@ -24,7 +24,7 @@
<tr>
<td>{$ds['username']}</td>
<td>{$ds['plan_name']}</td>
<td>{number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{Lang::moneyFormat($ds['price'])}</td>
<td>{$ds['type']}</td>
<td class="text-success">{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
<td class="text-danger">{date($_c['date_format'], strtotime($ds['expiration']))}

View File

@ -28,7 +28,7 @@
<td>{$ds['gateway']}</td>
<td>{$ds['routers']}</td>
<td>{$ds['payment_channel']}</td>
<td>{number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{Lang::moneyFormat($ds['price'])}</td>
<td class="text-primary">{date("{$_c['date_format']} H:i",
strtotime($ds['created_date']))}</td>
<td class="text-danger">{date("{$_c['date_format']} H:i",

View File

@ -5,33 +5,35 @@
<div class="box box-solid box-default">
<div class="box-header">{Lang::T('Order Internet Package')}</div>
</div>
<div class="box box-solid box-primary">
<div class="box-header">{Lang::T('Balance Plans')}</div>
<div class="box-body row">
{foreach $plans_balance as $plan}
<div class="col col-md-4">
<div class="box box-solid box-default">
<div class="box-header">{$plan['name_plan']}</div>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])}</td>
</tr>
</tbody>
</table>
</div>
<div class="box-body">
<a href="{$_url}order/buy/0/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy Balance?')}')"
class="btn btn-sm btn-block btn-primary">Buy</a>
{if $_c['enable_balance'] == 'yes'}
<div class="box box-solid box-primary">
<div class="box-header">{Lang::T('Balance Plans')}</div>
<div class="box-body row">
{foreach $plans_balance as $plan}
<div class="col col-md-4">
<div class="box box-solid box-default">
<div class="box-header">{$plan['name_plan']}</div>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>{Lang::T('Price')}</td>
<td>{Lang::moneyFormat($plan['price'])}</td>
</tr>
</tbody>
</table>
</div>
<div class="box-body">
<a href="{$_url}order/buy/0/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy Balance?')}')"
class="btn btn-sm btn-block btn-primary">Buy</a>
</div>
</div>
</div>
</div>
{/foreach}
{/foreach}
</div>
</div>
</div>
{/if}
{foreach $routers as $router}
<div class="box box-solid box-info">
<div class="box-header text-black">{$router['name']}</div>

View File

@ -242,7 +242,7 @@ function deleteFolder($path)
</div>
<?php } else if ($step == 4) { ?>
<div class="panel panel-primary">
<div class="panel-heading">Step 3</div>
<div class="panel-heading">Step 4</div>
<div class="panel-body">
Updating database...
</div>