{template 'common/header'} {if in_array($m, $sysmods)}

{loop $active_sub_permission $active_menu} {if permission_check_account_user($active_menu['permission_name'], false) && (empty($active_menu['is_display']) || is_array($active_menu['is_display']) && in_array($_W['account']['type'], $active_menu['is_display']))}
- {$active_menu['title']}
{/if} {/loop}

{else}

{if !empty($_W['current_module']['isrulefields']) &&!empty($_W['account']) && in_array($_W['account']['type'], array(ACCOUNT_TYPE_OFFCIAL_NORMAL, ACCOUNT_TYPE_OFFCIAL_AUTH))}
- 关键字链接入口
{/if} {if !empty($frames['section']['platform_module_common']['menu']['platform_module_cover'])}
- 封面链接入口
{/if}

{/if} {if $m == 'keyword' || $m == 'userapi' || !in_array($m, $sysmods)}
{if in_array($m, $sysmods) && $m != 'userapi'}
{/if}
添加{if $m == 'userapi'}自定义接口{else}关键字{/if}回复 {if in_array($m, $sysmods) && $m != 'userapi'}添加应用关键字{/if}
{if !empty($replies)}

规则名称 | 关键字 | 回复内容 | 开关 | 操作
--- | --- | --- | --- | ---
{loop $replies $row} {if !empty($row['name'])}{$row['name']}{/if} | {loop $row['keywords'] $kw} {$kw['content']} {if $kw['type'] == 4}优先级在{$row['displayorder']}之下直接生效{/if} {/loop} | {if $m == 'userapi'} 自定义 {elseif in_array($row['module'], $sysmods)} 共{$row['allreply']['sum']}条（{if $row['allreply']['basic'] > 0}{$row['allreply']['basic']}条文字 {/if}{if $row['allreply']['images'] > 0}{$row['allreply']['images']}条图片 {/if}{if $row['allreply']['news'] > 0}{$row['allreply']['news']}条图文 {/if}{if $row['allreply']['music'] > 0}{$row['allreply']['music']}条音乐 {/if}{if $row['allreply']['voice'] > 0}{$row['allreply']['voice']}条语音 {/if}{if $row['allreply']['video'] > 0}{$row['allreply']['video']}条视频 {/if}{if $row['allreply']['wxcard'] > 0}{$row['allreply']['wxcard']}条卡券{/if}） {else} {php echo cutstr($row['module_info']['title'], 10);}应用 {/if} |  | {if in_array($row['module'], $sysmods)} 编辑 {else} 编辑 {/if} $row['module'], "rid" => $row["id"]))}')">删除 {loop $entries['rule'] $ext_menu} {$ext_menu['title']} {/loop}
{/loop}

{$pager}
{else}

暂无数据

{/if}
{elseif $m == 'special'}

类型 | 关键字/模块 | 状态 | 操作
--- | --- | --- | ---
{loop $mtypes $name $title}
{$title} | {if !empty($setting[$name]['type'])} {if $setting[$name]['type'] == 'keyword'} {$setting[$name]['keyword']} {else} {loop $setting[$name]['module'] $module_name} {$module[$module_name]['title']} {/loop} {/if} {else} {if !empty($setting[$name]['keyword'])} {$setting[$name]['keyword']} {else} {loop $setting[$name]['module'] $module_name} {$module[$module_name]['title']} {/loop} {/if} {/if} |  | 编辑
{/loop}

{elseif $m == 'welcome'}
用户关注公众号时，发送的欢迎信息。
{php echo module_build_form('core', $rule_keyword_id, array('keyword' => false))}
{elseif $m == 'default'}
当系统不知道该如何回复粉丝的消息时，默认发送的内容。
{php echo module_build_form('core', $rule_keyword_id, array('keyword' => false))}
{elseif $m == 'service'}

服务名称 | 功能说明 | 状态
--- | --- | ---
{{ api.name }} |  |
暂无数据

{/if} {template 'common/footer'}