<%@ Page Language="c#" CodeBehind="ArrangeClass.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.Class.ArrangeClass"
    Title="需要排课-教务" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc2" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<!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">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <uc3:col_Header ID="col_Header1" runat="server" />

        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">

                <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand" OnItemDataBound="repBlock_ItemDataBound">
                    <ItemTemplate>
                        <div class="kuai">
                            <h1 class="auto_length_title">
                                <asp:Image ID="imgClass" ImageUrl='<%# accTheme("Class.gif")%>' ToolTip='<%#Eval("ClassID") %>'
                                    runat="server" />
                                <asp:HyperLink runat="server" ID="hlkClassInfo" Text='<%#Eval("ClassName") %>' ToolTip='<%#Eval("ClassName") %>' NavigateUrl='<%# string.Format("Class.aspx?ClassID={0}&GetUrl={1}",Eval("ClassID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                            </h1>

                            <table class="table" cellspacing="0" border="0">
                                <tr>
                                    <td style="width: auto">班号：</td>
                                    <td style="width: auto"><%#Eval("ClassID") %></td>
                                </tr>
                                <tr>
                                    <td style="width: auto">开课日期：</td>
                                    <td style="width: auto"><%#Eval("StartDate","{0:d}") %></td>
                                </tr>
                                <tr>
                                    <td>老师：</td>
                                    <td><%#Eval("TeacherName") %></td>
                                </tr>
                                <tr>
                                    <td>上课规律：</td>
                                    <td><%#Eval("TimeRule") %></td>
                                </tr>
                                <tr>
                                    <td>校区：</td>
                                    <td><%#Eval("SchoolName") %></td>
                                </tr>
                                <tr>
                                    <td>招生比例：</td>
                                    <td>
                                        <uc2:Progress ID="Progress1" runat="server" MaxNum='<%#Eval("PlanCount") %>' MinNum='<%#Eval("StuCount") %>'
                                            ProgressWidth="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>上课进度：</td>
                                    <td>
                                        <uc2:Progress ID="Progress3" runat="server" MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("CourseProgress") %>'
                                            ProgressWidth="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>排课进度：</td>
                                    <td>
                                        <uc2:Progress ID="Progress2" runat="server" MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("ArrangeLessons") %>'
                                            ProgressWidth="50px" />
                                    </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("ClassID")%>'
                                                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("PostClass.aspx?ClassID={0}&PageIndex=0&action=edit&topURL={1}",Eval("ClassID"),swq.Web.PathAndQuery()) %>' />
                                        </div>
                                    </td>
                                    <td>
                                        <div class="lab_button">
                                            <asp:HyperLink ID="hlkControlPanel" runat="server" Text="控制面板" NavigateUrl='<%# string.Format("Class.aspx?ClassID={0}&topURL={1}",Eval("ClassID"),swq.Web.PathAndQuery()) %>' />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>

                <div class="pager_button">
                    <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                </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>
        </div>
    </form>
</body>
</html>
