<%@ Page Language="c#" CodeBehind="StuClass.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Mobile.Student.StuClass"
    Title="学员选班列表" %>

<%@ Import Namespace="SWTraining" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!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 href="Themes/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <uc1:Header ID="Header1" runat="server" />
    <div class="divpanel">
        <div class="padding_top">
            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                DataKeyNames="StuClassID">
                <SelectedRowStyle CssClass="selected" />
                <Columns>
                    <asp:TemplateField HeaderText="班级名称">
                        <ItemTemplate>
                            <%#Eval("ClassName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="选班状态">
                        <ItemTemplate>
                            <%#Rs.Items.GetScState(Eval("ScStateID"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评价老师">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlkShow" runat="server" Text="评价" NavigateUrl='<%# string.Format("PostTeacher.aspx?StuClassID={0}",Eval("StuClassID")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="详情">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlkShow" runat="server" Text="详情" NavigateUrl='<%# string.Format("StuClassShow.aspx?StuClassID={0}",Eval("StuClassID")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    <div class="backpanel">
        <label class="lab_buttom">
            <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
        </label>
    </div>
    </form>
</body>
</html>
