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

时间 | IP | 地区 | 结果
--- | --- | --- | ---
{loop $lists $k $v}
{$v[logintime]} | {$v[loginip]} | {$v[area]} | {$v[message]}
{/loop}

{else}
{if $action == 'pay'}
{$module_select}
{dcalendar('fromtime', $fromtime)} 至 {dcalendar('totime', $totime)}

流水号 | 支出 | 单位 | 模块 | 标题 | 支付时间
--- | --- | --- | --- | --- | ---
{loop $lists $k $v}
{$v[pid]} | {$v[fee]} | {if $v[currency] == 'money'}{$DT[money_unit]}{else}{$DT[credit_unit]}{/if} | {$MODULE[$v[moduleid]][name]} | {$v[title]} | {$v[paytime]}
{/loop}
小计 | {$fee} |

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

流水号 | 收入 | 支出 | 余额 | 银行 | 发生时间 | 事由 | 备注
--- | --- | --- | --- | --- | --- | --- | ---
{loop $lists $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[bank]} | {$v[addtime]} |  |
{/loop}
小计 | {$income} | {$expense} |

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