php-mpos/templates/bootstrap/admin/wallet/transactions.tpl
2015-04-16 10:38:32 +02:00

44 lines
1.8 KiB
Smarty

<div class="row">
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading">
<i class="fa fa-connectdevelop fa-fw"></i> Last {$TRANSACTIONS|count} transactions
</div>
<div class="panel-body no-padding">
<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']}</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>