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

time | IP | area | result
--- | --- | --- | ---
{loop $lists $k $v}
{$v[logintime]} | {$v[loginip]} | {$v[area]} | {$v[message]}
{/loop}

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

serial number | spending | unit | module | title | Pay time
--- | --- | --- | --- | --- | ---
{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}
subtotal | {$fee} |

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

serial number | income | spending | balance | bank | Occurrence time | reason | note
--- | --- | --- | --- | --- | --- | --- | ---
{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}
subtotal | {$income} | {$expense} |

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