<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="marketingchannel">
    <tbody>
        <tr>
            <!--leftNav-->
            <td width="198" height="450" valign="top" id="tdleft">
                <div id="left" ms-widget="leftMenu,channelMenu">
                </div>
                <!--End leftNav-->
            </td>
            <td valign="top" id="right" class="">
                <div class="boxtip" id="boxtip" style="display: none; width: 80%;">
                    <h1></h1>
                    <p></p>
                    <a href="javascript:history.go(-1)" class="btn_back"></a>
                </div>
                <div>
                    <div class="a-title">
                        <span class="ico">最新渠道政策：</span>
                        <ul id="PolicyUL">
                            <li ms-repeat-item="policyList"><span>{{$index + 1}}</span> <a ms-href="'#/Market/ChannelPolicy/'+item.Id">{{item.Title}}</a><samp class="samp" ms-if="item.StartDate">({{item.StartDate|truncate(10,'')}})</samp></li>
                            <a class="more1" href="#/Market/ChannelPolicy" style="margin-top: 15px;">更多</a>
                        </ul>
                    </div>
                    <table border="0" align="center" cellpadding="0" cellspacing="0" id="nobgmian" style="margin: 15px 0; width: 100%">
                        <tbody>
                            <tr>
                                <td width="300" valign="top" bgcolor="#FFFFFF" class="bordergrag">
                                    <div class="boxTitlenoneb">
                                        <h2>最新代理商</h2>
                                        <div class="input-append">
                                            <input type="text" ms-duplex="keyword" ms-keyup="onkeyup" style="width: 215px; margin-left: 10px; font-size: 12px; color: #989898;"
                                                placeholder="请输入客户名称...">
                                            <button class="add-on ibtsearch" style="height: 28px; font-size: 12px; padding: 3px 12px;" ms-click="searchCustomer">
                                                搜索</button>
                                        </div>
                                        <div style="border-top: #D2D2D2 solid 1px; overflow: hidden;" class="folderbox2">
                                            <ul id="CustomerListUl" style="height: 500px;">
                                                <li class="bindQuick" ms-repeat-item="customerList"><span class="num1">{{$index+1}}</span><a href="javascript:void(0)" ms-click="getChannel(item.Id)">{{item.Name|truncate(16,'')}}</a><samp class="samp">({{item.AddTime|truncate(10,'')}})</samp></li>
                                            </ul>
                                            <div style="border-top: #D2D2D2 solid 1px; height: 90px;">
                                                <ul class="footul">
                                                    <li><span style="color: #2d2d2d;">共有渠道代理商：</span><span id="CountAgent" style="color: #098A24; font-size: 18px; font-weight: bold;">{{totalCustomer}}</span></li>
                                                    <li><span style="color: #7a7979;">上月增代理：</span><span style="color: #000000;">{{count.count2}}</span><span style="color: #7a7979; margin-left: 45px;">本月增代理：</span><span style="color: #098a24;">{{count.count1}}</span> </li>
                                                    <li><span style="color: #7a7979;">环比增长率：</span><span style="color: #f00404;">{{count.scale}}%</span>
                                                    </li>
                                                </ul>
                                                <style>
                                                    .footul li
                                                    {
                                                        background: none;
                                                        padding-left: 11px;
                                                        height: 24px;
                                                    }

                                                        .footul li:hover
                                                        {
                                                            background: none;
                                                            padding-left: 11px;
                                                        }
                                                </style>
                                            </div>
                                            <div ms-widget='paging,listPage,listPageOps'></div>
                                        </div>
                                    </div>
                                </td>
                                <td width="12" valign="top">&nbsp;
                                </td>
                                <td valign="top">
                                    <!--自定义模块-->
                                    <!--说明：1或(序号-1)整除3余0则加样式modfrist-->
                                    <table border="0" cellspacing="0" cellpadding="0" class="deskmian bottom10" style="margin: -15px 0; width: 100%; margin-left: 3px;">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div class="module" style="width: 98.5%;">
                                                        <h3>
                                                            <div><span style="border: none; width: 100px; margin-right: 3px;"><a class="more1" href="#/Market/ChannelDevelop">更多</a></span></div>
                                                            最新渠道开发维护</h3>
                                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="grid3">
                                                            <thead>
                                                                <tr class="head" style="background-color: rgb(255, 255, 255);">
                                                                    <td align="center" style="color: #2D2D2D">主题
                                                                    </td>
                                                                    <td width="25%" align="center" style="color: #2D2D2D">渠道代理商
                                                                    </td>
                                                                    <td width="15%" align="center" style="color: #2D2D2D">行为分类
                                                                    </td>
                                                                    <td width="15%" align="center" style="color: #2D2D2D">发布时间
                                                                    </td>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr ms-repeat-item="channelList" style="background-color: rgb(255, 255, 255);">
                                                                    <td align="left" style="color: #4D4D4D" class="devand">
                                                                        <a ms-href="'#/Market/ChannelDevelop/'+item.Id">{{item.Title}}</a>
                                                                    </td>
                                                                    <td align="left" style="color: #4D4D4D">
                                                                        <a ms-href="'#/Customer/DetailCustomer/'+item.ChannelAgentId">{{item.ChannelAgentDisplay}}</a>
                                                                    </td>
                                                                    <td align="center" style="color: #4D4D4D">{{item.BehaviorDisplay}}
                                                                    </td>
                                                                    <td align="center" style="color: #4D4D4D">{{item.AddTime|truncate(10,'')}}
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <div class="module" style="width: 98.5%">
                                                        <h3>
                                                            <div>
                                                                <span style="border: none; width: 100px; margin-right: 3px;"><a class="more1" href="#/Market/ChannelOrder">更多</a></span>
                                                            </div>
                                                            最新渠道订单</h3>
                                                        <div style="display: none" class="ipage supplyboxpage" data-id="orpaging" data-total="false" data-showpages="5" data-showtotal="false" data-enablesetsize="false" data-pagesize="10">
                                                            <div class="pageitems"><a href="#" class="first_last" style="display: inline-block;">首页</a><div class="pagenums"><a class="active" href="0">1</a></div>
                                                                <a href="#" class="first_last" style="display: inline-block;">末页</a></div>
                                                            <div class="pageoption" style="display: none;">
                                                                <!--@-->
                                                                <!--@-->
                                                                <span style="display: none;">总共1条</span></div>
                                                        </div>
                                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="grid4">
                                                            <thead>
                                                                <tr class="head" style="background-color: rgb(255, 255, 255);">
                                                                    <td align="center" style="color: #2D2D2D">（合同格式）合同名称
                                                                    </td>
                                                                    <td width="15%" align="center" style="color: #2D2D2D">我方签约人
                                                                    </td>
                                                                    <td width="15%" align="center" style="color: #2D2D2D">签约日期
                                                                    </td>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr ms-repeat-item="contractList" style="background-color: rgb(255, 255, 255);">
                                                                    <td align="left" style="color: #4D4D4D">
                                                                        <a ms-href="'#/Market/Contract/'+item.Id+'/view'" title="查看合同订单简格式">{{item.ContractName}}</a>
                                                                    </td>
                                                                    <td align="center" style="color: #4D4D4D">{{item.MySignPersionName}}
                                                                    </td>
                                                                    <td align="center" style="color: #4D4D4D">{{item.SignAContractDate}}
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <style type="text/css">
                        .a-title
                        {
                            background: url(/Content/Themes/Base/Images/title_bg.png);
                            height: 40px;
                            border: #D2D2D2 solid 1px;
                            margin-top: 8px;
                        }

                            .a-title span
                            {
                                height: 36px;
                                line-height: 36px;
                                color: #2d2d2d;
                                display: inline-block;
                                padding: 0 3px;
                                font-size: 14px;
                                font-weight: bold;
                            }

                        .img
                        {
                            width: 6px;
                            float: left;
                            margin-top: 12px;
                            margin-left: 12px;
                        }

                        .module span
                        {
                            margin-right: 20px;
                        }

                        .a-title .ico
                        {
                            background: url(/Content/Themes/Base/Images/ico/m_msg.png) no-repeat 0;
                            padding: 2px 0 0 25px;
                            margin: 2px 10px 0 12px;
                        }

                        .a-title ul
                        {
                            list-style: none;
                            margin: -42px 0 0 150px;
                            overflow: hidden;
                            height: 47px;
                        }

                            .a-title ul li
                            {
                                display: inline;
                                padding: 2px 0 0 25px;
                            }

                                .a-title ul li span
                                {
                                    background: url(/Content/Themes/Base/Images/ico/m_num.png) no-repeat 0;
                                    margin: 4px;
                                    width: 12px;
                                    color: White;
                                    padding-left: 4px;
                                }

                        .samp
                        {
                            color: #7a7979;
                        }

                        .a-title ul li a
                        {
                            color: #2d2d2d;
                        }

                        .more
                        {
                            color: #016B96;
                            float: right;
                            margin: 22px 25px;
                            padding-left: 10px;
                            background: url(/Content/Themes/Base/images/ico/more.png) no-repeat 0;
                            background-size: 6px;
                            font-size: 9px;
                        }

                        .more1
                        {
                            color: #016B96;
                            float: right;
                            margin: 2px 24px;
                            padding-left: 10px;
                            background: url(/Content/Themes/Base/images/ico/more.png) no-repeat 0;
                            background-size: 6px;
                            font-size: 9px;
                        }

                        .num1
                        {
                            background: url(/Content/Themes/Base/Images/MarketDesktop.png);
                            background-position: -142px 4px;
                            width: 16px;
                            text-align: center;
                            height: 25px;
                            display: block;
                            float: left;
                            color: #fff;
                            margin-right: 5px;
                        }

                        .folderbox2
                        {
                            padding: 5px;
                        }

                            .folderbox2 li
                            {
                                line-height: 26px;
                            }
                    </style>
                </div>
            </td>
        </tr>
    </tbody>
</table>
