<%@ Page Language="c#" CodeBehind="FoundClass.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.Student.FoundClass"
    Title="我要报班" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc2" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<%@ Register Src="../../UserCol/Ann.ascx" TagName="Ann" 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="../User_Col/col_StuHeader.ascx" tagname="col_StuHeader" 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" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <%--<uc3:col_Header ID="col_Header1" runat="server" />--%>
        <uc5:col_StuHeader ID="col_StuHeader1" runat="server" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">

                <%--<uc4:col_StuControlPanel ID="col_StuControlPanel1" runat="server" />--%>
                <uc2:Ann ID="Ann1" runat="server" />

                

                <div class="kuai_show">
                    <h1 style="text-align: center">我要报班</h1>
                    <table class="table_simple_kuan">
                        <tr>
                            <td>校区：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID" AutoPostBack="True" OnSelectedIndexChanged="ddlSchool_SelectedIndexChanged">
                                </asp:DropDownList></td>
                        </tr>

                        <tr>
                            <td>课程分类：</td>
                            <td>
                                <asp:DropDownList ID="ddlCourseType" runat="server" DataTextField="CourseTypeName"
                                    DataValueField="CourseTypeID" AutoPostBack="True" OnSelectedIndexChanged="ddlCourseType_SelectedIndexChanged">
                                </asp:DropDownList></td>
                        </tr>

                        <tr>
                            <td>课程：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCourse" runat="server" DataTextField="CourseName" DataValueField="CourseID">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>讲师：
                            </td>
                            <td>
                                <table class="table_simple">
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlTeacher" runat="server" DataTextField="TrueName" DataValueField="UserID">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            <uc1:SimpleCode ID="SimpleCode1" runat="server" UsersControlID="ddlTeacher" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div class="backpanel">
                                <div class="lab_button_kuan">
                                    <asp:Button ID="btnSelect" runat="server" Text="查询" OnClick="btnSelect_Click"></asp:Button>
                                </div>
                                    </div>
                            </td>
                        </tr>
                    </table>


                    <div>
                        <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='<%#(int) Eval("StuCount") + (int)Eval("ProspectStuCount") %>'
                                                    ProgressWidth="50px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>预订学员：</td>
                                            <td>
                                                <%#Eval("ProspectStuCount") %>人
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>正式学员：</td>
                                            <td>
                                                <%#Eval("StuCount") %>人
                                            </td>
                                        </tr>
                                    </table>


                                    <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td>
                                                <div class="lab_button" runat="server" id="divConflict">
                                                    <asp:HyperLink ID="hlkTimeConflict" runat="server" Target="_blank" NavigateUrl='<%# string.Format("TimeConflict.aspx?StudentID={0}&ClassID={1}&GetUrl={2}", swq.Tools.GetInt(Request.QueryString["StudentID"]), Eval("ClassID"),swq.Web.PathAndQuery()) %>'>检测排课冲突</asp:HyperLink>
                                                </div>
                                            </td>
                                            <td>
                                                <div class="lab_button" runat="server" id="divAdd">
                                                    <asp:HyperLink ID="hlkAdd" Width="100%" runat="server" Text="购买" NavigateUrl='<%# string.Format("BuyClass.aspx?ClassID={4}&StudentID={0}&ProductID={1}&BillItemID={2}&GetUrl={3}",Request.QueryString["StudentID"],Request.QueryString["ProductID"],Request.QueryString["BillItemID"],swq.Web.PathAndQuery(),Eval("ClassID")) %>' />
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>

                        <div class="pager_button">
                            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                        </div>
                    </div>



                </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">
                </div>
            </div>
        </div>
    </form>
</body>
</html>
