php-mpos/templates/bluemoon/admin/wallet/transactions.tpl
2016-07-06 14:37:49 +02:00

51 lines
1.9 KiB
Smarty

<div class="row">
<div class="col-lg-12">
<div class="widget">
<div class="widget-header">
<div class="title">
Last {$TRANSACTIONS|count} transactions
</div>
<span class="tools">
<i class="fa fa-connectdevelop"></i>
</span>
</div>
<div class="widget-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="text-center">Account</th>
<th class="text-center">Address</th>
<th class="text-center">Category</th>
<th class="text-right">Amount</th>
<th class="text-right">Confirmations</th>
<th class="text-center">Transaction ID</th>
<th class="text-right">Time</th>
</tr>
</thead>
<tbody>
{foreach key=KEY item=ARRAY from=$TRANSACTIONS}
<tr>
<td class="text-center">{$ARRAY['account']|default:"Default"}</td>
<td class="text-center">{$ARRAY['address']|default:""}</td>
<td class="text-center">{$ARRAY['category']|capitalize}</td>
<td class="text-right">{$ARRAY['amount']|number_format:"$PRECISION"}</td>
<td class="text-right">{$ARRAY['confirmations']}</td>
<td class="text-center">
{if !$GLOBAL.website.transactionexplorer.disabled}
<a href="{$GLOBAL.website.transactionexplorer.url}{$ARRAY['txid']}">{$ARRAY['txid']|truncate:20:"...":false:true}</a>
{else}
{$ARRAY['txid']|truncate:20:"...":false:true}
{/if}
</td>
<td class="text-right">{$ARRAY['time']|date_format:$GLOBAL.config.date}
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>