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

可用{$MOD[ex_name]} | {$num}
兑换比率 | 1 {$MOD[ex_name]} 兑换 {$MOD[ex_rate]} {$DT[credit_name]}
* 兑换额度 |

{elseif $action == 'buy'}

帐户可用余额 | {$_money} {$DT[money_unit]}
* 购买额度 |
选 | {$DT[credit_name]}({$DT[credit_unit]}) | {$DT[money_name]}({$DT[money_unit]})
{loop $C $k $v}
| {$v} | {$P[$k]}
{/loop}
* 支付密码 | {template 'password', 'chip'}

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

流水号 | 收入 | 支出 | 余额 | 发生时间 | 事由 | 备注
--- | --- | --- | --- | --- | --- | ---
{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}
小计 | {$income} | {$expense} |

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