{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'}

{elseif $action == 'invite'}

| - QQ/MSN/Email - ,,
| - IP {$MOD[credit_ip]} {$DT[credit_name]} (24§³{$MOD[credit_maxip]}{$DT[credit_name]}) - {$MOD[credit_user]} {$DT[credit_name]}
| - - - IP 24§³
| »

{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}