<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin_Course_KS_EpConfig" Codebehind="KS.EpConfig.aspx.cs" %>

<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="System.Xml" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
   <div id="manage_top" class="menu_top_fixed">
         <ul class="titleTab">
          <li class="curr"><a href="KS.EPConfig.aspx">机构频道设置</a></li>
          <li><a href="KS.EPCatetory.aspx">行业设置</a></li>
          <li><a href="KS.EnterPriseNavClass.aspx">机构主页导航设置</a></li>
       </ul>
 </div>  
<div class="menu_top_fixed_height"></div> 
    <div class="content-area">
        <script>                


            jQuery(document).ready(function () {

                showEpOnMain();
                showStatus();
                showSign();
                showDuanXin();
                showaddScore();
            });
            function showStatus() {
                var checkrad = jQuery("#<%=this.RbRz.ClientID %> :radio[checked]").val();
                if (checkrad == 1) {
                    $("#zizhi").show();
                    $("#RealRz").show();
                    $("#BanXue").show();
                }
                else {
                    $("#zizhi").hide();
                    $("#RealRz").hide();
                    $("#BanXue").hide();
                }
            }
            function showSign() {
                var checkrad = jQuery("#<%=this.RadioButtonList3.ClientID %> :radio[checked]").val();
                 if (checkrad == 1) {
                     $("#signin").show();

                 }
                 else {
                     $("#signin").hide();
                 }
             }
            function showDuanXin() {
                var checkrad = jQuery("#<%=this.RadioButtonList1.ClientID %> :radio[checked]").val();
                if (checkrad == 1) {
                    $("#duanxinseting").show();
                }
                else {
                    $("#duanxinseting").hide();
                }
            }
            function showaddScore() {
                var checkrad = jQuery("#<%=this.RadioButtonList6.ClientID %> :radio[checked]").val();
                 if (checkrad == 1) {
                     $("#addscore").show();
                 }
                 else {
                     $("#addscore").hide();
                 }
             }
             //是否显示CNAME解析域名位置
             function showEpOnMain() {
                 var checkrad = jQuery("#<%=this.RadioButtonList5.ClientID %> :radio[checked]").val();
                      if (checkrad == 2) {
                          $("#Onmain").show();
                      }
                      else {
                          $("#Onmain").hide();
                      }
             }
            function CheckForm() {
                if (jQuery("#<%=this.RadioButtonList1.ClientID %> :radio[checked]").val() == "1") {
                    if (jQuery("#<%=this.TxtTiaoshu.ClientID %>").val() == "") {
                        KesionJS.Alert("请输入每次允许购买的短信条数", "jQuery('#<%=this.TxtTiaoshu.ClientID %>').focus()");
                        return false;
                    }
                    if (jQuery("#<%=this.TxtDuanxinMoney.ClientID %>").val() == "") {
                        KesionJS.Alert("请输入每条短信的价格", "jQuery('#<%=this.TxtDuanxinMoney.ClientID %>').focus()");
                        return false;
                    }
                }
                return true;
            }
        </script>
        <style>
        #ctl00_KSContent_AreaList tr td{ padding:10px;}
        </style>
        <div class="tab-page" id="SystemEpPanel">
            <script type="text/javascript">
                  var tabPane1 = new WebFXTabPane(document.getElementById("SystemEpPanel"), 1)
            </script>

            <div class="tab-page" id="tab0">
                <h2 class="tab">基本参数</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab0"));
                </script>

                <table id="tbs" width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>机构频道状态：</b></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="EpStatus" runat="server" RepeatDirection="horizontal">
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                                <asp:ListItem Value="1" Selected>正常</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>机构频道名称：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TxtEpName" runat="server"></asp:TextBox>
                            <span class="tips">如机构，机构频道。</span></td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>内容页是否启用机构模板：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList7" runat="server" RepeatDirection="horizontal">

                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1" Selected>启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果是启用的话，那么机构就会有独立的内容页(网授内容页，面授内容页，直播内容页，讲师内容页)，否则不启用的话，就是跟平台共用内容页的</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>机构信息完善：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="EpPubVefify" runat="server" RepeatDirection="horizontal">

                                <asp:ListItem Value="0">不需要审核</asp:ListItem>
                                <asp:ListItem Value="1" Selected>需要审核</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">前台机构信息完善是否需要审核</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>机构允许设置二级域名：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList5" runat="server" RepeatDirection="horizontal" onclick="showEpOnMain()">
                                <asp:ListItem Value="0">不允许</asp:ListItem>
                                <asp:ListItem Value="1" Selected="True">允许开启二级域名</asp:ListItem>
                                <asp:ListItem Value="2" Selected="True">允许开启二级域名以及绑定独立域名</asp:ListItem>
                            </asp:RadioButtonList>
                            <div>
                                二级域名后缀：<asp:TextBox CssClass="textbox" ID="TxtEpDomain" runat="server"></asp:TextBox><br />
                                <span id="Onmain">CNAME指定域名：<asp:TextBox CssClass="textbox" ID="TxtEpOnDomain" runat="server"></asp:TextBox><br />
                                </span>
                                <span class="tips">设置说明：<br />
                                    1、举例：如这里填的后缀为kesion.com。那么机构对应的域名为 *.kesion.com，如 a.kesion.com等；<br />
                                    2、需要先将您要做为后缀的域名做泛解释到您的服务器IP上；<br />
                                    3、CNAME解析方式支持机构的自定义独立域名；
                                </span>
                            </div>

                        </td>
                    </tr>



                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>行业基础设置：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="Industry" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1">一级</asp:ListItem>
                                <asp:ListItem Value="2" Selected>二级</asp:ListItem>
                                <asp:ListItem Value="3">三级</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>



                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>机构是否拥有手机短信提醒：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" onclick="showDuanXin()">
                                <asp:ListItem Value="0" Selected>否</asp:ListItem>
                                <asp:ListItem Value="1">是</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果是的话，机构就会在他的会员中心那边开启进行配置</span>
                            <br />
                            <div id="duanxinseting">
                                <asp:TextBox ID="TxtTiaoshu" runat="server" CssClass="textbox" Width="50px"></asp:TextBox>条 <span class="tips">一次可以购买几条短信</span>
                                <br />
                                <asp:TextBox ID="TxtDuanxinMoney" runat="server" CssClass="textbox" Width="50px"></asp:TextBox>元 <span class="tips">一条多少钱（0.01==是1分钱）</span>
                            </div>

                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>前台发布是否审核通过：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected>不需要审核</asp:ListItem>
                                <asp:ListItem Value="1">需要审核</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">机构发布任何信息将是否需要审核</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>前台修改是否审核通过：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList4" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected>不需要审核</asp:ListItem>
                                <asp:ListItem Value="1">需要审核</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">机构修改任何信息将是否需要审核</span>
                        </td>
                    </tr>


                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>前台机构会员是否启用签到：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" onclick="showSign()">
                                <asp:ListItem Value="0" Selected>不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果启用的话，会员中心，那边就会有签到的按钮</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否启用资质认证：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RbRz" runat="server" RepeatDirection="horizontal" onclick="showStatus()">
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <div id="zizhi">
                                是否启用课程下架：
                                <asp:RadioButtonList ID="RbOff" runat="server" RepeatDirection="horizontal">
                                    <asp:ListItem Value="0">不启用</asp:ListItem>
                                    <asp:ListItem Value="1">启用</asp:ListItem>
                                </asp:RadioButtonList>
                                <span class="tips">企业认证到期是否把课程下架</span>
                                <br />
                                认证到期提前天数可申请：
                               	<asp:TextBox CssClass="textbox" ID="TextBox4" Width="50px" runat="server"></asp:TextBox>天（建议1-30天）
                                <span class="tips">企业认证到期提前天数方可开始申请下一个认证</span>
                                <br />
                                （年审）每：
                              	<asp:TextBox CssClass="textbox" ID="TextBox6" Width="50px" runat="server"></asp:TextBox>年认证
                              	<span class="tips">如果设置为0的话，是不用都去申请认证</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否启用机构分成：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="EPmoney" runat="server" RepeatDirection="Horizontal" onclick="showSign()">
                                <asp:ListItem Value="0" Selected>不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果启用，系统自动计算企业的订单分成金额</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>提现手续费用：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextNums" runat="server" CssClass="textbox" Width="50px">0</asp:TextBox>

                            <span class="tips">%,0为不设手续费</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>网站的版权信息：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox textarea" Width="350" Height="100" ID="CopyRight" runat="server" TextMode="MultiLine" Columns="50" Rows="4"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.CopyRight.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.CopyRight.ClientID %>');"></a>
                            <br />
                            <span class="tips">用于显示网站版权、联系方式等，支持html语法。</span>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tab-page" id="tab6">
                <h2 class="tab">VIP等级分配</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab6"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr class="CTitle">
                        <td colspan="2" style="font-size:16px;">
                            免费机构
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>发布网授课程上限：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox10" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>个。
                        <span class="tips">设置0不限制。</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>发布面授课程上限：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox1" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>个。
                        <span class="tips">设置0不限制。</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>发布直播课程上限：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TxtLive" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>个。
                        <span class="tips">设置0不限制。</span>
                        </td>
                    </tr>
                    <% if (Utils.IsBuyYunServer("yunvideo") == "2")
                        { %>
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>视频个数：</strong>
                        </td>

                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox15" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>个。
                        </td>
                    </tr>
                    <%} %>
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>发布教师上限：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox12" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>位。
                        <span class="tips">设置0不限制。</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>发布新闻上限：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox2" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>条。
                        <span class="tips">设置0不限制。</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>模板套数：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox3" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>套
                        <span class="tips" style="color: red">设置为0无效</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>短信条数：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TextBox5" Style="width: 60px; text-align: center" runat="server"></asp:TextBox>条
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>机构默认分成比例：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" Width="50" Style="width: 60px; text-align: center" ID="EpDefaultMoney" Text="100" runat="server"></asp:TextBox>%
					    <span class="tips" style="color: red">例：设置100%为平台不抽成,设置90%为平台收取10%</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            
                        </td>
                        <td class="righttd">
                            <asp:Button ID="Button1" runat="server" CssClass="button button_on" Text="增加收费类型" OnClick="Button1_Click" />
                        </td>
                    </tr>
                    <tr class="CTitle">
                        <td colspan="2" style="font-size:16px;">
                            收费机构
                        </td>
                    </tr>
                    <tr>

                        <td colspan="2">
                            <asp:Panel ID="ListPannel" runat="server" Width="100%">
                                <asp:GridView ID="AreaList" runat="server" AutoGenerateColumns="False" EmptyDataText="请增加收费类型" GridLines="None" HorizontalAlign="Center" Width="99%" OnRowCommand="AreaList_RowCommand" OnRowDataBound="List_RowDataBound" OnRowCreated="List_RowCreated">
                                    <EmptyDataRowStyle CssClass="emptycss" />
                                    <Columns>

                                        <asp:TemplateField HeaderText="收费类型">
                                            <ItemStyle HorizontalAlign="Left" Width="40" />
                                            <ItemTemplate>
                                                <asp:HiddenField ID="hdID" Value='<%#Eval("ID") %>' runat="server" />
                                                <asp:TextBox CssClass="textbox" Width="40px" ID="Title" Text='<%#Eval("Title") %>' runat="server" Style="text-align: center"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="有效期月">
                                            <ItemStyle HorizontalAlign="Center" Width="40" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Num" Width="40px" Style="text-align: center" Text='<%#Eval("Num") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>


                                        <asp:TemplateField HeaderText="收费价格(元)">
                                            <ItemStyle HorizontalAlign="Center" Width="40" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Money" Width="40px" Style="text-align: center" Text='<%# Kesion.APPCode.Public.ReturnShopPrice(Utils.StrToDecimal( Eval("Money"))) %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="网授(个)">
                                            <ItemStyle HorizontalAlign="Center" Width="25px" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Course" Width="25px" Style="text-align: center" Text='<%#Eval("Course") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="面授(个)">
                                            <ItemStyle HorizontalAlign="Center" Width="25px" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Face" Width="25px" Style="text-align: center" Text='<%#Eval("Face") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="直播(个)">
                                            <ItemStyle HorizontalAlign="Center" Width="25px" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Live" Width="25px" Style="text-align: center" Text='<%#Eval("Live") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="教师(位)">
                                            <ItemStyle HorizontalAlign="Center" Width="25" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Teacher" Width="25px" Style="text-align: center" Text='<%#Eval("Teacher") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="视频(个)" Visible="true">
                                            <ItemStyle HorizontalAlign="Center" Width="25" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="YunVideo" Width="25px" Style="text-align: center" Text='<%#Eval("YunVideo") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="新闻(条)">
                                            <ItemStyle HorizontalAlign="Center" Width="25" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="News" Width="25px" Style="text-align: center" Text='<%#Eval("News") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="模板(套)">
                                            <ItemStyle HorizontalAlign="Center" Width="25" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Moban" Width="25px" Style="text-align: center" Text='<%#Eval("moban") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="短信(条)">
                                            <ItemStyle HorizontalAlign="Center" Width="25" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="Duanxin" Width="25px" Style="text-align: center" Text='<%#Eval("Duanxin") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="VIP排名等级">
                                            <ItemStyle HorizontalAlign="Center" Width="40" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="GradeLevel" Width="40px" Style="text-align: center" Text='<%#Eval("GradeLevel") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="分成比例">
                                            <ItemStyle HorizontalAlign="Center" Width="40" />
                                            <ItemTemplate>
                                                <asp:TextBox CssClass="textbox" ID="DivideMoney" Width="40px" Style="text-align: center" Text='<%#Eval("DivideMoney") %>' runat="server"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="底部版权">
                                            <ItemStyle HorizontalAlign="Center" Width="15" />
                                            <ItemTemplate>
                                                <asp:HiddenField ID="HidIsShow" runat="server" Value='<%# Eval("IsShowCopyRight") %>' />

                                                <asp:CheckBox ID="RbCopyRight" runat="server" Text="" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="新闻分类">
                                            <ItemStyle HorizontalAlign="Center" Width="15" />
                                            <ItemTemplate>
                                                <asp:HiddenField ID="HidIsNewsShow" runat="server" Value='<%# Eval("IsShowNewsClass") %>' />
                                                <asp:CheckBox ID="RbNewsClass" runat="server" Text="" />
                                            </ItemTemplate>
                                        </asp:TemplateField>


                                        <asp:TemplateField HeaderText="SEO设置">
                                            <ItemStyle HorizontalAlign="Center" Width="15" />
                                            <ItemTemplate>
                                                <asp:HiddenField ID="HidIsSeoShow" runat="server" Value='<%# Eval("IsShowSEO") %>' />
                                                <asp:CheckBox ID="RbSeo" runat="server" Text="" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="二级域名">
                                            <ItemStyle HorizontalAlign="Center" Width="15" />
                                            <ItemTemplate>
                                                <asp:HiddenField ID="HidIsTwoShow" runat="server" Value='<%# Eval("IsShowTwoCom") %>' />
                                                <asp:CheckBox ID="RbTwoCom" runat="server" Text="" />
                                            </ItemTemplate>
                                        </asp:TemplateField>



                                        <asp:TemplateField HeaderText="删除">
                                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lkbDel" CommandName="Del" CommandArgument='<%#Eval("ID") %>' runat="server" CssClass="link-color">[删除]</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>


                                    </Columns>
                                    <HeaderStyle CssClass="CTitle" />
                                </asp:GridView>


                            </asp:Panel>
                        </td>
                    </tr>

                </table>
            </div>
            <div class="tab-page" id="tab5">
                <h2 class="tab">综合信誉配置</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab5"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px">
                            <strong>开启积分添加：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList6" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" onclick="showaddScore()">
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                                <asp:ListItem Value="1">开启</asp:ListItem>

                            </asp:RadioButtonList>

                        </td>
                    </tr>
                    <tbody id="addscore">
                        <%
                            XmlDocument doc = new XmlDocument();
                            doc.Load(Server.MapPath("~/config/course/score.config"));
                            XmlNode nodes = doc.SelectSingleNode("/model/module[@name='school']");
                            int i = 0;
                            foreach (XmlNode topnode in nodes.ChildNodes) //顶级菜单
                            {
                        %>
						<tr class="CTitle">
                            <td colspan="2" style="font-size:16px;">
                                <label><%=topnode.SelectSingleNode("@title").InnerText %> </label>
                            </td>
                        </tr>
                        
                        <%   
                            foreach (XmlNode item in topnode.SelectNodes("rote")) //顶级菜单
                            {
                        %>
                        <tr>
                            <td class="lefttd" align="right" style="width: 198px">
                                <%=item.SelectSingleNode("@title").InnerText %>
                            </td>
                            <td class="righttd">
                                <input name="<%=topnode.SelectSingleNode("@name").InnerText+item.SelectSingleNode("@name").InnerText %>" class="textbox" style="width: 88px" value="<%=item.SelectSingleNode("@value").InnerText %>" />

                                <span class="tips"><%=item.SelectSingleNode("@text").InnerText %></span>
                            </td>
                        </tr>
                        <%} %>

                        <%} %>
                    </tbody>
                </table>

            </div>
            <div class="tab-page" id="tab8">
                <h2 class="tab">信用图标设置</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab8"));
                </script>
                <table id="Table1" width="99%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" height="30"></td>

                        <td height="30">
                            <strong>信誉积分名称</strong></td>
                        <td>
                            <strong>信誉积分</strong>
                        </td>
                        <td>
                            <strong>积分图标</strong>
                        </td>
                    </tr>
                    <%
                        XmlDocument score = new XmlDocument();
                        score.Load(Server.MapPath("~/config/course/score.config"));
                        XmlNode noded = score.SelectSingleNode("/model/module[@name='schoolscore']");
                        int k = 0;
                        foreach (XmlNode topnode in noded.ChildNodes) //顶级菜单
                        {
                    %>
                    <tr>
                        <td><%=topnode.SelectSingleNode("@id").InnerText %> </td>

                        <td>
                            <input name="name<%=topnode.SelectSingleNode("@id").InnerText %>" class="textbox" style="width: 88px" value="<%=topnode.SelectSingleNode("@title").InnerText %>"></td>
                        <td>
                            <input name="min<%=topnode.SelectSingleNode("@id").InnerText %>" class="textbox" style="width: 88px" value="<%=topnode.SelectSingleNode("@min").InnerText %>">-<input name="max<%=topnode.SelectSingleNode("@id").InnerText %>" class="textbox" style="width: 88px" value="<%=topnode.SelectSingleNode("@max").InnerText %>"></td>
                        <td>
                            <img src="../../SysImg/CreditScore/<%=topnode.SelectSingleNode("@id").InnerText %>.gif" /></td>
                    </tr>
                    <%} %>
                </table>

            </div>

             <div class="tab-page" id="tab0">
                <h2 class="tab">第三方公众号配置</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab2"));
                </script>

                <table id="tab2" width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否开启企业公众号：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList14" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected>关闭</asp:ListItem>
                                <asp:ListItem Value="1">开启</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">开启后机构可以管理自己的公众平台</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>AppID：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox7" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-AppID</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>AppSecret：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox8" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-AppSecret</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>授权事件接收URL：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox9" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-开发者资料-授权事件接收URL (http://域名/Plus/Pay/WX/EPNotify.aspx)</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>消息校验Token：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-开发者资料-消息校验Token</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>消息加解密Key：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox13" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-开发者资料-消息加解密Key</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>消息与事件接收URL：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TextBox14" runat="server" CssClass="textbox" ></asp:TextBox>

                            <span class="tips">微信开放平台-第三方平台-申请的平台-开发者资料-消息与事件接收URL(http://域名/Plus/weixincall.aspx?/$APPID$)</span>
                        </td>
                    </tr>
                </table>
            </div>

            <script type="text/javascript">
                     showtips('<span class="state"><strong>操作说明：</strong><br /></span> 如果某项操作不增减分请填“0”；添加积分请添加正整数，如：10；减少积分填写负整数，如：-10。');
            </script>
        </div>
        <div style="clear: both; text-align: center">
            <KS:Foot runat="server" CancelButtonVisible="false" ID="Foot1" OnSubmit="Foot1_Submit" />
        </div>
        <KS:Tips ID="Tips1" runat="server" ImagePath="../../admin/images/" />
        <asp:Panel ID="Panel1" runat="server" Height="30px" Width="100%">
        </asp:Panel>
    </div>
</asp:Content>





