<%@ Control Language="C#" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Course" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Config" %>
<%@ Import Namespace="Kesion.Components" %>
<%@ Import Namespace="Kesion.HtmlTags" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Xml" %>
<script runat="server" type="text/C#">
    dynamic __courseperiod = HttpContext.Current.Items["courseperiod"];
    public string isBuyYunserver = string.Empty;
    public int YunVideoType =99;

    public  string ACCESS_KEY = string.Empty;
    public  int VideoType = 0;
    public  string fieldID = string.Empty;
    public  string from = string.Empty;
    public  string  classId = string.Empty;
    public  int t_count = 0;
    public  int t_free = 0;
    protected void Page_Load(object sender, EventArgs e)
    {

        VideoType = Utils.StrToInt(KSCMS.S("VideoType"), 5);

        isBuyYunserver = Live.GetAutoPlayConfig("IsKesionYun", VideoType);
        this.moveplaytype1.Text = GetPlayType();

        fieldID = KSCMS.S("fieldID");

        from = __courseperiod["periodfrom"].ToString();
       
        if (from == "pc")
        {
            KSSecurity.CheckPermissions();


            Hashtable htVidoeAccount = Kesion.BLL.Yun.GetVideoServerAccount(VideoType); //得到ACCESS_KEY
            if (htVidoeAccount != null)
            {
                ACCESS_KEY = htVidoeAccount["ACCESS_KEY"].ToString();
            }

        }
        else//会员中心
        {
           
            if (UserManage.GetUserInfo(UserManage.GetUserInfo().UserID).GroupID == 3)
            {
                #region 机构
                t_count = Utils.StrToInt(DataFactory.GetOnlyValue("select count(id) from KS_YunVideoItem where AddUserID=" + UserManage.GetUserInfo().UserID + ""));
                using (DataTable dt = DataFactory.GetDataTable("select top 1 courseClass,free from KS_EnterPrise where UserName='" + UserManage.GetUserInfo().UserName + "'"))
                {
                    if (dt.Rows.Count > 0)
                    {
                        DataRow dr = dt.Rows[0];
                        t_free = Utils.StrToInt(dr["free"].ToString());
                        classId = dr["courseClass"].ToString();
                    }

                }
                #endregion
            }
            else if (UserManage.GetUserInfo(UserManage.GetUserInfo().UserID).GroupID == 4)
            {
                classId = (DataFactory.GetOnlyValue("select top 1 ClassID from KS_CosTeacher where Field='" + (new TemporaryVar()).UserName + "'"));
            }

            Hashtable htVidoeAccount = Kesion.BLL.Yun.GetVideoServerAccount(VideoType, 2, new TemporaryVar().UserID); //得到ACCESS_KEY
            if (htVidoeAccount != null)
            {
                ACCESS_KEY = htVidoeAccount["ACCESS_KEY"].ToString();
            }
        }

    }
    public string GetPlayType()
    {
        #region 初始化点播的播放类型
        StringBuilder psb = new StringBuilder();
        psb.Append(@"<select name=""moveplaytype"" id=""moveplaytype"" onchange=""checked();"">");
        XmlDocument xmldoc = new XmlDocument();
        xmldoc.Load(Utils.GetMapPath(KSCMS.GetInstallDir() + "config/course/VideoServerSetting.config"));
        bool isdefault = false;


        foreach (XmlNode xn in xmldoc.SelectNodes("//autoplay/item"))
        {
            ListItem li = new ListItem();
            if (xn.SelectSingleNode("@isdefault").InnerText == "true")
            {
                if (xn.SelectSingleNode("@autoplayid").InnerText == __courseperiod["isexample"].ToString())
                {
                    psb.AppendFormat(@"<option value=""{0}"" {2}>{1}</option>", xn.SelectSingleNode("@autoplayid").InnerText,xn.SelectSingleNode("@name").InnerText, "selected");
                    isdefault = true;
                }
                else
                {
                    psb.AppendFormat(@"<option value=""{0}"" {2}>{1}</option>", xn.SelectSingleNode("@autoplayid").InnerText, xn.SelectSingleNode("@name").InnerText, "");

                }

            }

        }
        foreach (XmlNode xn in xmldoc.SelectNodes("//autoplay/item"))
        {
            ListItem li = new ListItem();
            if (xn.SelectSingleNode("@enable").InnerText == "true" && xn.SelectSingleNode("@isdefault").InnerText == "false")
            {
                psb.AppendFormat(@"<option value=""{0}"" {2}>{1}</option>", xn.SelectSingleNode("@autoplayid").InnerText,  xn.SelectSingleNode("@name").InnerText, (xn.SelectSingleNode("@autoplayid").InnerText == __courseperiod["isexample"].ToString() && !isdefault )? "selected" : "");

            }

        }

        psb.AppendFormat(@"<option value=""{0}"" {2}> {1}</option>", "100", "其他", __courseperiod["isexample"].ToString() == "100" ? "selected" : "");




        psb.Append("</select>");

        return psb.ToString();
        #endregion
    }
