<!DOCTYPE html>
<html lang="zh">
<head>
    <@meta/>
	<title>渠道列表</title>
    <#include "admin/common/include_hplus.ftl">
    <#include "admin/common/include_form.ftl">
    <#include "admin/common/include_table.ftl">
	<script src="<@contextPath/>/templates/admin/business/marketing/js/list.js" type="text/javascript"></script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <h3>${module.name}</h3>

                        <script type="text/html" id="tableRowToolbar">
                            <a class="btn btn-xs btn-primary" data-event="edit">修改</a></br></br>
                            <a class="btn btn-xs btn-success" data-event="cfgWxcorp">配置企微个人码</a></br></br>
                            {{if wxCorpTagName != null}}
                            <a class="btn btn-xs btn-default" data-event="joinWxcorp">加V列表</a></br></br>
                            <a class="btn btn-xs btn-default" data-event="unJoinWxcorp">付费未加V列表</a>
                            {{/if}}
                            {{if channelConfigId == 228}}
                            </br></br>
                            <a class="btn btn-xs btn-default" data-event="wxaUrlLink">生成短链接</a>
                            {{/if}}
                        </script>

                        <form role="form" class="form-inline" onsubmit="return false">
                            <div class="form-group">
                                <select class="form-control" id="search_channelConfigId">
                                    <option value="">全部</option>
                                    <#list listLandingChannel as c>
                                    <#if c.channelConfigId == channelConfigId>
                                        <option value="${c.channelConfigId}" selected>${c.name}</option>
                                    <#else>
                                        <option value="${c.channelConfigId}">${c.name}</option>
                                    </#if>
                                    </#list>
                                </select>
                            </div>
                            <div class="form-group">
                                <select class="form-control" id="search_launchStatus">
                                    <option value="">全部</option>
                                    <option value="0">暂停</option>
                                    <option value="1">投放</option>
                                </select>
                            </div>
                            <button class="btn btn-primary" type="button" onclick="AppConfigExtend.search()">搜索</button>
                        </form>

                        <div class="btn-group" id="tableEventsToolbar" role="group">
                            <button type="button" class="btn btn-outline btn-default" onclick="AppConfigExtend.add()">
                                <i class="fa fa-plus" aria-hidden="true"></i> 新增
                            </button>
                        </div>
                        <table id="tableEvents" data-mobile-responsive="true">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 渠道类型 -->
    <script type="text/html" id="tpl_channelConfigId">
        {{if channelConfigId == 226}}
        <span class="label label-primary">{{channelConfigName}}</span>
        {{else if channelConfigId == 227}}
        <span class="label label-success">{{channelConfigName}}</span>
        {{else if channelConfigId == 228}}
        <span class="label label-info">{{channelConfigName}}</span>
        {{else}}
        <span class="label label-default">{{channelConfigName}}</span>
        {{/if}}
    </script>
</body>
</html>
