<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin.Course.KS_TcConfig" Codebehind="KS.TcConfig.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Kesion.BLL" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
    <script>
        function showaddScore() {

            var checkrad = jQuery("#<%=this.RadioButtonList6.ClientID %> :radio[checked]").val();
            if (checkrad == 1) {
                $("#addscore").show();

            }
            else {
                $("#addscore").hide();

            }
        }
        jQuery(document).ready(function () {
            showaddScore();
        });
    </script>
<!--<KS:topnav id="TopNav1" runat="server" text="教师信誉配置"></KS:topnav>-->
    <div class="content-area mt20 pageBlank">
        <div class="tab-page" id="SystemTeacherPanel">
		 <script type="text/javascript">
             var tabPane1 = new WebFXTabPane(document.getElementById("SystemTeacherPanel"), 1)
         </script>
        <div class="tab-page" id="tab0">
		  <h2 class="tab">名师分成设置</h2>
			<script type="text/javascript">
			    tabPane1.addTabPage(document.getElementById("tab0"));
			</script>

             <table id="Table2" 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="DivideStatus" runat="server" RepeatDirection="horizontal">
                        <asp:ListItem Value="1" Selected="True">正常</asp:ListItem>
                       <asp:ListItem Value="0">关闭</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" Width="50px" ID="Nums" runat="server" Text="0" onChange="Check()" onfocus="Check()" ></asp:TextBox> %
                  <font color=red >(请输入0~100范围)</font>  
            </td>
        </tr>    
           <tr >
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>独立名师申请是否需要审核：</b></td>
                <td class="righttd">
                   <asp:RadioButtonList ID="RadioVerify" runat="server" RepeatDirection="horizontal">
                        <asp:ListItem Value="1" Selected="True">否</asp:ListItem>
                       <asp:ListItem Value="0">是</asp:ListItem>                
                    </asp:RadioButtonList>
                </td>
         </tr> 
   <tr >
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>名师审核过资料是否可以修改：</b></td>
                <td class="righttd">
                   <asp:RadioButtonList ID="Radioedit" runat="server" RepeatDirection="horizontal">
                        <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                       <asp:ListItem Value="1">是</asp:ListItem>                
                    </asp:RadioButtonList>
                </td>
         </tr> 
          <tr style="display:none">
              <td  height="30" align="right" class="lefttd" style="width: 198px">
               <b>分成规则说明：</b></td>
               <td class="righttd">
               <asp:TextBox ID="DivideRule" runat="server" Columns="70" Rows="6" TextMode="MultiLine"></asp:TextBox>
               <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.DivideRule.ClientID %>');"></a>
               <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.DivideRule.ClientID %>');"></a>
               </td>
         </tr>       
        
		  <tr>
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>用户留言是否需要审核：</b></td>
                <td class="righttd">
                   <asp:RadioButtonList ID="IsVerify" runat="server" RepeatDirection="horizontal">
                       <asp:ListItem Value="1">否</asp:ListItem>                
                        <asp:ListItem Value="0" Selected="True">是</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
         </tr>  
                 
          <tr>
            <td align="right" class="lefttd" height="30" style="width: 198px">
                <strong>
              <font color="red">*</font> 名师推荐等级的5个名称设置</strong></td>
            <td class="righttd">
                <label>1. <asp:TextBox ID="TxtGrade1" runat="server" CssClass="textbox" Width="56px" Text="1级"></asp:TextBox></label>
                <label>2. <asp:TextBox ID="TxtGrade2" runat="server" CssClass="textbox" Width="56px" Text="2级"></asp:TextBox></label>
                <label>3. <asp:TextBox ID="TxtGrade3" runat="server" CssClass="textbox" Width="56px" Text="3级"></asp:TextBox></label>
                <label>4. <asp:TextBox ID="TxtGrade4" runat="server" CssClass="textbox" Width="56px" Text="4级"></asp:TextBox></label>
                <label>5. <asp:TextBox ID="TxtGrade5" runat="server" CssClass="textbox" Width="56px" Text="5级"></asp:TextBox></label>
            </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"  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="RadioButtonList8" 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="RadioButtonList9" 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 style="display:none">
             <td class="lefttd" height="30" align="right" style="width: 198px"><b>用户每天留言的数量：</b></td>
                <td class="righttd">
                   <asp:TextBox CssClass="textbox" Width="50px" ID="MsgLimit" runat="server" Text="1200" ></asp:TextBox>
                </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='teacher']");
                int i = 0;
               foreach (XmlNode topnode in nodes.ChildNodes) //顶级菜单
               {
                       
                 %>
         
                   <tr>
                    <td class="righttd" style="font-size:14px;font-family:黑体;font-weight:bold">
                      <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>
              <script type="text/javascript">
                   showtips('<span class="state"><strong>操作说明：</strong><br /></span> 如果某项操作不增减分请填“0”；添加积分请添加正整数，如：10；减少积分填写负整数，如：-10。');
		</script>
             
                
        </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 >
           <strong>信誉积分名称</strong></td>
            <td >
            <strong>信誉积分</strong>
            </td>
            <td >
            <strong>积分图标</strong>
            </td>
             <td >
            <strong>网授</strong>
            </td>
             <td >
            <strong>直播</strong>
            </td>
             <td >
            <strong>面授</strong>
            </td>
           <td >
            <strong>视频数</strong>
            </td>
           <td >
            <strong>直播人数</strong>
            </td>
           <td >
            <strong>直播时间</strong>
            </td>
           <td >
            <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='teacherscore']");
                         int k = 0;
                         foreach (XmlNode topnode in noded.ChildNodes) //顶级菜单                           
                 {
                     k++;
             %>
          <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>
         <%=getContent(k) %> 
               </tr>  
         <%} %>
   

    </table>
        </div>
    </div>
</div>
  <KS:Foot runat="server" ID="Foot1" OnSubmit="Foot1_Submit"/>

</asp:Content>

