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

* | {$mob} [] []
* | 0 0({$DT[sms_len]}/){$_sms}

{elseif $action == 'buy'}

| {$_money} {$DT[money_unit]}
| {$fee} {$DT[money_unit]}/
| {$_sms}
* |
* | {template 'password', 'chip'}

{elseif $action == 'record'}
{dcalendar('fromtime', $fromtime)} {dcalendar('totime', $totime)}

{loop $lists $k $v}
{$v[itemid]} | {$v[sendtime]} | {$v[message]} | {$v[word]} | {$v[num]} | {$v[code]}
{/loop}

{$pages}
{elseif $action == 'send'}
{dcalendar('fromtime', $fromtime)} {dcalendar('totime', $totime)}

{loop $lists $k $v}
{$v[itemid]} | {$v[sendtime]} | {$v[message]} | {$v[word]} | {$v[num]} | {$v[code]}
{/loop}

{$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[addtime]} |  |
{/loop}
§³ | {$income} | {$expense} |

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