<%@ Page Language="c#" CodeBehind="StuClass.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.Register.StuClass"
    Title="选班列表-客服" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_ReportControl.ascx" TagName="ReportControl" TagPrefix="uc2" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<%@ Register Src="../User_Col/col_StuControlPanel.ascx" TagName="col_StuControlPanel" TagPrefix="uc4" %>
<%@ Register src="../../UserCol/ReportServer.ascx" tagname="ReportServer" tagprefix="uc5" %>
<!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 runat="server">
    <title></title>
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
        function Checks(checkbox) {
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id == "id") {
                    e.checked = checkbox.checked;
                }
            }
        }

    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <uc3:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">
            <div class="biao_zhun_suo_jin">
                <uc5:ReportServer ID="ReportServer1" runat="server" />
                <uc4:col_StuControlPanel ID="col_StuControlPanel1" runat="server" />

                <div class="main">
                    <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand"
                        OnItemDataBound="repBlock_ItemDataBound">
                        <ItemTemplate>
                            <asp:Panel ID="plItem" runat="server" CssClass="kuai">

                                <h1 class="auto_length_title">
                                    <input type="checkbox" id="id" value='<%#Eval("StuClassID")%>' />
                                    <asp:HyperLink ID="hlkClassShow" runat="server" Text='<%#Eval("ClassName")%>' NavigateUrl='<%# string.Format("Class.aspx?ClassID={0}&GetURL={1}",Eval("ClassID"),swq.Web.PathAndQuery()) %>' />
                                </h1>

                                <table class="table_simple_kuan">
                                    <tr>
                                        <td style="width: auto">学员：</td>
                                        <td style="width: auto"><%#Eval("StudentName")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">日期：</td>
                                        <td style="width: auto"><%#Eval("DateAndTime")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">状态：</td>
                                        <td style="width: auto"><%#Rs.Items.GetScState(Eval("ScStateID"))%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">类型：</td>
                                        <td style="width: auto"><%#Rs.Items.GetStuClassType(Eval("ContinueReg"))%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">课时进度：</td>
                                        <td style="width: auto">
                                            <uc1:Progress ID="Progress1" runat="server" MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("CourseProgress") %>' StartDate='<%#Eval("DateAndTime") %>' ExpiryDate='<%#Eval("ExpiryDate") %>'
                                                ProgressWidth="65%" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">报名点：</td>
                                        <td style="width: auto"><%# Eval("PostSchoolName") %></td>
                                    </tr>
                                    <%--                                    <tr>
                                        <td style="width: auto">课时库存：</td>
                                        <td style="width: auto">
                                            <asp:HyperLink ID="hlkBuy" runat="server" Text="课时库存" NavigateUrl='<%# string.Format("BuyLessonsLog.aspx?StuClassID={0}",Eval("StuClassID")) %>' /></td>
                                    </tr>--%>
                                </table>

                                <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td>
                                            <div class="lab_button" id="divDelete" runat="server">
                                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("StuClassID")%>'
                                                    OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="lab_button" id="divEdit" runat="server">
                                                <asp:HyperLink ID="hlkEdit" runat="server" Text="编辑" NavigateUrl='<%# string.Format("PostStuClass.aspx?StuClassID={0}&StudentID={1}&ClassID={2}&GetURL={3}",Eval("StuClassID"),Eval("StudentID"),Eval("ClassID"),swq.Web.PathAndQuery()) %>' />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="lab_button">
                                                <asp:HyperLink ID="hlkShow" runat="server" Text="浏览" NavigateUrl='<%# string.Format("StuClassShow.aspx?StuClassID={0}&GetURL={1}",Eval("StuClassID"),swq.Web.PathAndQuery()) %>' />
                                            </div>
                                        </td>
                                    </tr>
                                </table>

                                <div class="details"></div>

                            </asp:Panel>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

                <div class="striking">
                    <table cellpadding="0" cellspacing="2">
                        <tr>
                            <td>
                                <input onclick="Checks(this)" type="checkbox">
                            </td>
                            <td>全选
                            </td>

                            <td class="orangebutton" onmouseover="__mt_NavMouseover(this,'orangebutton')" onmouseout="__mt_NavMouseout(this,'orangebutton')">
                                <uc2:ReportControl ID="ReportControl1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>


                <div class="backpanel">
                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                    </label>
                </div>

                <div class="divremark">
                    <b>注意事项：</b><br />
                    1、如果您发现选班信息无法编辑或删除，请到教务模块：学员控制面板-选班信息-编辑或删除，因为选班信息的管理工作由教务负责。<br />
                </div>

            </div>
        </div>
    </form>



</body>
</html>
