{include file="public/layout" /}
{if condition="$main_lang == $admin_lang || !empty($global['language_split'])"} {eq name="$Think.const.CONTROLLER_NAME.'@add'|is_check_access" value="1"}
新增广告
{/eq} {/if}
{$searchform.hidden|default=''}

{if condition="$main_lang == $admin_lang || !empty($global['language_split'])"} {/if} | ID | 广告名称 | 广告类型 | 封面图片 | 启用 | 操作
--- | --- | --- | --- | --- | --- | ---

{empty name="list"}
{else/} {foreach name="list" item="vo" key="k" }
{if condition="$main_lang == $admin_lang || !empty($global['language_split'])"} {/if} | {eq name='$main_lang' value='$admin_lang'} {$vo.id} {else /} {$main_adv_list[$vo['id']]['id']|default=$vo['id']} {/eq} | {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} {$vo.title} {else /} {$vo.title} {/eq} | {$vo.type_name} | {volist name="$vo.ad" id="vs" length="1" } {eq name="$vo.type" value="1"}{$vo.ad_count}{/eq} {/volist} | {if condition="$vo['status'] eq 1"} 是 {else /} 否 {/if} | {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} 编辑 {/eq} {if condition="$main_lang == $admin_lang || !empty($global['language_split'])"} {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"} 删除 {/eq} {/if} 标签调用
{/foreach} {/empty}

{notempty name="list"}
{if condition="$main_lang == $admin_lang || !empty($global['language_split'])"}
{eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
批量删除
{/eq} {/if} {include file="public/page" /}
{/notempty}
{include file="public/footer" /}