{template 'header', $module}
流水记录
{if $action == 'charge'}
{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 == 'cash'}
{dcalendar('fromtime', $fromtime)} 至 {dcalendar('totime', $totime)}

流水号 | 金额 | 手续费 | 收款方式 | 收款帐号 | 收款人 | 申请时间 | 受理时间 | 状态
--- | --- | --- | --- | --- | --- | --- | --- | ---
{loop $cashs $k $v}
{$v[itemid]} | {$v[amount]} | {$v[fee]} | {$v[bank]} | {$v[account]} | {$v[truename]} | {$v[addtime]} | {$v[edittime]} {$v[dstatus]}
{/loop}
小计 | {$amount} | {$fee} |

{$pages}
{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} | {$v[bank]} | {$v[addtime]} |  |
{/loop}
小计 | {$income} | {$expense} |

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