{template 'common/header'}
{if ($do == 'manage') && ($setting['status'] == 1)}
筛选
使用状态
不限 启用 禁用
{if $setting['nums_status'] == 1}
{$setting['nums_text']}
不限 未用完 已用完
{/if} {if $setting['nums_status'] == 1}
{$setting['times_text']}
不限 已到期 7天内到期 半月内到期 一月内到期 三月内到期
{/if}
卡号
姓名/手机号

{if $setting['nums_status'] == 1}
{/if} {if $setting['times_status'] == 1}
{/if}
卡号/所属用户组 | 姓名/手机号 | 积分/余额 | {$setting['nums_text']} | {$setting['times_text']} | 领卡时间 | 是否开启 | 操作
--- | --- | --- | --- | --- | --- | --- | ---
{loop $list $row}
{if $setting['nums_status'] == 1}
{/if} {if $setting['times_status'] == 1}
{/if}

{$row['cardsn']}
{$_W['account']['groups'][$row['groupid']]['title']}

{$row['realname']}
{$row['mobile']}

积分:{$row['credit1']}
余额:{$row['credit2']}

{if !$row['nums']} 已用完 {else} {$row['nums']}次 {/if}

{if $row['endtime'] < time()} {php echo date('Y-m-d', $row['endtime']);} 已到期 {else} {php echo date('Y-m-d', $row['endtime']);} {/if}

{php echo date('Y-m-d H:i', $row['createtime']);}

改卡号 积分 余额 消费
删除 消费记录 {if $setting['times_status'] == 1 || $setting['nums_status'] == 1} 充值/消费 {/if}

{/loop}

{$pager}
{/if} {if $do == 'record'}
筛选
类型
不限 {if $setting['nums_status'] == 1} {$setting['nums_text']} {/if} {if $setting['times_status'] == 1} {$setting['times_text']} {/if} 积分消费记录 余额消费记录 现金消费记录
时间
{php echo tpl_form_field_daterange('endtime', array('start' => date('Y-m-d', $starttime), 'end' => date('Y-m-d', $endtime)));}
{if $setting['nums_status'] == 1}{$setting['nums_text']}剩余：{$card['nums']}次{/if} {if $setting['times_status'] == 1}{$setting['times_text']}：{php echo date('Y-m-d', $card['endtime']);}到期{/if}

类型 | 充值/消费 | 详情 | 备注 | 时间
--- | --- | --- | --- | ---
{loop $list $row}

{if $row['type'] == 'nums'} {$setting['nums_text']} {else} {$setting['times_text']} {/if}

{if $row['type'] == 'nums'} {if $row['model'] == 1} 充值{$row['tag']}次 {else} 消费{$row['tag']}次 {/if} {else} {if $row['model'] == 1} 服务延长{$row['tag']}天 {else} 服务减少{$row['tag']}天 {/if} {/if}
收费{$row['fee']}元

{php echo cutstr($row['note'], 45);}

{php echo cutstr($row['remark'], 30);}

{php echo date('Y-m-d H:i', $row['addtime']);}

{/loop}

{$pager}
{/if} {template 'common/footer'}