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

{notempty name='list'}
| 权限信息 | 创建时间 | 使用状态 |
--- | --- | --- | --- | ---
{/notempty}
{foreach $list as $key=>$vo}

权限名称：{$vo.title|default='-'}

权限描述：{$vo.desc|default="没有写描述哦！"}

日期：{$vo.create_at|format_datetime|str_replace=' ','
时间：',###|raw}

{eq name='vo.status' value='0'}已禁用{else}使用中{/eq}

{if auth("akszadmin/auth/edit")} | 编 辑 {/if} {if auth("akszadmin/auth/apply")} 授 权 {/if} {if $vo.status eq 1 and auth("akszadmin/auth/forbid")} 禁 用 {elseif $vo.status eq 0 and auth("akszadmin/auth/resume")} 启 用 {/if} {if auth("akszadmin/auth/remove")} 删 除 {/if}

{/foreach}

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