<%@ Page Language="C#" AutoEventWireup="true" Inherits="TopWinCMS.WebUI.Admin.Member_Manage" CodeBehind="Member.aspx.cs" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!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>
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="NavigationPath">
        <tr>
            <td style="width: auto">
                <img src='../../Images/arrow.gif' alt="" />
                您现在的位置：&nbsp;
                <asp:Literal ID="L_Path" runat="server"></asp:Literal>
            </td>
            <td style="width: auto">
            </td>
        </tr>
    </table>
    <div class="WorkArea">
        <table border="0" cellpadding="0" cellspacing="0" width="98%" id="Table1">
            <tr>
                <td style="width: auto">
                    快速查找会员：
                </td>
                <td style="width: auto">
                    <asp:DropDownList ID="DDL_Sort" runat="server">
                        <asp:ListItem Value="Name">用户名</asp:ListItem>
                        <asp:ListItem Value="PetName">昵称</asp:ListItem>
                        <asp:ListItem Value="QQ">QQ</asp:ListItem>
                        <asp:ListItem Value="eMail">电邮</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>&nbsp;
                    <asp:Button ID="BT_Search" runat="server" Text="搜索" Style="cursor: hand" OnClick="BT_Search_Click"
                        EnableViewState="False" CssClass="btn"></asp:Button>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID">
        <HeaderStyle CssClass="HeaderStyle" Font-Bold="True"></HeaderStyle>
        <Columns>
            <asp:TemplateField  >
            <HeaderTemplate><input type="checkbox" name="chk_SelectAll" value="chk_SelectAll" onclick="javascript:SelectAll(this);" /></HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CB_SelectID" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="30px" HorizontalAlign="Center" />
            </asp:TemplateField>
    
            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Member_Edit.aspx?ID={0}"
                HeaderText="用户名" DataTextField="Name">
                
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="PetName" HeaderText="昵称">
                
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="RoleName" HeaderText="角色">
            <ItemStyle Width="80px" />
              <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            
              <asp:BoundField DataField="Coin" HeaderText="金币">
            <ItemStyle Width="80px" />
              <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
            
             <asp:BoundField DataField="Point" HeaderText="点数">
            <ItemStyle Width="80px" />
              <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
            
            <asp:TemplateField HeaderText="激活论坛" Visible="False">
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <%# Convert.ToBoolean(Eval("ActiveBBS"))==true?"激活":"未激活" %></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="账号状态">
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <%# IDState(Eval("IsLocked"))%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="LastLoginIP" HeaderText="最后登录IP">
                <HeaderStyle Width="100px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="LastLoginTime" DataFormatString="{0:yy-MM-dd HH:mm:ss}"
                HeaderText="最后登录" HtmlEncode="False">
                <HeaderStyle Width="100px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
           
        </Columns>
    </asp:GridView>
    <div class="WorkArea">
        <table>
            <tr>
 
                <td>
                  
                    <asp:DropDownList ID="DDL_BatchToDo" runat="server">
                        <asp:ListItem Selected="True" Value="0">--请选择--</asp:ListItem>
                        <asp:ListItem>批量删除</asp:ListItem>
                        <asp:ListItem>封号</asp:ListItem>
                        <asp:ListItem>激活</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="BT_OK" runat="server" Text="确定" OnClick="BT_OK_Click" EnableViewState="False"
                        CssClass="btn" />
                    &nbsp;
                    <cc1:NumericTextBox ID="NTB_Days" runat="server" Width="33px">90</cc1:NumericTextBox>天没有登录用户
                    <asp:Button ID="BT_GuoQi" runat="server" OnClick="BT_GuoQi_Click" Text="查找" EnableViewState="False"
                        CssClass="btn" />&nbsp; <a href="Member.aspx?Action=Search&Sort=IsLocked&Keyword=2">
                            <font color="blue"><span>等待验证的会员</span></font></a>
                </td>
            </tr>
        </table>
    </div>
    <div class="pagefield">
        <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
            PageSize="15" UrlPaging="True" CustomInfoSectionWidth="250px">
        </cc1:PageNavigation>
    </div>
    </form>
</body>
</html>
