{literal}
<script language=javascript>
function go(p)
{
  document.opts.page.value = p;
  document.opts.submit();
}
</script>
{/literal}
<!--Row-->
					<div class="row">
						<div class="col-xl-12 col-lg-12 col-md-12">
							<div class="card">
								<div class="card-header">
									<h3 class="card-title">Transaction history</h3>
								</div>
								<div class="card-body">
									<div class="table-responsive">
<table class="table table-vcenter text-nowrap mb-0 table-striped table-bordered border-top">
<thead class="">
												<tr>
													<th>Type</th>
                                                    <th>Amount</th>
                                                    <th>Date</th>
												</tr>
											</thead>
{foreach from=$trans item=t}
<tr>
 <td><b>{$t.transtype}</b></td>
 <td width=200 align=right><b>{$t.amount|fiat:$t.ec}</b> <img src="images/{$t.ec}.gif" align=absmiddle hspace=1 height=17>{if $t.type == 'withdraw_pending'}<a href="{"?a=cancelwithdraw&id=`$t.id`&return=`$return`&"|encurl}" onclick="return confirm('Are you sure you want to delete this request?')">[cancel]</a>{/if}</td>
 <td width=170 align=center valign=bottom><b><small>{$t.d}</small></b></td>
</tr>
<tr>
 <td colspan=3 class=gray><small>{$t.description|escape:html}</small></td>
</tr>
{foreachelse}
<tr>
 <td colspan=3 align=center>No transactions found</td>
</tr>
{/foreach}
<tr><td colspan=3>&nbsp;</td>

{if $totals}
<tr>
 <td><b>Total for selected options:</b></td>
 <td align=right nowrap>
  {foreach from=$totals item=t}{$t.amount|fiat:$t.ec} <img src="images/{$t.ec}.gif" align=absmiddle><br>{/foreach}
 </td>
 <td></td>
</tr>
{/if}

{*
{if $trans}
<tr>
    <td colspan=2>For this period:</td>
 <td align=right><b>{$currency_sign} {$periodsum}</b></td>
</tr>
{/if}
<tr>
    <td colspan=2>Total:</td>
 <td align=right><b>{$currency_sign} {$allsum}</b></td>
</tr>
*}
</table>

{paginator col=$paginator.col cur=$paginator.cur url="javascript:go('%s')"}
</div>
								</div>
							</div>
						</div>
					</div>
					<!--End row-->