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

{notempty name='list'}
|  | 关键字 | 类型 | 预览 | 添加时间 | 状态 |
--- | --- | --- | --- | --- | --- | --- | ---
{/notempty}
{foreach $list as $key=>$vo}
|  | {notempty name='vo.qrc'}{/notempty} {$vo.keys} | {$vo.type} | {if $vo.type eq '音乐'} 预览 {elseif in_array($vo.type,['文字','转客服'])} 预览 {elseif $vo.type eq '图片'} 预览 {elseif $vo.type eq '图文'} 预览 {elseif $vo.type eq '视频'} 预览 {elseif $vo.type eq '语音'} 预览 {else} {$vo.content} {/if} | {$vo.create_at|format_datetime} | {if $vo.status eq 0}已禁用{elseif $vo.status eq 1}使用中{/if} | {if auth("edit")} 编 辑 {/if} {if $vo.status eq 1 and auth("state")} 禁 用 {elseif auth("state")} 启 用 {/if} {if auth("remove")} 删 除 {/if}
{/foreach}

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