{extend name='main'} {block name="button"} {if auth("add")}
{/if} {if auth("remove")}
{/if} {/block} {block name="content"}
{include file='user/index_search'}

{notempty name='list'}
| 用户账号 | 联系手机 | 登录次数 | 使用状态 | 创建时间 | 登录时间 |
--- | --- | --- | --- | --- | --- | --- | ---
{/notempty}
{foreach $list as $key=>$vo}
| {$vo.username|default=''} | {$vo.phone|default='-'} | {$vo.login_num|default=0} | {eq name='vo.status' value='0'}已禁用{else}使用中{/eq} | {$vo.create_at|format_datetime} | {if $vo.login_num>0}{$vo.login_at|format_datetime}{else} - {/if} | {if auth("pass")} 密 码 {/if} {if auth("edit")} 编 辑 {/if} {if $vo.status eq 1 and auth("forbid")} 禁 用 {elseif $vo.status eq 0 and auth("resume")} 启 用 {/if} {if auth("remove")} 删 除 {/if}
{/foreach}

{empty name='list'}没有记录哦{else}{$pagehtml|raw|default=''}{/empty}
{/block}