<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Index.master" AutoEventWireup="true" CodeFile="MemberIndex.aspx.cs" Inherits="BackCenter_Member_MemberIndex" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="head" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

</asp:Content>

<asp:Content ID="main" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <cite class="fr menu01"><a href="/BackCenter/Member/MemberEdit.aspx">新增会员</a></cite>
        <p class="home">
            位置：后台中心 >> 会员管理
        </p>
    </div>
    <div class="bd">
        <div class="search">
            <h2 class="search_tit">
                <span>查询</span></h2>
            <div class="search_list">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_style2">
                    <tr>
                        <td class="n1">
                            账号：
                        </td>
                        <td class="n2">
                            <asp:TextBox ID="txt_Account" runat="server"></asp:TextBox>
                        </td>
                        
                        <td class="n1">
                        </td>
                        <td class="n2">
                        </td>
                    </tr>
                </table>
                <div class="s_menu">
                <asp:Button ID="btnSearch" CssClass="menu_b" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>     
                 </div>
            </div>
        </div>

        <div class="tit_xs">
            <h2>
                会员列表</h2>
        </div>
        
        <asp:GridView ID="GridView1" GridLines="None" runat="server" Width="100%" DataKeyNames="Id" AutoGenerateColumns="False" CssClass="tab_style" >
        <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="40px">
                    <HeaderStyle Width="40px"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Account" HeaderText="账号" SortExpression="Account" ItemStyle-HorizontalAlign="Center"  > 
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name" ItemStyle-HorizontalAlign="Center"  >  
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Sex" HeaderText="性别" SortExpression="Sex" ItemStyle-HorizontalAlign="Center"  > 
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Identity" HeaderText="身份" />
                <asp:BoundField DataField="Grade" HeaderText="年级" />
                <asp:BoundField DataField="Number" HeaderText="学号" />
                <asp:BoundField DataField="Teacher" HeaderText="指导老师" />
                <asp:TemplateField HeaderText="操作" HeaderStyle-Width="250px">
                    <ItemTemplate>
                    <asp:LinkButton ID="btnReAudit" CommandArgument='<%# Eval("Id") %>' runat="server" OnCommand="btnReAudit_Command">[<%# Convert.ToBoolean(Eval("Status")) == true ? "已审核" : "<font color='red'>未审核</font>"%>]</asp:LinkButton>
                    <asp:LinkButton ID="btnReSet" CommandArgument='<%# Eval("Id") %>' runat="server" OnCommand="btnReSet_Command">[重置密码]</asp:LinkButton>
                    <asp:LinkButton ID="btnUpdate" CommandArgument='<%# Eval("Id") %>'  runat="server" OnCommand="btnUpdate_Command">[修改]</asp:LinkButton>
                    <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("Id") %>'  runat="server" OnCommand="btnDelete_Command" OnClientClick="JavaScript:return confirm('确定要删除该记录吗？')">[删除]</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
        </asp:GridView>
                
        <div class="sabrosus">
        <webdiyer:AspNetPager ID="AspNetPager1" PageSize="10" HorizontalAlign="Center" Font-Bold="true"
                    CssClass="" runat="server" Width="100%" CenterCurrentPageButton="True"
                    OnPageChanging="AspNetPager1_PageChanging" ShowPageIndexBox="Never" FirstPageText="首页"
                    PrevPageText="上一页" NextPageText="下一页" LastPageText="尾页" PageIndexBoxType="TextBox"
                    CurrentPageButtonTextFormatString="{0:[0]}" AlwaysShow="false" ShowNavigationToolTip="True"
                    CustomInfoHTML="记录总数：%RecordCount%" ShowCustomInfoSection="Left">
        </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>

