<%@ Page Language="C#" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Plus.Course.CheckTeacherLiveRoom" Codebehind="CheckTeacherLiveRoom.aspx.cs" %>

<%@ Import Namespace="Kesion.Publics" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="Keywords" content="cms,cms系统,asp.net,asp系统,文章系统,新闻系统,网站管理系统,内容管理系统,科汛cms官方,网站管理,科汛在线考试系统NET版,科汛在线电子商务系统,Kesion网校系统" />
    <meta name="Description" content="厦门科汛软件有限公司，在线预约直播系统，在线预约，在线教学尽在这里！这里有专业的在线网校系统 供您使用" />
    <script src="/KS_Inc/Jquery.js" type="text/javascript"></script>
    <script src="/KS_Inc/Kesion.Common.js" type="text/javascript"></script>
    <script src="/admin/include/comm.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/admin/images/style.css" rel="stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <!-- 选择直播的方式  -->
            <asp:Panel ID="SelectPanel" runat="server">
                <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px">当前直播服务器:</td>
                        <td class="righttd"><%=Kesion.Course.Live.getLiveType(Utils.StrToInt(liveType)) %></td>
                    </tr>
                    <tr style="display:none;">
                        <td class="lefttd" height="30" align="right" style="width: 102px">直播房间名:</td>
                        <td class="righttd"><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"></td>
                        <td class="righttd">
                            <asp:Button ID="Button1" runat="server" Text="获取直播信息" OnClick="Button1_Click" CssClass="button" /></td>
                    </tr>
                </table>

            </asp:Panel>
            <!-- 获取去直播间的信息 -->
            <asp:Panel ID="LivePanel" runat="server" Visible="false">
                <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px">当前直播服务器:</td>
                        <td class="righttd"><%=Kesion.Course.Live.getLiveType(Utils.StrToInt(liveType)) %></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>直播类型：</b></td>
                        <td class="righttd">
                            <%=Kesion.Course.Live.getLiveType(Utils.StrToInt(liveType)) %>
                            <%if (liveType == "2")
                              {%>
                            <a href="http://www.kesion.com/v-112-46353.aspx" class="button" style="margin-left: 10px;" target="_blank">使用说明</a>
                            <%}
                              else if (liveType == "1")
                              { %>
                            <a href="http://www.kesion.com/v-112-46352.aspx" class="button" style="margin-left: 10px;" target="_blank">使用说明</a>
                            <%}
                              else if (liveType == "3")
                              { %>
                            <a href="http://www.kesion.com/v-112-46354.aspx" class="button" style="margin-left: 10px;" target="_blank">使用说明</a>
                            <%}
                              else if (liveType == "4")
                              { %>
                            <a href="http://www.kesion.com/v-112-46355.aspx" class="button" style="margin-left: 10px;" target="_blank">使用说明</a>
                            <%} %>
                        </td>
                    </tr>

                    <%if (liveType == "2")
                      {%>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>启动页地址：</b></td>
                        <td class="righttd">
                            <a href="<%=launchUrl %>" target="_blank">点击启动直播器</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>直播器下载地址：</b></td>
                        <td class="righttd">
                            <a href="<%=downloadUrl %>" target="_blank">点击下载直播器</a>
                        </td>
                    </tr>

                    <%}
                      else if (liveType == "1")
                      { %>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>房问号：</b></td>
                        <td class="righttd">

                            <%=dr["roomid"].ToString() %>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>密码：</b></td>
                        <td class="righttd">
                            <%=dr["channelPasswd"].ToString() %>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>直播器地址：</b></td>
                        <td class="righttd">
                            <a href="http://soft.polyv.net/soft/PolyvLiveSetup.exe">点击下载直播器</a>
                        </td>
                    </tr>
                    <%}
                      else
                      {
                    %>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>推流地址：</b></td>
                        <td class="righttd">
                            <%=streamUrl %>  
                        </td>
                    </tr>
                    <%} %>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 102px"><b>直播状态：</b></td>
                        <td class="righttd">

                            <%=dr["status"].ToString()=="0"?"直播未开始":dr["status"].ToString()=="1"?"直播中":"已结束" %>       
                  
                        </td>
                    </tr>

                </table>
            </asp:Panel>
        </div>
    </form>
</body>
</html>

