<%@ Page Language="C#" EnableEventValidation="false" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Kesion.NET.WebSite.Course.Admin_Course_Courseface" Codebehind="KS.CosFaceList.aspx.cs" %>

<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Course" %>
<%@ Import Namespace="Kesion.APPCode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <script>
        function GetMyIds() {
            var sid = null;
            for (var i = 0; i < document.getElementsByName("ids").length; i++) {
                var KS = document.getElementsByName("ids")[i];
                if (KS.checked == true) {
                    if (sid == null)
                        sid = KS.value;
                    else
                        sid += "," + KS.value;
                }
            }
            return sid;
        }
        function ContentSetAttribute() {
            var sid = GetMyIds();
            if (sid != null) parent.openWin("批量设置面授课程属性", "<%=KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)%>/Course/KS.CosBatch.aspx?ContentID=" + sid + "&costype=3", true,880,600);
        }

        function showwatermarkarea() {
            var checkrad = jQuery("#<%=this.RadioButtonList1.ClientID %> :radio[checked]").val();
            if (checkrad == "2") {
                jQuery("#<%=this.watermark0.ClientID %>").css("display", "none");
                jQuery("#<%=this.watermark2.ClientID %>").css("display", "");
            }else  if(checkrad=="1"){
                jQuery("#<%=this.watermark0.ClientID %>").css("display", "");  
                jQuery("#<%=this.watermark2.ClientID %>").css("display", "none");
            }
            else 
            {
                jQuery("#<%=this.watermark0.ClientID %>").css("display", "none");
                jQuery("#<%=this.watermark2.ClientID %>").css("display", "none");
            }
        }
        
        function searchSJ() {
            var key = jQuery("#<%=this.TxtSJKey.ClientID %>").val();
            if (key == '') {
                KesionJS.Alert("请输入试卷关键字！", "jQuery('#<%=this.TxtSJKey.ClientID %>').focus()");
                return false;
            } else {
                jQuery.ajax({
                    url: "KS.CosList.aspx?action=GetSJ&Key=" + escape(key), success: function (d) {
                        jQuery("#<%=this.LstB2.ClientID %>").append(d);
                    }
                });
            }
        }

        function addUser() {
            var src = document.getElementById('<%=this.LstB2.ClientID %>');
            var dest = document.getElementById('<%=this.LstB1.ClientID %>');

            for (var i = 0; i < src.options.length; i++) {
                if (src.options[i].selected) {
                    var exist = false;
                    for (var j = 0; j < dest.options.length; j++) {
                        if (dest.options[j].value == src.options[i].value) {
                            exist = true;
                            break;
                        }
                    }
                    if (!exist) {
                        var opt = document.createElement('OPTION');
                        opt.value = src.options[i].value;
                        opt.text = src.options[i].text;
                        dest.options.add(opt);
                    }
                }
            }
        }

        function delUser() {
            var dest = document.getElementById('<%=this.LstB1.ClientID %>');

            for (var i = dest.options.length - 1; i >= 0; i--) {
                if (dest.options[i].selected) {
                    dest.options[i] = null;
                }
            }
        }
        function setHtml() {
            var sid = null;
            for (var i = 0; i < document.getElementsByName("ids").length; i++) {
                var KS = document.getElementsByName("ids")[i];
                if (KS.checked == true) {
                    if (sid == null)
                        sid = KS.value;
                    else
                        sid += "," + KS.value;
                }
            }
            if (sid != null) {
                if (confirm("您确定所有面授课程内容页生成静态HTML吗?"))
                    return true;
                else
                    return false;
            } else {
                alert('没有选择要发布的课程!');
                return false;
            }
        }
        function ShowSign(id)
        {
            
            parent.openWin('课程签到记录', 'Course/KS.CosSignRecord.aspx?cid='+id,false,1150,450);
        }
        function OtherTc() {
            var checkrad = jQuery("#<%=this.IsOtherTc.ClientID %> :radio[checked]").val();
         if (checkrad == "1") {
             jQuery("#<%=this.Tbody4.ClientID %>").css("display", "");
            } else {
                jQuery("#<%=this.Tbody4.ClientID %>").css("display", "none");
            }
        }
        function keyWordFocus() {
            if (jQuery("#<%=this.TextBox1.ClientID %>").val() == '请输入关键字！') {
                      jQuery("#<%=this.TextBox1.ClientID %>").val('');
            }
        }
        function keyWordBlur() {
            if (jQuery("#<%=this.TextBox1.ClientID %>").val() == '') {
                jQuery("#<%=this.TextBox1.ClientID %>").val('请输入关键字！');
            }
        }
    	$(document).ready(function () {
    		setprice();
    	});
        function setprice() {
            var t = $("#<%=this.RdbPromotion.ClientID%> :radio[checked]").val();

            if (t == "0") {
                jQuery("#<%=this.Tbody3.ClientID %>").css("display", "");
                jQuery("#<%=this.Tbody5.ClientID %>").css("display", "none");
                jQuery("#<%=this.Tbody6.ClientID %>").css("display", "none");
            }
            else if (t == "3") {
                jQuery("#<%=this.Tbody3.ClientID %>").css("display", "none");
                jQuery("#<%=this.Tbody5.ClientID %>").css("display", "");
                jQuery("#<%=this.Tbody6.ClientID %>").css("display", "none");
            }
            else {
                jQuery("#<%=this.Tbody3.ClientID %>").css("display", "none");
                jQuery("#<%=this.Tbody5.ClientID %>").css("display", "none");
                jQuery("#<%=this.Tbody6.ClientID %>").css("display", "");
            }
        }
        
		
		$(function(){
				//全选反选
				$("#selectAll").click(function(){
					if($(this).is(":checked")){
						$(".courseList").find("input[type=checkbox]").attr("checked",true);
					}
					else{
						$(".courseList").find("input[type=checkbox]").attr("checked",false);
					};
				});
				
		});
    </script>

    <asp:Panel ID="ListPanel" runat="server" Width="100%">
        <div class="listedit">
            <%if(Style==0){ %><div class="floatLeft allCheck"><label><input name="" type="checkbox" value="" id="selectAll" /> 全选</label></div><%} %>   
            <ul class="fl">
                <asp:LinkButton ID="delclassbutton" runat="server" OnClientClick="return(GetIDS('del'));" OnClick="delclassbutton_Click" CssClass="button">删除</asp:LinkButton>
                <asp:LinkButton ID="LinkButton10" runat="server" OnClick="LinkButton10_Click" OnClientClick="return(GetIDS());" CssClass="button">批量审核</asp:LinkButton>
                <asp:LinkButton ID="LinkButton11" runat="server" OnClick="LinkButton11_Click" OnClientClick="return(GetIDS());" CssClass="button">批量未审核</asp:LinkButton>
                	<asp:LinkButton ID="batchset" runat="server" CssClass="button">批量设置</asp:LinkButton>
				<%if (MyCache.GetCourseCommonConfig(65) == "1")
                 { %>
                   <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return(setHtml());" OnClick="Button_S" CssClass="button">生成静态HTML</asp:LinkButton>
                <%} %> 
            </ul>
        </div>
        <style>
            .categorynav {
                line-height: 25px;
                width: 97%;
                margin: 0 auto;
                margin-bottom: 10px;
                border: 1px solid #DEEFFA;
                background-color: #F7FBFE;
                padding: 5px 0px 5px 10px;
                height: 100%;
                overflow: hidden;
            }

            ul, li {
                padding: 0px;
                margin: 0px;
            }

            .categorynav li {
                width: 160px;
                float: left;
            }
        </style> 
     <div class="content-area mt20">   
         <div class="tabs_header longTabs">
            <ul class="tabs">
                <li><a href="KS.CosList.Aspx"><span>点播课程</span></a></li>
                <li><a href="KS.CosLiveList.aspx"><span>直播课程</span></a></li>
                <li class='active'><a href="KS.CosFaceList.Aspx"><span>面授课程</span></a></li>
            </ul>
         	
            <div class="fr headOperation longHeadOperat <%=Style==1?"noPictures":"" %>">
               <ul>
             	<li id='p10'><asp:LinkButton ID="LinkButton8" runat="server" OnClick="LinkButton8_Click" OnClientClick="return(GetIDS());" class="button">同步评价</asp:LinkButton></li>
                <li id='p18'><a href="KS.CosFaceImport.aspx" class="button">导入课程信息</a></li>
               	<li id='p2'><asp:LinkButton ID="LinkButton3" runat="server" OnClick="updatebutton_Click" class="button">一键更新课程信息</asp:LinkButton></li>
               </ul>
            </div>
        </div>
        <div class="quickSearch clearfix">

            <div class="quickSelect">
                <asp:DropDownList ID="DrpClassID" runat="server" onchange="location.href='?classid='+this.value;" style="width:100px;">
                    <asp:ListItem Value="0">选择分类</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="SearchBox fl">
                <asp:DropDownList ID="Condition" runat="server" Style="margin-right:8px;">
                    <asp:ListItem Value="1">课程名称</asp:ListItem>
                    <asp:ListItem Value="2">发布者</asp:ListItem>
                    <asp:ListItem Value="3">开课地点</asp:ListItem>
                    <asp:ListItem Value="4">名师</asp:ListItem>
                    <asp:ListItem Value="5">课程介绍</asp:ListItem>
                    <asp:ListItem Value="6">课程ID</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="TextBox1" CssClass="textbox" runat="server" Text="请输入关键字！" onfocus="keyWordFocus();" Width="200" onblur="keyWordBlur();" style="color:#ccc" ></asp:TextBox>
                <asp:Button ID="Button2" runat="server" Text="开始搜索" CssClass="button" OnClick="Button2_Click" />
            </div>
            <div class="property">
                 <div class="name button ml15">筛选</div>
                 <div class="propertyBox">
                    <asp:CheckBoxList ID="Attribute" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="Arrtibute_SelectedIndexChanged">
                    <asp:ListItem Value="1" >推荐</asp:ListItem>
                        <asp:ListItem Value="2">精彩</asp:ListItem>
                        <asp:ListItem Value="3">头条</asp:ListItem>
                        <asp:ListItem Value="4">幻灯</asp:ListItem>
                        <asp:ListItem Value="5" >手机</asp:ListItem>
                        <asp:ListItem Value="6" >在售</asp:ListItem>    
                    </asp:CheckBoxList>
                    <ul class="clearfix">
                        <span class="screen fl">审核状态：</span>
                        <li <%=KSCMS.S("verify")==""?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?Type=<%=KSCMS.S("Type") %>"><span>所有</span></a></li>
                        <li <%=KSCMS.S("verify")=="1"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?verify=1&Type=<%=KSCMS.S("Type") %>"><span>未审核</span></a></li>
                        <li <%=KSCMS.S("verify")=="2"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?verify=2&Type=<%=KSCMS.S("Type") %>"><span>已审核</span></a></li>
                    </ul>
                      <ul class="clearfix">
                        <span class="screen fl">付费方式：</span>
                        <li <%=KSCMS.S("Type")==""?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?verify=<%=KSCMS.S("verify") %>"><span>所有</span></a></li>
                        <li <%=KSCMS.S("Type")=="5"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?Type=5&verify=<%=KSCMS.S("verify") %>"><span>价格</span></a></li>
                        <li <%=KSCMS.S("Type")=="3"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?Type=3&verify=<%=KSCMS.S("verify") %>"><span>积分</span></a></li>
                        <li <%=KSCMS.S("Type")=="4"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?Type=4&verify=<%=KSCMS.S("verify") %>"><span>混合</span></a></li>
                    </ul>
                </div>
            </div>

            <div class="fr liwrap">
               <li id='p1'><a href="KS.CosFaceList.aspx?action=add" class="button button_on">添加课程</a></li>
            </div>
        </div>
          <asp:Panel ID="Panel1" runat="server" Width="100%">
           <div class="courseList">
        	<ul>
			 <asp:Repeater ID="list" runat="server"  >
             <HeaderTemplate>
               </HeaderTemplate>
			 <ItemTemplate>
            	<li>
                	<div class="input">  <input type="checkbox" name="ids" id="ids" value="<%#Eval("courseid") %>" /></div>
                    <div class="courseImg">
                         <span class="livingState"><%# Kesion.Course.Course.GetCoursePromotionStr(Utils.StrToInt(Eval("Promotion").ToString()),0)%></span>
                    	<img src="<%#Eval("photourl") %>" onerror="this.src='../../admin/images/nopic.png'"/>
                    </div>
                    <div class="courseInfo">
                    	<div class="courseTitle clearfix">
                            <div class="operating">
                               	<a href="?action=verify&courseid=<%#Eval("courseid")%>" class="<%# Convert.ToString(Eval("verify"))=="0"?"notext":"yestext" %>" title="<%# Convert.ToString(Eval("verify"))=="0"?"未审核":"已审核" %>"><%# Convert.ToString(Eval("verify"))=="0"?"未审核":"已审核" %></a>
                                <span class="noticeBox">
                                    <span  class="button" onclick="ShowSign(<%#Eval("courseid").ToString() %>)" >签到</span>
                                    <span class="button" onclick="notice(<%#Eval("courseid") %>)">通知学员</span>
                                </span>
                                <a href="?action=modify&p=<%=MyPage.CurrPage %>&courseid=<%#Eval("courseid") %>" class="button">编辑</a>
                                <div class="operatBoxBtn">
                                    <a class="button"><i class="iMore"></i></a>
                                    <div class="operatBoxMore clearfix">
                                        <a href="<%# BaseFun.GetRewriteUrl("faceview",Utils.StrToInt(Eval("courseid").ToString()))%>" title="前台页" target="_blank">预览</a>
                                        <a href="KS.CosPJ.aspx?type=1&CosType=2&CourseId=<%#Eval("courseid") %>&teacherid=<%#Eval("TCID") %>">评价<i>(</i><%#Eval("pjnum") %><i>)</i></a>
                                        <a href="KS.FaceSignUp.aspx?type=1&CosType=2&teacherid=<%#Eval("TCID") %>&CourseId=<%#Eval("courseid") %>">学员<i>(</i><%#Eval("studentnum") %><i>)</i></a>
                                        <a href="?action=del&Ids=<%#Eval("courseid") %>"  onclick="return(confirm('此操作不可逆，确定删除操作吗?'))">删除</a>
                                    </div>
                            	</div>
                            </div>    
                            <div class="title clearfix">
                            	
                            	<a href="<%# BaseFun.GetRewriteUrl("faceview",Utils.StrToInt(Eval("courseid").ToString()))%>" title="前台页" target="_blank"><%# Convert.ToString(Eval("name")) %></a>
                                <div class="courseProperty">
									<%#Convert.ToString(Eval("recommend"))=="1"?"<span class='bg1'>荐</span>":"" %>
                                    <%#Convert.ToString(Eval("popular"))=="1"?"<span class='bg2'>精</span>":"" %>
                                    <%#Convert.ToString(Eval("istop"))=="1"?"<span class='bg3'>头</span>":"" %>
                                    <%#Convert.ToString(Eval("huandeng"))=="1"?"<span class='bg4'>幻</span>":"" %>
                                   	<%#Convert.ToString(Eval("IsOff")) == "1" ? "<span class='bg5'>售</span>":""%>
                                   	<%#Convert.ToString(Eval("is3g")) == "1" ? "<span class='bg6'>3g</span>" : ""%>
                                </div> 
                            </div>
                        </div>
                        <div class="price fr"> <%# Eval("promotion").ToString() == "3" ? Eval("jifen").ToString() + "积分" : Utils.StrToDecimal(Eval("price_member").ToString()) == 0 ? "<font class='greenFont'>免费</font>":"¥" + Kesion.APPCode.Public.ReturnShopPrice(Utils.StrToDecimal(Eval("price_member").ToString()))%><%#Eval("promotion").ToString()=="4"?"+"+Eval("jifen").ToString()+"积分":"" %>
                        	<div class="vipPrice">
                                <em>价格</em>
                            </div>
                    	</div> 
                        <div class="fl">   
                            <div class="info"><span><%# BaseFun.CoursePublisher(Utils.StrToInt(Eval("SchoolID").ToString()), Eval("TcID").ToString(), Eval("SchoolName").ToString(),Eval("Teacher").ToString(), Eval("UserName").ToString(),1) %></span><span>时间：<%#Convert.ToDateTime(Eval("addtime").ToString()).ToString("yyyy/MM/dd")%></span><span>分类：<%# MyCache.GetCosClass( Utils.StrToInt( Eval("classid")),"ClassName",1)  %></span><span>评分：<%#Eval("coursepf")%>分</span></div>
                            
                            <div class="clear"></div>
                            
                            <div class="buttonBox">
                                <a href="KS.CosFacePeriod.aspx?CourseId=<%#Eval("courseid") %>&type=1&CosType=2" class="greenFont btn"><em><%#Eval("countpid") %></em>&nbsp;<span>课时</span>&nbsp;>></a>
                                <a href="KS.CsZLInfo.aspx?type=1&CosType=2&CourseId=<%#Eval("courseid") %>&teacherid=<%#Eval("TCID") %>" class="greenFont btn"><em><%#Eval("zlnum") %>&nbsp;份</em><span>资料</span>&nbsp;>></a>
                               	<a href="KS.CosfaceExamlist.aspx?type=1&CosType=2&CourseId=<%#Eval("courseid") %>&teacherid=<%#Eval("TCID") %>" class="greenFont btn"><em><%# Eval("sjnum").ToString() %>&nbsp;份</em><span>试卷</span>&nbsp;>></a>
                                <a href="KS.CsTeacher.aspx?type=1&CosType=2&teacherid=<%#Eval("TCID") %>&CourseId=<%#Eval("courseid") %>" class="greenFont btn"><em><%#Eval("teachernum").ToString() %>&nbsp;个</em><span>名师</span>&nbsp;>></a>
                              	<a href="KS.CosChat.aspx?type=1&CourseId=<%#Eval("courseid") %>&costype=2" class="greenFont btn"><em><%#Eval("chatnum") %>&nbsp;个</em><span>留言</span>&nbsp;>></a>
                            </div>
                        </div>
                    </div>
                </li>
            	</ItemTemplate>
				 <FooterTemplate>
                  <div class="empty" style="display:<%# bool.Parse((list.Items.Count==0).ToString())?"":"none"%>">您没有添加任何课程</div>
               </FooterTemplate>
				</asp:Repeater>
            </ul>
        </div>
        <script>
            $(function () {
                $(".courseList li:first").css({ borderTop: "0px" });
            });
              function notice(courseid) {
                        parent.openWin('开播通知', '/plus/course/LiveNotice.aspx?CourseId=' + courseid + "&istop=1&teachway=0", false, 950, 480);
             }
		</script>
     </asp:Panel>

     <asp:Label ID="LabPage" runat="server"></asp:Label>
</div>
    </asp:Panel>
    <asp:Panel ID="AddPanel" runat="server" Width="100%">
<div class="content-area mt20 md20">
        <div class="tab-page" id="CoursefacePanel">
            <script type="text/javascript">
                var tabPane1 = new WebFXTabPane(document.getElementById("CoursefacePanel"), 1)
            </script>

            <div class="tab-page" id="tab0">
                <h2 class="tab">基本信息</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab0"));
                </script>
                <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable">
                    
                    <tr>
                        <td align="right" class="lefttd" height="30"> <font color="red">*</font><strong>课程名称：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtName" CssClass="textbox" runat="server" Width="400px"></asp:TextBox>
                           
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd">
                            <strong>课程图片：</strong></td>
                        <td class="righttd">
                             <table border="0" cellspacing="0" cellpadding="0">
                            	<tr>
                                    <td width="440px">
                                        <input id="DefaultPic" name="DefaultPic" class="textbox" type="text" value="<%=DefaultPic%>">
                                        <input type="button" class="button" onclick="SelectFiles('DefaultPic',0);" value="选择图片" />
                                    </td>
                                    <td style="width:280px;">
                                        <div style="height: 34px;overflow: hidden;"><%=Kesion.APPCode.UploadAPI.EchoUpload("coursePic","DefaultPic") %></div>
                                    </td>
                                </tr>
                             </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 40px"><font color="red">*</font><b>课程类型：</b></td>
                        <td class="righttd">
                            <asp:DropDownList ID="DrpClassID1" runat="server" Width="262px">
                                <asp:ListItem Value="0">--选择课程分类--</asp:ListItem>
                            </asp:DropDownList>
                            
                        </td>
                    </tr>


                    <tr>
                        <td class="lefttd" align="right" style="width: 102px"><font color="red">*</font><strong>课程主教：</strong></td>
                        <td class="righttd">
                            <table>
                                <tr>
                                    <td colspan="2"> 
                                        <asp:TextBox ID="searchtearch" runat="server" CssClass="textbox" placeholder="请输入教师关键字" Text="" ></asp:TextBox>
                                        <asp:Button ID="searchbutton" runat="server" Text="搜索" OnClick="searchbutton_Click" CssClass="button" />
                                    </td>
                                </tr>
                                <tr><td colspan="2" height="10"></td></tr>
                                <tr>
                                    <td width="380">
                                        <asp:ListBox ID="teacherlist" Width="262px" Height="80px" runat="server" SelectionMode="Multiple"></asp:ListBox>
                                        <span class="msgtips">
                                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.teacherlist.ClientID %>');"></a>
                                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.teacherlist.ClientID %>');"></a>
                                        </span>
                                    </td>
                                    <td valign="top">
                                        <strong>助教：</strong>
                                       	<asp:RadioButtonList ID="IsOtherTc" runat="server" RepeatDirection="Horizontal" onclick="OtherTc()">
                                            <asp:ListItem Value="0" Selected="True">无</asp:ListItem>
                                            <asp:ListItem Value="1">有</asp:ListItem>
                                        </asp:RadioButtonList>
                                        <div  id="Tbody4" style="display: none" runat="server">
                                             <asp:TextBox ID="techertest" CssClass="textbox" runat="server"></asp:TextBox>如：王老师
                                        </div>
                                    </td>
                                 </tr>
                             </table>
                        </td>
                    </tr>

                   

                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>班型：</strong></td>

                        <td class="righttd">
                            <asp:DropDownList ID="dropclass" runat="server" Width="150px">
                                <asp:ListItem Value="0">--请选择班型--</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30">   <font color="red">* </font><strong>报名时间：</strong></td>

                        <td class="righttd">
                           <script>isHour = 1;</script>
                
                <asp:TextBox CssClass="textbox  Wdate" ID="begintime" runat="server"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d'});"></asp:TextBox> 
              至 <asp:TextBox CssClass="textbox  Wdate" ID="endtime" runat="server"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d'});"></asp:TextBox>     
                        </td>

                    </tr>
                   <tr>
                        <td align="right" class="lefttd" height="30"> <strong>开课时间：</strong></td>

                        <td class="righttd">
                         
                
                      <asp:TextBox CssClass="textbox  Wdate" ID="TextBox3" runat="server"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d'});"></asp:TextBox> 
              
                        </td>

                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>开课地点：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="txtadd" Width="388px" CssClass="textbox" runat="server"></asp:TextBox>
                            
                        </td>
                    </tr>
					<tr>
                        <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>限报人数：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="MaxPerson" CssClass="textbox " runat="server" Width="60px" Text="50" style="text-align:center"></asp:TextBox>人
                             <span class="tips">（设置“0”为不限）</span>
                        </td>
                    </tr>
                
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>课程属性：</strong></td>
                        <td class="righttd">
                            <asp:CheckBoxList ID="ChBoxAttr" runat="server"
                                RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected>推荐</asp:ListItem>
                                <asp:ListItem Value="1">精彩</asp:ListItem>
                                <asp:ListItem Value="1">头条</asp:ListItem>
                                <asp:ListItem Value="1">幻灯</asp:ListItem>
                                <asp:ListItem Value="1" Selected>手机同步</asp:ListItem>
                               <%-- <asp:ListItem Value="1" >允许发表考后心得</asp:ListItem>
                                <asp:ListItem Value="1">试用</asp:ListItem>--%>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                        <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>是否有模拟试卷：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RadioButtonList1" onclick="showwatermarkarea()" runat="server"
                                RepeatDirection="Horizontal" Height="24px">
                                <asp:ListItem Value="0" Selected="True">无</asp:ListItem>
                                <asp:ListItem Value="1">指定试卷栏目</asp:ListItem>
                                <asp:ListItem Value="2">提定试卷ID</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tbody id="watermark0" runat="server" style="display: none">
                        <tr>
                            <td align="right" class="lefttd">
                                <strong>试卷栏目：</strong></td>
                            <td class="righttd">
                                <asp:ListBox ID="ListSjClass" runat="server" Width="150px" SelectionMode="Multiple" Height="150px"></asp:ListBox>
                                <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.ListSjClass.ClientID %>');"></a>
                                <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.ListSjClass.ClientID %>');"></a>
                            </td>
                        </tr>
                    </tbody>
                    <tbody id="watermark2" style="display: none" runat="server">
                        <tr>
                            <td align="right" class="lefttd" height="30">
                                <strong>试卷ID：</strong></td>
                            <td class="righttd" valign="top">&nbsp;
         
                                <table border="0" width='100%'>
                                    <tr>
                                        <td style="width: 200px">搜索试卷：<asp:TextBox ID="TxtSJKey" runat="server" Width="160px" CssClass="textbox" />
                                            <input type="button" value="搜索" class="button" onclick="searchSJ();" cssclass="button" />
                                            <br />
                    
                                            <asp:ListBox ID="LstB2" runat="server" Width="300px" Height="200px" SelectionMode="Multiple"></asp:ListBox>
                                        </td>
                                        <td>
                                            <p>
                                                <input type="button" value=" > " onclick="addUser()" class="button" />
                                            </p>
                                            <br />
                                            <p>
                                                <input type="button" value=" < " onclick="delUser()" class="button" />
                                            </p>
                                        </td>
                                        <td>指定试卷如下：
                                     <br />
                                            <asp:ListBox ID="LstB1" runat="server" Width="300px" Height="200px" SelectionMode="Multiple"></asp:ListBox>
                                        </td>
                    
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td align="right" class="lefttd" height="30"><strong>考试状态规定：</strong></td>
                            <td class="righttd">
                                <asp:TextBox ID="regulations" CssClass="textbox"
                                    runat="server" Width="40px"></asp:TextBox>%
               					<font color="red">学习达到总课时的多少比例时才能考试，留空或0为不限制</font>
                            </td>
                        </tr>

                    </tbody>
                   
                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>课程目标：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtTarget" TextMode="MultiLine" Height="200px" runat="server" Width="100%"></asp:TextBox></td>
                        <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtTarget.ClientID, "Basic");%>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>课程公告：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtNotice" TextMode="MultiLine" Height="200px" runat="server" Width="100%"></asp:TextBox></td>
                        <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtNotice.ClientID, "Basic");%>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>课程介绍：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtIntro" TextMode="MultiLine" Width="100%" Height="200px" runat="server"></asp:TextBox>
                            <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtIntro.ClientID, "Basic");%>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>课程人气：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="lookcount" CssClass="textbox" runat="server" Width="60px" Text="100" style="text-align:center"></asp:TextBox>
                             <span class="tips">点击数作弊</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>报名总人数：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="buycount" CssClass="textbox" runat="server" Width="60px" Text="100" style="text-align:center"></asp:TextBox>
                             <span class="tips">销售量、在学习人数作弊</span>
                        </td>
                    </tr>
                     <tr>
                        <td align="right" class="lefttd" height="30"><strong>课程省市：</strong></td>
                        <td class="righttd">
                            <script src="../../plus/area.aspx?pid=<%=Provinceid %>&cityid=<%=CityId %>&countyid=<%=CountyId %>"></script>
                            <span class="msgtips">选择课程所在的省份和城市,方便检索。</span>
                        </td>
                    </tr>
                </table>
            </div>
           
            <div class="tab-page" id="tab3">
                <h2 class="tab">价格</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab3"));
                </script>
                <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="CTable no-borderTable">

				 <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>付费方式：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbPromotion" runat="server" RepeatDirection="Horizontal" onclick="setprice()" Height="24px">
                                <asp:ListItem Value="0" Selected="True">价格</asp:ListItem>
                                <asp:ListItem Value="3" >积分</asp:ListItem>
                                <asp:ListItem Value="4">混合</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>

					  <tbody id="Tbody3" style="" runat="server">
                        <tr>
                        <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>参考价格：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="Money" CssClass="textbox " Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>元
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30"> <font color="red">*</font><strong>课程价格：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="Price_Member" CssClass="textbox" Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>元
                            <span style="margin-left: 20px;"><asp:CheckBox ID="IsContainTax" runat="server" />是否含税  </span>
                        </td>
                    </tr>

                    <%if (Kesion.Cache.MyCache.GetCourseCommonConfig(34) == "1" || DataFactory.GetOnlyValue("select count(*) from KS_Enterprise where UserID in(select UserID from KS_Course where CourseID =" + CourseId + ")") == "0")
                      { %>
                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>返现：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtCashBack" CssClass="textbox" Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>元

       
                        </td>
                    </tr>
                    <%if (Kesion.Cache.MyCache.GetCourseCommonConfig(35) == "1")
                      { %>
                    <tr>
                        <td align="right" class="lefttd" height="30"><strong>返现有效天数：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtDay" CssClass="textbox" runat="server" Text="0" Width="75px" style="text-align:center"></asp:TextBox>天
                            <span class="tips">（建议1-30天）,如果设置为0是不限制</span>

                        </td>
                    </tr>
                    <%} %>
                    <%} %>
                     <tr>
                        <td align="right" class="lefttd" height="30"><strong>赠送积分：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TxtScore"  runat="server" Width="75px" Text="0" style="text-align:center"></asp:TextBox>分 
                            <span class="tips">成功购买本课程一门可以得到的积分。如这里设置1分,用户购买10件,则可以得10分。</span>
                        </td>
                    </tr>
					</tbody>
					  <tbody id="Tbody5" style="display: none" runat="server">
                            <tr>
                                <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>兑换积分：</strong></td>
                                <td class="righttd">
                                    <asp:TextBox CssClass="textbox" ID="jifen" Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>分
                         <span class="tips">纯积分兑换</span>
                                </td>
                            </tr>
                        </tbody>
						 <tbody id="Tbody6" style="display: none" runat="server">
                            <tr>
                                <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>混合购买：</strong></td>
                                <td class="righttd">
                                    <asp:TextBox CssClass="textbox" ID="Mixjifen" Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>
                         <span class="tips">积分</span>
						    <asp:TextBox CssClass="textbox" ID="Mixprice" Text="0" runat="server" Width="75px" style="text-align:center"></asp:TextBox>
                         <span class="tips">元</span>
                                </td>
								
                            </tr>
                        </tbody>
                     <%if(Utils.StrToInt(epa.GetEpAgentConfig("EpAgentStatus"))==1){ %>
                    <tr>
                        <td align="right" class="lefttd" height="30"><font color="red">*</font><strong>分成比例：</strong></td>
                        <td class="righttd">

                     平台分配比例:<asp:TextBox ID="TxtPingTaiRate"  CssClass="textbox" runat="server" Width="75px" Text="6" style="text-align:center"></asp:TextBox>%
                     <br />
                    省级分配比例:<asp:TextBox ID="TxtProviceRate"  CssClass="textbox" runat="server" Width="75px" Text="3" style="text-align:center"></asp:TextBox>%
                    <br />
                    市级分配比例:<asp:TextBox ID="TxtCityRate"  CssClass="textbox" runat="server" Width="75px" Text="2" style="text-align:center"></asp:TextBox>%
                      <span class="tips">(请输入0~100范围)，如果写0是不参与分成的</span>
                        </td>
                    </tr>
                    <%} %>
                   </table>
                </div>

              <div class="tab-page" id="tab4">
                <h2 class="tab">其它选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab4"));
                    function ClickTemplate() {
                        var checkrad1 = jQuery("#<%=this.templateflag.ClientID %> :radio[checked]").val();

                             //alert(checkrad1);
                             if (checkrad1 == '1') {
                                 jQuery("#templatearea").show();

                             }
                             else {
                                 jQuery("#templatearea").hide();
                             }
                    }
                    function ShowNoteSetting(){
                        var checkrad2 = jQuery("#<%=this.IsSendNote.ClientID %> :radio[checked]").val();
                        if(checkrad2=='1')
                        {
                            jQuery(".note").show();
                        }
                        else 
                        {
                            jQuery(".note").hide();
                        }
                    }
                         $(document).ready(function () {

                             ClickTemplate();
                             ShowNoteSetting();

                         });
                </script>
                <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="CTable no-borderTable">
                    <tr>
                          <td align="right" class="lefttd" height="30" style="width: 102px">发布者：</td>
                          <td class="righttd">
                              <asp:TextBox ID="TxtPublisher" runat="server"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>课程状态：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbVerify" runat="server" Width="200px"
                                RepeatDirection="Horizontal" Height="24px">
                                <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: 102px">
                            <strong>是否发布课程：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RbIsOff" runat="server" Width="150"
                                RepeatDirection="Horizontal" Height="24px">
                                <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>   <span class="tips">如果是发布，前台就会显示。</span>
                        </td>
                   
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>是否邮寄资料：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="IsSendNote" runat="server" Width="150px"
                                RepeatDirection="Horizontal" Height="24px" onclick="ShowNoteSetting()">
                                <asp:ListItem Value="1" >是</asp:ListItem>
                                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="note">
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>资料价格：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="NotePrice" CssClass="textbox" runat="server" Width="75px"></asp:TextBox>元    
                            <span class="tips">只保留两位小数</span>
                        </td>
                    </tr>
                    <tr class="note">
                        <td align="right" class="lefttd" height="30" style="width: 102px">
                            <strong>资料简介：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="NoteContent" CssClass="textbox" TextMode="MultiLine" runat="server" Height="58px" Width="236px"></asp:TextBox>
                        </td>
                    </tr>

          <tr>
              <td align="right" class="lefttd" height="30" style="width: 102px">
               <strong>课程标签：</strong></td>
              <td class="righttd">
                     <asp:ListBox ID="ListTags" SelectionMode="Multiple" runat="server" Width="250px" Height="140px">
                       </asp:ListBox>
                      <br />
                  <span class="tips">tips：按Ctrl或Shift可以多选。<a href="javascript:;" onclick="jQuery('#<%=this.ListTags.ClientID %> option').attr('selected',false);">取消选中</a></span>
              </td>
          </tr>


                 <tr>
            <td align="right" class="lefttd">
                <strong>绑定模板：</strong></td>
            <td class="righttd">
                <asp:RadioButtonList ID="templateflag" runat="server" RepeatDirection="Horizontal" onclick="ClickTemplate()">
                    <asp:ListItem Value="2" Selected>继承模板设定</asp:ListItem>
                    <asp:ListItem Value="1">自定义</asp:ListItem>
					
                </asp:RadioButtonList>

         
            <div id="templatearea" style="display:none">
            <br />
             WEB模板：<asp:TextBox CssClass="textbox" Width="300px" ID="TemplateFile" runat="server"></asp:TextBox>
                	<input class="button" onclick="SelectTemplate('<%=this.TemplateFile.ClientID %>    ',0);"
                    onmouseout="this.className='button';" onmouseover="this.className='button_on';"
                    type="button" value="选择模板..." />
                    <br /><br />
            		<div<%=MyCache.GetCacheConfig(72)=="0"?" style='display:none'":"" %>>3G 模板：<asp:TextBox CssClass="textbox" Width="300px" ID="Template3GFile" runat="server"></asp:TextBox>
                		<input class="button" onclick="SelectTemplate('<%=this.Template3GFile.ClientID %>    ',1);" onmouseout="this.className='button';" onmouseover="this.className='button_on';" type="button" value="选择模板..." />
                    </div>
              </div> 
            </td>
            </tr>
                   </table>
                 </div>

                <div class="tab-page" id="tabSeo">
                <h2 class="tab">SEO选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tabSeo"));
                </script>

                  <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" align="right"><strong>页面标题:</strong>
                           
                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtSeoTitle" runat="server" Width="300px" CssClass="textbox textarea" style="width:450px;" />
                              <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtSeoTitle.ClientID %>');"></a>
                              <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtSeoTitle.ClientID %>');"></a>
                             <span class='tips'>留空则默认显示课程名称,模板里请用标签{KS:Field:SEOTitle}调用。</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" align="right"><strong>页面关键字:</strong>(meta_keywords)</td>
                        <td class="righttd">
                            <asp:TextBox TextMode="MultiLine" Rows="5" ID="TxtSeoKeyWords" runat="server"  CssClass="textbox textarea"  Height="100px" Width="450px"/>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtSeoKeyWords.ClientID %>');"></a>
                              <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtSeoKeyWords.ClientID %>');"></a>
                            <span class='tips'>留空则默认显示课程里设置的KeyWords,模板里请用标签{KS:Field:SEOKeyWords}调用。</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" align="right"><strong>页面描述:</strong>(meta_description)</td>
                        <td class="righttd">
                            <asp:TextBox TextMode="MultiLine" Rows="5" ID="TxtSeoDescription" runat="server"  Height="100px" Width="450px" CssClass="textbox" />
                               <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtSeoDescription.ClientID %>');"></a>
                              <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtSeoDescription.ClientID %>');"></a>
                            <span class='tips'>留空则默认显示课程简介,模板里请用标签{KS:Field:SEODescription}调用。</span>
                        </td>
                    </tr>
                </table>
            </div>
            </div>
                 <%if(DataFactory.Exists("KS_CosField","FieldModeType=1 and IsDisabled=1")){ %>
             <div class="tab-page" id="tab5">
                <h2 class="tab">自定义选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab5"));
                </script>
                <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="CTable no-borderTable">
                     <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>

                    </table>
                  </div>
            </div>
           <%} %>
			
			<script>
				function CheckForm() {


				    if ($('#<%=TxtName.ClientID%>').val() == "") {
				        KesionJS.Alert("请填写课程名称！", "jQuery('#<%=this.TxtName.ClientID %>').focus()");
				        return false; 
				    }
				    if ($('#<%=DrpClassID1.ClientID%>').val() == 0) {
				        KesionJS.Alert('请选择课程类型!', "jQuery('#ctl00_KSContent_DrpClassID1').focus()");
				        return false;
				    }
				    var dest = document.getElementById('ctl00_KSContent_teacherlist').value;

				    if (dest == '') {
				        KesionJS.Alert('请选择课程教师!', "jQuery('#ctl00_KSContent_teacherlist').focus()");
				        return false;
				    }
                   
                    if (jQuery('#<%=this.begintime.ClientID %>').val() == '') {
				        KesionJS.Alert("请输入课程开始时间！", "jQuery('#<%=this.begintime.ClientID %>').focus()");

				        return false;
				    }
                    if (jQuery('#<%=this.endtime.ClientID %>').val() == '') {
				        KesionJS.Alert("请输入课程结束时间！", "jQuery('#<%=this.endtime.ClientID %>').focus()");

				        return false;
				    }
					var t = $("#<%=this.RdbPromotion.ClientID%> :radio[checked]").val();

                    
				    var Date1 = new Date(jQuery('#<%=this.begintime.ClientID %>').val());
				    var Date2 = new Date(jQuery('#<%=this.endtime.ClientID %>').val());

				    if (Date2 <= Date1) {
				        KesionJS.Alert("结束时间，不能小于开始时间！", "jQuery('#<%=this.endtime.ClientID %>').focus()");

				        return false;
				    }
				    if ($('#<%=txtadd.ClientID%>').val() == "") {
				        KesionJS.Alert("请请填写开课地点！", "jQuery('#<%=this.txtadd.ClientID %>').focus()");

                         return false;
                     }
				    if (jQuery('#<%=this.MaxPerson.ClientID %>').val() == '') {
				        KesionJS.Alert("请输入限报人数！", "jQuery('#<%=this.MaxPerson.ClientID %>').focus()");

                         return false;
				    }
				    if (t == "0") {
				        if ($('#<%=Money.ClientID%>').val() == "") {
					        KesionJS.Alert("请设置参考价格！", "jQuery('#<%=this.Money.ClientID %>').focus()");
						    return false;
						}
                        if ($('#<%=Price_Member.ClientID%>').val() == "") {
					        KesionJS.Alert("请设置课程价格！", "jQuery('#<%=this.Price_Member.ClientID %>').focus()");
						    return false;
						}
                        if (parseFloat($('#<%=Price_Member.ClientID%>').val()) > parseFloat($('#<%=Money.ClientID%>').val())) {
					        KesionJS.Alert("课程价格不能大于参考价格！", "jQuery('#<%=this.Price_Member.ClientID %>').focus()");
						    return false;
						}

                    }else if(t == "3"){
                        if (jQuery("#<%=this.IsSendNote.ClientID %> :radio[checked]").val() == "1"){
                            KesionJS.Alert("积分兑换课程不能邮寄资料！", "jQuery('#<%=this.NotePrice.ClientID %>').focus()");
                            return false;
                        }
                    }
                    if (jQuery("#<%=this.IsSendNote.ClientID %> :radio[checked]").val() == "1" && parseFloat(jQuery('#<%=this.NotePrice.ClientID %>').val()) < 0){
				            KesionJS.Alert("资料价格不能小于0，请重新输入！", "jQuery('#<%=this.NotePrice.ClientID %>').focus()");
                        return false;
                    }
				    //代理商
                    <%if (Utils.StrToInt(epa.GetEpAgentConfig("EpAgentStatus")) == 1){%>
				    if (jQuery('#<%=this.TxtPingTaiRate.ClientID %>').val() == '') {
				        KesionJS.Alert('平台分配比例必须输入!', "jQuery('#<%=this.TxtPingTaiRate.ClientID %>').focus()");
                        return false;
                     }
                   if (jQuery('#<%=this.TxtProviceRate.ClientID %>').val() == '') {
				        KesionJS.Alert('省级分配比例必须输入!', "jQuery('#<%=this.TxtProviceRate.ClientID %>').focus()");
                       return false;
                     }
                  if (jQuery('#<%=this.TxtCityRate.ClientID %>').val() == '') {
				        KesionJS.Alert('市级分配比例必须输入!', "jQuery('#<%=this.TxtCityRate.ClientID %>').focus()");
                        return false;
                     }
                   <%}%>

						var signal = sendtime();
						if (signal == 0) {
							return true;
						} else {
							
							return false;
						}
				}
	
            </script>
          <div style="clear:both;text-align:center">
    <br />
	   <%--    <asp:Button ID="Button1" runat="server" Text=" 保存 " CssClass="button" OnClick="Button1_Click" />--%>
            <KS:Foot ID="Foot1" runat="server"   OnSubmit="Foot1_Submit" />
             </div>
    </asp:Panel>

	   <asp:Panel ID="pdetail" runat="server">

   <div class="t_tybox">
        <div class="message">
            <span style="float: right; padding-right: 10px">
               <%-- <strong>搜索课程：</strong>
                <asp:TextBox ID="TextBox1" CssClass="textbox" runat="server"></asp:TextBox>--%>
                 <strong>快速搜索：</strong>
             <asp:DropDownList ID="DropDownList1" runat="server">
                      <asp:ListItem Value="1">学员名称</asp:ListItem>
                   </asp:DropDownList>
                <asp:TextBox ID="TextBox2" CssClass="textbox" runat="server" Text="" onfocus="keyWordFocus();" Width="200" onblur="keyWordBlur();" style="color:#ccc" ></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text=" 搜索 " CssClass="button" OnClick="Button5_Click" />
            </span>

           课程名称：《<asp:Label ID="cname" runat="server"></asp:Label>》<br>
           
            课程教师：<asp:Label ID="tname" runat="server" Text=""></asp:Label>
            
            
        </div>
         <div class="tabs_header">
            <ul class="tabs">
                <li <%=KSCMS.S("status")==""?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?action=pdetail&courseID=<%=KSCMS.S("courseID") %>"><span>所有面授课程</span></a></li>
                <li <%=KSCMS.S("status")=="1"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?action=pdetail&status=1&courseID=<%=KSCMS.S("courseID") %>"><span><font color="">已付款</font></span></a></li>
                <li <%=KSCMS.S("status")=="0"?" class='active'":string.Empty %>><a href="KS.CosFaceList.aspx?action=pdetail&status=0&courseID=<%=KSCMS.S("courseID") %>"><span><font color="red">未付款</font></span></a></li>

            </ul>
        </div>
  
 	   <div class="clear blank10"></div>
       <asp:Repeater ID="Repeater2" runat="server"  onitemcommand="Repeater1_ItemCommand"  >
          <HeaderTemplate>
          <table id="tablist" width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
            <tr align="center" class="title">
                <td width="4%" align="center">选择</td>
                <td width="4%" align="center">状态</td>            
                <td width="6%" align="center">价格</td>
                <td width="10%">用户名</td>
				<td width="10%">真实姓名</td>
				<td width="11%">联系电话</td>
				<td width="17%">联系地址</td>
                <td width="18%" align="center">留言</td>
				<td width="10%">下单日期</td>
				<td width="10%">付款日期</td>
     
              </tr>
          </HeaderTemplate>
         <ItemTemplate>
         
             <TR class="tdbg sort bar">
                 <td align="center" nowrap>
                 <input type="checkbox" style='display: <%# Convert.ToString(Eval("status"))== "1" ? "none" : "inline"%>' name="ids" id="ids" value="<%#Eval("ID") %>" />
                
                 </td>
                <td style="text-align:center">
				   <%# Convert.ToString(Eval("status"))=="0"?"<font color=red>未付</font>":"<font color=green>已付</font>" %>
				</td>				
              
                  <td style="text-align:center">
				  <div class="price_cor">¥<%#Kesion.APPCode.Public.ReturnShopPrice(Utils.StrToDecimal(Eval("ordertotalprice")))%></div>

                  </td> 
                 <td style="text-align:center">
				   <%#Eval("username") %>
				</td>
				   <td style="text-align:center">
				   <%#Eval("realname") %>
				</td>
				<td style="text-align:center">
				   <%#Eval("mobile") %>
				</td>
				<td style="text-align:center">
			  <%#Eval("address") %>
				</td>
				<td style="text-align:center">
		  <%#Eval("remark") %>
				</td>
				 <td style="text-align:center">
		<%# Eval("Inputtime")%>
                </td>  
				 <td style="text-align:center">
		<%# Eval("PayTime")%>
                </td>             
			 </TR>
		
         </ItemTemplate>
          <FooterTemplate>
             <TR class="tdbg sort bar" style="display:<%# bool.Parse((Repeater2.Items.Count==0).ToString())?"":"none"%>">
                <td colspan="9">
                <div class="empty">暂无报名详情</div>
                </td>
               </TR> 
           </table>
          </FooterTemplate>
        </asp:Repeater>
 
         	
          	<div class="cz_btn" style="display:block">
			<input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);" class="checkbtn" /><label for="chkall">全选</label>
			<input type="button" value="删除记录" class="button" onclick="if (GetIDS('del')) { this.form.action = '?action=delapply'; this.form.submit() }" />
            <input type="button" value="返回" class="button" onclick="location.href = 'KS.CosFaceList.aspx'" />
            </div>   
			<div class="clear"></div> 
        <div class="fy_box"><KS:Page ID="page2" runat="server" /></div>
     
     </div>
	 </asp:Panel>
   </div>
</asp:Content>
