<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Live_Chairman.aspx.cs" Inherits="RM.Web.LiveTelecast.Live_Chairman" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=item.LiveTelecast_Name%></title>    
    <link href="Css/Live_Global.css" rel="stylesheet" type="text/css" />
    <link href="Css/LiveTelecast.css" rel="stylesheet" type="text/css" />
    <link href="JavaScript/linkFlyScroll/linkFlyRollCss.css" rel="stylesheet" type="text/css" />
    <script src="../Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="JavaScript/LiveChairmanJs.js" type="text/javascript"></script>
    <script src="/Training/Learn/m/ckplayer/ckplayer.js" type="text/javascript"></script>
    <script src="JavaScript/linkFlyScroll/linkFlyScroll-1.0.0.min.js" type="text/javascript"></script>
    <link href="../Themes/Scripts/ShowMsg/msgbox.css" rel="stylesheet" type="text/css" />
    <script src="../Themes/Scripts/ShowMsg/msgbox.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="../Themes/Scripts/FunctionJS.js" type="text/javascript"></script>   
    <style type="text/css">
    .fl{ float:left;}    
    .fr{ float:right; margin-right:4px; }
    .stuVoie{ width:254px;}
    #curUserList2 ul{ width:510px; padding:0px; margin:0px;  }
    #curUserList2 ul li { width:254px; margin:0px; float:left; }
    </style>
    <script type="text/javascript">
    var  username ="<%=username %>";
        $(function () {
            livePage.init();
            var flashvars = { f: "<%=RM.Common.DotNetConfig.ConfigHelper.GetAppSettings("RmtpURL")%>", id:livePage.data.key,record:'<%=IsVideo %>' };
            var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'opaque' };
            var attributes = { id: "test" };
//            swfobject.embedSWF("vidioOprater.swf", "altContent", "480", "360px", "9.0.124", null, flashvars, params, attributes);
//            alert(so.getElementByClassName('videoContainer vc_Keywords'));
            var video = [flashvars.f + '->video/mp4'];    
    //以下为新方法
    CKobject.embed('vidioOprater.swf', 'altContent', 'ckplayer_a1', '480', "360px", false, flashvars, video, params);
        });

        function erralert(msg) {
            livePage.alertMsg('操作异常:' + msg, 2, 3000);
        }
        function livestart(name) {            
             //name是传入的ID
            livePage.data.userid = "<%=userid %>";
            livePage.data.usertype =1;
            livePage.changeLive(1);
        }

        function dianping(userid) {
            $.get("/LiveTelecast/StuReview_Form.aspx?action=isThere&sid=" + userid + "&lid=<%=item.LiveTelecast_Id %>",function(data){
                if(data=="0"){
                    var url = "/LiveTelecast/StuReview_Form.aspx?uid=" + userid + "&liveid=<%=item.LiveTelecast_Id %>";
                    openDialog(url, 'StuReview_Form', '视频直播 - 学生点评', 550, 190, 50, 50);            
                }else  if(data=="1"){            
                    showTipsMsg("此学员已点评过！");
                }else  if(data=="error"){     
                    showWarningMsg("系统异常！");                
                }
            });
        }

    </script>
</head>
<body>

    <div id="page">

    <div class="nav" id="title_Data" data="<%=item.LiveTelecast_State %>">
            <div class="nav_Content">
                <div class="page_title"><span class="ptRed"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room")%></span><span class="ptTxt"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Teach_teacher")%></span></div>
                <div class="page_Oprater">
                    <input type="button" class="dc_submit closeLive" id="liveClose" value="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%>" />
                </div>
            </div>
        </div>

    <div id="content" style="_height:410px;min-height:410px; height:auto !important; " >          
        <div class="vc_Video" style="float:left; padding:5px 0px 5px 5px;"    >
            <div id="altContent">
                <p><a href="http://www.adobe.com/go/getflashplayer">Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.0.0 or greater is not installed.</a></p>
            </div>
        </div>

        <div class="vc_Video" style="float:right; padding:0px 0px 5px 5px;"  >
            <div id="curUserList2" style="width:510px;">   
            <ul id="curUserListul">
            
            </ul>             
            </div>
        </div>
        <div class="clear"></div>
        <div id="liid">
        </div>
        

    </div>

    <div id="content2" style="height:210px;">
        <div class="liveDetail">
            <ul class="liveDet">
                <li>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamPlan_zhiboName")%>：<span class="vc_Keywords"><%=item.LiveTelecast_Name %></span>
                    </div>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_fl")%>：<span class="vc_Keywords"><%=item.LiveTelecast_TypeName %></span>
                    </div>
                </li>
                <li>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_zj")%>：<span class="vc_Keywords"><%=item.LiveTelecast_Teacher %></span>
                    </div>
                </li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_cy")%>：<span class="vc_Keywords"><%=item.LiveTelecast_UserGroupName %></span>
                </li>
            </ul>
            <div><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_ms")%>：</div>
            <div class="detailDis liveDiscription">
                <div id="liveDis">
                    <%=item.LiveTelecast_Discription %>
                </div>
            </div>
        </div>
    </div>

    </div>

    <div class="closeLiveResult" id="closeWarning">
        <img src="/LiveTelecast/Images/LiveWarning.png" alt="" class="warningImg" />
        <span id="warningText"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_end")%></span>
    </div>

    <script type="text/javascript">
        function bofang(userkey, liid, ckplayer_a) {
//            livePage.init();
            //播放
var flashvars = { f: "<%=RM.Common.DotNetConfig.ConfigHelper.GetAppSettings("RmtpURL")%>"+ userkey , c: 0, b: 1, p: 1 };
            var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'opaque' };
            var video = [flashvars.f + '->video/mp4'];    
            $(function () {
                //CKobject.embedSWF('/LiveTelecast/JavaScript/liveCkplayer/ckplayer.swf','' + liid + '', '' + ckplayer_a + '', '250', '200', flashvars, params);                
                CKobject.embed('/Training/Learn/m/ckplayer/ckplayer.swf','' + liid + '', '' + ckplayer_a + '', '250', "200", false, flashvars, video, params);
            });
        }
        //art.dialog.open();
    </script>
</body>
</html>
