{template 'header', $module}
{if $action == 'exchange'}

available{$MOD[ex_name]} | {$num}
Exchange rate | 1 {$MOD[ex_name]} exchange{$MOD[ex_rate]} {$DT[credit_name]}
* Exchange quota |

{elseif $action == 'buy'}

Account balance can be used | {$_money} {$DT[money_unit]}
* buy limit |
check | {$DT[credit_name]}({$DT[credit_unit]}) | {$DT[money_name]}({$DT[money_unit]})
{loop $C $k $v}
| {$v} | {$P[$k]}
{/loop}
* PayPassword | {template 'password', 'chip'}

{else}
{$fields_select}
{dcalendar('fromtime', $fromtime)} to {dcalendar('totime', $totime)}

serial number | income | pay | balance | occurrence time | cause | Note
--- | --- | --- | --- | --- | --- | ---
{loop $records $k $v}
{$v[itemid]} | {if $v[amount] > 0}{$v[amount]}{else} {/if} | {if $v[amount] < 0}{$v[amount]}{else} {/if} | {if $v[balance]}{$v[balance]}{else} {/if} | {$v[addtime]} |  |
{/loop}
subtotal | {$income} | {$expense} |

{$pages}
{/if} {template 'footer', $module}