{template 'header', $module}
{if $action == 'record'}
{dcalendar('fromtime', $fromtime)} {dcalendar('totime', $totime)}

{loop $charges $k $v}
{$v[itemid]} | {$v[amount]} | {$v[fee]} | {$v[money]} | {$PAY[$v[bank]][name]} | {$v[sendtime]} | {$v[receivetime]} | {$v[dstatus]}
{/loop}
§³ | {$amount} | {$fee} | {$money} |

{$pages}
{elseif $action == 'card'}

{elseif $action == 'pay'} {if $MOD[pay_online]}

* | {if $charges} {loop $charges $k $v} {$v}{$DT[money_unit]} {/loop} {else} {$DT[money_unit]} {/if}
* | {php $i=0;} {loop $PAY $k=>$v} {if $v[enable]}
|  | {$v[percent]}%
{php $i=1;} {/if} {/loop} {if $i==0}
¦Ä
{/if}

{/if}
{elseif $action == 'confirm'}

| {$amount} {$DT[money_unit]}
| {$fee} {$DT[money_unit]}
| {$charge} {$DT[money_unit]}
| - - ¦Ê

{if $auto}
{/if}
{else}

{if $charge_status == 2}
| - {$charge_errcode} -
{elseif $charge_status == 1}
| {$charge_amount} {$DT[money_unit]}
| - -
{else}
| - -
{/if}

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