</script>


 <% Kesion.APPCode.EditorAPI.EchoHead();%>

    <script>
        var box = '';
        function isType(){
            //var $this = $(t);
            var a = $('input[name="radiotype"]:checked').val();
            jQuery("#x_time").hide();

            if (a=='2'){	
                //图文  
                jQuery("#Tbody13").show();
                jQuery("#Tbody14").hide();
                jQuery("#Tbody12").hide();
                jQuery("#Tbody11").hide();
                jQuery("#threencscreen").hide();
                jQuery("#UploadThreen").hide();
                jQuery("#UploadThreen1").hide();
                jQuery("#SetListening").hide();
            }else if (a=='0') {
                //视频
            
                jQuery("#Tbody11").show();
                jQuery("#Tbody14").hide();
                jQuery("#Tbody12").hide();	
                jQuery("#Tbody13").hide();
                jQuery("#x_time").show();
                jQuery("#threencscreen").show();
                jQuery("#UploadThreen").show();
                jQuery("#UploadThreen1").show();
                jQuery("#SetListening").show();
                checked();
            }else if(a=='3'){       	
                jQuery("#Tbody13").hide();
                jQuery("#Tbody14").hide();
                jQuery("#Tbody12").show();	
                jQuery("#Tbody11").hide();
                jQuery("#othervideo").hide();
                jQuery("#threencscreen").hide();
                jQuery("#UploadThreen").hide();
                jQuery("#UploadThreen1").hide();
                jQuery("#SetListening").hide();
            
            } else if (a == '1') {
                    jQuery("#Tbody13").hide();
                    jQuery("#Tbody14").show();
                    jQuery("#Tbody12").hide();
                    jQuery("#Tbody11").hide();
                    jQuery("#othervideo").hide();
                    jQuery("#threencscreen").hide();
                    jQuery("#UploadThreen").hide();
                    jQuery("#UploadThreen1").hide();
                    jQuery("#SetListening").hide();

                }}

                             
        function checked() {
            var a = jQuery("#moveplaytype option:selected").val();
            //  $("#ban_seek").hide();
            if (a == 10) {
                $("#aliyunbutton").attr("src", "/plus/yun/yuncs.aspx?type=init&id=10&a=<%=from %>");
                $("#aliyunbutton").show();
                $("#aliyunnote").hide();
                $("#aliyuntitle").html("阿里云ID：");
                $("#aliyunselect").show();
                $("#UploadThreen1").hide();
            } else if (a == 12) {
                $("#aliyunbutton").attr("src", "/plus/yun/yuncs.aspx?type=init&id=12&a=<%=from %>");
                $("#aliyunbutton").show();
                $("#aliyunnote").hide();
                $("#aliyuntitle").html("百度云ID：");
                $("#aliyunselect").show();
            } else if (a == 8) {
                $("#aliyunbutton").attr("src", "/plus/yun/yuncs.aspx?type=init&id=8&a=<%=from %>");
                $("#aliyunbutton").show();
                $("#aliyunnote").hide();
                $("#aliyuntitle").html("腾讯云ID：");
                $("#aliyunselect").show();
                $("#UploadThreen1").hide();
            } else if (a == 6) {
                $("#aliyunbutton").attr("src", "/plus/yun/yuncs.aspx?type=init&id=6&a=<%=from %>");
                $("#aliyunbutton").show();
                $("#aliyunnote").hide();
                $("#aliyuntitle").html("CC视频：");
                $("#aliyunselect").show();
                $("#UploadThreen1").hide();

            }else {
                $("#aliyunbutton").hide();
                $("#aliyunnote").show();
                $("#aliyuntitle").html("第三方云视频ID：");
                $("#aliyunselect").hide();
            }
            if (a == 0) {
                
                $("#letv").show();
                $("#showlist").hide();
                $("#YunVideo").hide();
                $("#othervideo").hide();
                jQuery("#threencscreen").hide();
                jQuery("#threencscreen1").hide();
                jQuery("#UploadThreen").hide();
                jQuery("#UploadThreen1").hide();
                jQuery("#SetListening").hide();
            }
            else if (a == 100) {
                $("#othervideo").show();
                $("#YunVideo").hide();
                $("#letv").hide();
                jQuery("#threencscreen").hide();
                jQuery("#threencscreen1").hide();
                jQuery("#UploadThreen1").hide();
                jQuery("#SetListening").hide();
                $("#showlist").hide();

            }
            else if (a == 5) { //保利卫视
                $("#letv").hide();
                $("#showlist").show();
                $("#othervideo").hide();           
                $("#aliyunbutton").attr("src", "/plus/yun/yuncs.aspx?type=init&id=5&a=<%=from %>&VideoType=<%=VideoType%>");
                $("#aliyunbutton").show();
         
                $("#aliyunnote").hide();
                $("#aliyuntitle").html("云视频ID：");
                $("#aliyunselect").show();
           
                var ss = '<%=Kesion.Course.Live.GetAutoPlayConfig("isthreescreen",5)%>';
                if (ss == '1') {
                    jQuery("#threencscreen").show();
                    jQuery("#threencscreen1").show();
                    jQuery("#UploadThreen1").show();

                }
                else {
                    jQuery("#UploadThreen1").hide();
                    jQuery("#threencscreen").hide();
                    jQuery("#threencscreen1").hide();

                }
                var ss1 = '<%=Kesion.Course.Live.GetAutoPlayConfig("isfreelistening",5)%>';
                if (ss1 == '1') {
                    jQuery("#SetListening").show();

                }
                else {
                    jQuery("#SetListening").hide();
                }             
                
            } else {

                $("#letv").hide();
                $("#showlist").show();
                $("#YunVideo").hide();
                $("#othervideo").hide();
                jQuery("#threencscreen").hide();
                jQuery("#threencscreen1").hide();
                jQuery("#UploadThreen").hide();
                jQuery("#SetListening").hide();
            }

        }
       
        function SetDownUrlByUpLoad(v,s)
        {       
            jQuery("#"+s).val(v);    
                          
        }
        var box1='';
        function upbtn()
        {
            var a=jQuery("#moveplaytype option:selected").val();
            if (a!=undefined)
            {
                box1=jQuery.dialog.open("/plus/Course/qiniu.aspx?autoplayid="+a, {lock: true, fixed: true, title: "<div style='text-align:left'>选择上传的文件</div>", width: 960, height: 485, max: false, min: false });
            }	
                          
        }
  
        function upbtnyun(FieldID)
        {
            var a = jQuery("#moveplaytype option:selected").val();
            if (a!=undefined)
            {
                box1 = jQuery.dialog.open("/plus/Course/GetYunVideo.aspx?from=<%=__courseperiod["periodfrom"].ToString()%>&VideoType=" + a + "&fieldID=" + FieldID, { lock: true, fixed: true, title: "<div style='text-align:left'>选择视频文件</div>", width: 1000, height: 500, max: false, min: false });
                //top.openWin("选择视频文件", "/plus/Course/GetYunVideo.aspx?VideoType=" + a + "&fieldID=" + FieldID, false, 1000, 500);
           
            }	
    
           
        }


    function Addupppt(FieldID) {
        var a = jQuery("#moveplaytype option:selected").val();
        var vid = jQuery("#" + FieldID).val();
        if (vid == '') {
            vid = jQuery("#TextAddress").val();
        }
        if (a != undefined && vid != '') {
            box1 = jQuery.dialog.open("/plus/Course/Addupppt.aspx?from=<%=__courseperiod["periodfrom"].ToString()%>&vid=" + vid + "&VideoType=" + a + "&fieldID=" + FieldID, { lock: true, fixed: true, title: "<div style='text-align:left'>选择上传的文件</div>", width: 1000, height: 500, max: false, min: false });
           
        } else {
            alert("请先上传视频或选择一个视频");
        }



    }
    function SetListening1() {

        var c=$('input[name="RdbIsListening"]:checked').val();

        if (c == "1") {
            $("#listenningseconds").show();
        }
        else {
            $("#listenningseconds").hide();
        }

    }
    function SetThreeScreen() {
        var isyun = '<%=isBuyYunserver%>';//2新客户
      
            b = document.getElementById("RdbIsThreeScreen").checked;
            if (b) {

                $("#UploadThreen1").show();
                var fieldID = '';
                var vid = '';
                var a = jQuery("#moveplaytype option:selected").val();
                vid = jQuery("#TextAddress").val();
                fieldID = 'TextAddress';
             
                 if (a != undefined && vid != '') {

                     box1 = jQuery.dialog.open("/plus/Course/Addupppt.aspx?from=<%=__courseperiod["periodfrom"].ToString()%>&VideoType=" + a + "&fieldID=" + FieldID, { lock: true, fixed: true, title: "<div style='text-align:left'>选择上传的文件</div>", width: 1000, height: 500, max: false, min: false });

                 } else {
                     alert("请先上传视频或选择一个视频,在上传三分屏的文件");
                 }

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

            }
    }
        function startabc() {
          //  box1= top.openWin("选择上传的文件：", "/plus/yun/yuncs.aspx", false, 350, 250);
          box1 = jQuery.dialog.open("/plus/yun/yuncs.aspx", { lock: true, fixed: true, title: "<div style='text-align:left'>选择上传的文件</div>", width: 600, height: 320, max: false, min: false });
        }

        $(document).ready(function () {
             isType();
            checked();
            //SetThreeScreen();
            SetListening1();

        });


    </script>
	
    <tr id="addptype">
        <td align="right" class="lefttd" style="width: 258px;">
            <strong>播放类型：</strong>
        </td>
        <td class="righttd border">
            <label onclick="isType()" style="padding-left:10px">
                <input type="radio" value="0" class="radiobtn" name="radiotype" <%=(Utils.StrToInt(__courseperiod["type"].ToString(),0)==0|| string.IsNullOrEmpty(__courseperiod["type"].ToString()))?" checked":"" %>/>视频</label>
            <label onclick="isType()" style="padding-left:10px">
                <input type="radio" value="1" class="radiobtn" name="radiotype" <%=(__courseperiod["type"].ToString()=="1")?"checked":"" %>/>音频</label>
            <label onclick="isType()" style="padding-left:10px">
                <input type="radio" value="2" class="radiobtn" name="radiotype" <%=(__courseperiod["type"].ToString()=="2")?"checked":"" %>/>图文</label>
            <label onclick="isType()" style="padding-left:10px">
                <input type="radio" value="3" class="radiobtn"  name="radiotype"<%=(__courseperiod["type"].ToString()=="3")?"checked":"" %> />PDF</label>
        </td>
    </tr>

    <tbody id="Tbody11">

        <tr>
            <td align="right" class="lefttd" height="30">
                播放视频类型：
            </td>
            <td class="righttd">
                <asp:Label ID="moveplaytype1" runat="server"></asp:Label>
                 </td>
        </tr>
        <tr id="letv" style="display: none">
            <td align="right" class="lefttd" height="30">
                本地上传视频：
            </td>
            <td class="righttd">
                网页版: <input type="text" class="textbox" size="30" name="TxtUrl" id="TxtUrl" maxlength="400"  value="<%=__courseperiod["url"].ToString() %>"/>&nbsp;
                 
               
                <%if(__courseperiod["periodfrom"].ToString()=="user"){ %>
                  <input type="button" class="button" onclick="SelectUserFiles('TxtUrl', 0);" value="选择文件" />
                   <%=Kesion.APPCode.UploadAPI.EchoUpload("courseUserFile","TxtUrl",0,85) %>
                 
                <%}else { %>
                <input type="button" class="button" onclick="SelectFiles('TxtUrl', 0);" value="选择文件" />
                 <%=Kesion.APPCode.UploadAPI.EchoUpload("courseFile","TxtUrl",0,85) %>
                <%} %>
                  

                <div class="hr_line"></div>
                手机版: <input type="text" class="textbox" size="30" name="WapUrl" id="WapUrl" maxlength="400"  value="<%=__courseperiod["templateFile"].ToString() %>"/>&nbsp;
               
             
               
               <%if (__courseperiod["periodfrom"].ToString() == "user")
                 { %>
                <input type="button" class="button" onclick="SelectUserFiles('WapUrl', 0);" value="选择文件" />
                 <%=Kesion.APPCode.UploadAPI.EchoUpload("courseUserFile","WapUrl") %>

                <%}else { %>
                <input type="button" class="button" onclick="SelectFiles('WapUrl',0);" value="选择文件" />
                 <%=Kesion.APPCode.UploadAPI.EchoUpload("courseFile","WapUrl") %>

                <%} %>
            </td>
        </tr>


    

        <tr id="showlist" style="display: none">
            <td align="right" class="lefttd" height="30">
                <b id="aliyuntitle">第三方云视频ID:</b>
            </td>
            <td class="righttd">
                  <input type="text" class="textbox" size="30" name="TextAddress" id="TextAddress" maxlength="400" value="<%=__courseperiod["url"].ToString() %>"/>
                  <a onclick="javascript:upbtnyun('TextAddress')" class="button" id="aliyunselect">选择视频</a> 

                <%if(Kesion.Course.Live.GetAutoPlayConfig("isthreescreen",5)=="1"){ %>
                 <span id="threencscreen1" style="display: none">
                  <label>   <input name="ban_seek" type="checkbox" class="checkbtn" id="ban_seek"  value="1" <%=(__courseperiod["ban_seek"].ToString()=="1")?" checked":"" %>>禁止快进播放</label>
                 <label><input name="RdbIsThreeScreen" type="checkbox" class="checkbtn" id="RdbIsThreeScreen" onClick="SetThreeScreen()" value="1" <%=(__courseperiod["isthreescreen"].ToString()=="1")?" checked":"" %>>是否启用三分屏</label> 
		        </span>
                 <span id="UploadThreen1" style="display: none"><a class="link-color" onclick="javascript:Addupppt('TextAddress')">三分屏上传PPT</a> </span>
                <%} %>


                 <iframe src="about:blank"  id="aliyunbutton" scrolling="no" name="upframe" id="upframe" style="width:100%;height:80px !important;display:none" frameborder="no"></iframe> 
                  <font id="aliyunnote"> 乐视视频UU|VU用竖线隔如：exa879200|a82201ac ,其他视频填ID： XMTM5NzE0MTAzNg==</font>
            </td>
        </tr>

      
        <tbody id="othervideo" style="display: none">
            <tr>


                <td align="right" class="lefttd" height="30">
                    <font color="red">*</font>其他录制视频播放器PC版的脚本:
                </td>
                <td>

                   <textarea name="TxtOrherVideo" id="TxtOrherVideo" style="width:98%;height:300px"  ><%=__courseperiod["url"].ToString() %></textarea>


                    <br />
                    <a href="http://<%=Utils.IsBuyYunServer("serverurl/yunurl") %>/v-1-3753.aspx" target="_blank"><font color="red">请参考这个教程填写</font></a>
                </td>

            </tr>
            <tr>
                <td align="right" class="lefttd" height="30">
                    <font color="red">*</font>其他录制视频播放器3G版的脚本: 
                </td>
                <td>
                      <textarea name="TxtMobileOrherVideo" id="TxtMobileOrherVideo" style="width:98%;height:300px" ><%=__courseperiod["isMobileplayerjs"].ToString() %></textarea>
                    
                </td>
            </tr>
        </tbody>

        <tbody id="SetListening" style="display:none">
            <tr>
                <td align="right" class="lefttd" height="30">
                    是否启用试听设置：
                </td>

                <td class="righttd">
                  	<label onclick="SetListening1()">
                   	<input type="radio" value="0" class="radiobtn" name="RdbIsListening" <%=(__courseperiod["islistening"].ToString()=="0"|| string.IsNullOrEmpty(__courseperiod["islistening"].ToString()))?" checked":"" %> />否</label>
                  	<label onclick="SetListening1()">
                  	<input type="radio" value="1" class="radiobtn" name="RdbIsListening" <%=(__courseperiod["islistening"].ToString()=="1")?" checked":"" %>/>是</label>
                    <span class="tips">如果选择“是”的话，那么播放的时候就会变成试听。</span>
                </td>
            </tr>
            <tr id="listenningseconds" style="display: none">
                <td align="right" class="lefttd" height="30">试听的秒数设置：</td>
                <td class="righttd">&nbsp;
                 <input type="text" class="textbox" style="width:60px;text-align:center" name="TxtListeningSeconds" id="TxtListeningSeconds" maxlength="400"  value="<%=__courseperiod["listeningseconds"].ToString() %>"/>秒
                  <span class="tips"><font color="red">1分钟=60秒</font></span>
                </td>
            </tr>
        </tbody>
   		<tbody id="x_time" style="display:none">
            <tr >
                <td align="right" class="lefttd" style="width: 258px;">
                    课时资料(讲义)：
                </td>
                <td class="righttd border">
                     <input id="DefaultFile" name="ZLURL" Class="textbox" style="float:left;" type="text" value="<%=__courseperiod["zlurl"].ToString() %>" >
                
                           <%if(__courseperiod["periodfrom"].ToString()=="user"){ %>
                     <%=Kesion.APPCode.UploadAPI.EchoUpload("coursepptFiles","DefaultFile") %>
                    <%}else { %>
                     <%=Kesion.APPCode.UploadAPI.EchoUpload("coursepptFile","DefaultFile") %>
                    <%} %>               
                   
                   上传PDF格式文件支持在线图文浏览
               </td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30"><strong><font color="red">*</font>播放时长：</strong></td>
                <td class="righttd"><input type="text" class="textbox"  style="width:60px;text-align:center" name="TxttimeCount" id="TxttimeCount" maxlength="100"  value="<%=Utils.StrToInt(__courseperiod["timecount"].ToString())==0?3600:__courseperiod["timecount"].ToString() %>"/>秒<span class="tips">（TIPS:1分钟等于60秒）</span>
                </td>
            </tr>
         	<tr id="allowwatch">
                <td align="right" class="lefttd" height="30"><strong>允许观看次数：</strong></td>
                <td class="righttd">
                    <input type="text" class="textbox"  style="width:60px;text-align:center" name="limitlearn" id="Text1" maxlength="100"  value="<%=Utils.StrToInt(__courseperiod["limitlearn"].ToString()) %>"/>次 
                   
                  每观看<input type="text" class="textbox"  style="width:60px;text-align:center" name="limitlearntime" id="Text2" maxlength="100"  value="<%=Utils.StrToInt(__courseperiod["limitlearntime"].ToString()) %>"/>分钟记作一次观看<span class="tips">（TIPS:设置为0 表示不限）</span>
                </td>
        	</tr>
       	</tbody>
		
    </tbody>


    <tbody id="Tbody12" style="display: none">
        <tr>
            <td align="right" class="lefttd">播放文件上传：</td>
            <td style="text-align:left">
                <font color="red">*</font>
                 <input type="text" class="textbox" size="30" name="Textppt" id="Textppt" maxlength="400"  value="<%=__courseperiod["url"].ToString() %>" />
                &nbsp;
               <%if(__courseperiod["periodfrom"].ToString()=="user"){ %>
                <input type="button" class="button" onclick="SelectUserFiles('Textppt', 0);" value="选择播放文件" />
                  <%=Kesion.APPCode.UploadAPI.EchoUpload("courseZLFile","Textppt") %>     
                <%}else{ %>
                  <input type="button" class="button" onclick="SelectFiles('Textppt', 1);" value="选择播放文件" />
                <%=Kesion.APPCode.UploadAPI.EchoUpload("coursepptFile","Textppt") %>     
                <%} %>          
            </td>
        </tr>
    </tbody>


    <tbody id="Tbody14" style="display: none">
        <tr>
            <td align="right" class="lefttd">播放文件上传：</td>
            <td style="text-align:left"> 
                <font color="red">*</font>
                 <input type="text" class="textbox" size="30" name="Textppts" id="Textppts" maxlength="400"  value="<%=__courseperiod["url"].ToString() %>"/>
                &nbsp;
               <%if(__courseperiod["periodfrom"].ToString()=="user"){ %>
                <input type="button" class="button" onclick="SelectUserFiles('Textppts', 0);" value="选择播放文件" />
                  <%=Kesion.APPCode.UploadAPI.EchoUpload("courseFile","Textppts") %>     
                <%}else{ %>
                  <input type="button" class="button" onclick="SelectFiles('Textppts', 1);" value="选择播放文件" />

                <%=Kesion.APPCode.UploadAPI.EchoUpload("courseFile","Textppts") %>     

                <%} %>          
            </td>
        </tr>
    </tbody>

    <tbody id="Tbody13" style="display: none">
        <tr>
            <td align="right" class="lefttd">播放图文介绍 </td>
            <td>

                <textarea name="PeriodTxtIntro" id="PeriodTxtIntro" style="width:98%;height:300px" ><%=__courseperiod["intro"].ToString() %></textarea>
                <% Kesion.APPCode.EditorAPI.EchoEditor("editor","PeriodTxtIntro", "Common");%>
                
                                       
            </td>
        </tr>
    </tbody>


