{extend name='admin@main'} {block name="button"} {if auth("add")} {/if} {if auth("remove")} {/if} {/block} {block name="content"}
{include file='auth/index_search'} {notempty name='list'} {/notempty} {foreach $list as $key=>$vo} {/foreach}
权限名称 权限路径 使用状态 登录时间
{$vo.title|default=''} {$vo.path|nl2br|raw} {eq name='vo.status' value='0'}已禁用{/eq} {eq name='vo.status' value='1'}使用中{/eq} {$vo.create_at|format_datetime} {if auth("edit")} 编 辑 {/if} {if auth("state") and $vo.status neq 0} 禁 用 {elseif auth("state") and $vo.status neq 1 } 启 用 {/if} {if auth("remove")} 删 除 {/if}
{empty name='list'}没有记录哦{else}{$pagehtml|raw|default=''}{/empty}
{/block}