<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManagement_ManageUser, ShopWe" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../css/jquery.js"></script>
    <script type="text/javascript" src="../css/admin.js"></script>
    <script type="text/javascript" src="../Themes/Default/Plugin/ThickBox/thickbox.js"></script>
    <script type="text/javascript">

        function setTab(name, cursel, n) {
            for (i = 1; i <= n; i++) {
                var menu = document.getElementById(name + i);
                var con = document.getElementById("con_" + name + "_" + i);
                menu.className = i == cursel ? "hover" : "";
                con.style.display = i == cursel ? "block" : "none";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
        <tr>
            <td style="width: 400px">
                <div class="name_noe">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center" style="height: 22px">
                                默认操作
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="DeleteSelect" runat="server" Text="删除所选会员" OnClick="DeleteSelect_Click"
                                    CssClass="butt_tle" Height="22px" Width="90px" />
                                <asp:Button ID="SendEmail" runat="server" Text="发送邮件给选定会员" OnClick="SendEmail_Click"
                                    CssClass="butt_tle" Height="22px" Width="140px" />
                                <input type="button" value="提现申请" onclick="window.location.href='ApplyCashList.aspx'"
                                    class="butt_tle" style="height: 22px; width: 65px" />
                                <a href="AddUser.aspx" class="blue_ys">
                                    <img src="../Themes/Default/Images/add.png" />
                                    添加会员</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td style="width: 215px">
                <div class="name_noe">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center" style="height: 22px">
                                搜索会员
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:TextBox ID="TextBoxName" runat="server" CssClass="input_tle" Width="120px" Height="15px"
                                    value="请输入会员名"></asp:TextBox>
                                <asp:Button ID="Search" runat="server" Text="搜索会员" OnClick="Search_Click" class="butt_tle"
                                    Height="22px" Width="70px" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td style="width: 60px">
                <div class="name_noe">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center" style="height: 22px">
                                打印表格
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="BCreateXls" runat="server" Text="打印表格" class="butt_tle"
                                    Height="22px" Width="70px" onclick="BCreateXls_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <div id="all">
        <div class="k_all3">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <thead>
                    <tr>
                        <th style="width: 30px">
                            <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                        </th>
                        <th style="width: 100px">
                            会员名
                        </th>
                        <th style="width: 80px">
                            会员级别
                        </th>
                        <th style="width: 120px">
                            注册日期
                        </th>
                        <th style="width: 70px">
                            详细
                        </th>
                        <th>
                            编辑
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%# Eval("UserGuid") %>'
                                        BorderStyle="None" BorderWidth="0px" />
                                </td>
                                <td>
                                    <a href='UserInfo.aspx?id=<%# Eval("UserGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                        class="thickbox" title="查看会员详细信息">
                                        <%# Eval("UserName") %>
                                    </a>
                                </td>
                                <td>
                                    <%# GetGroupName(new Guid(Eval("UserGuid").ToString()))%>
                                </td>
                                <td>
                                    <%# Eval("JoinDate") %>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/fuwei.png" alt="查看" width="10" height="10" />
                                    <a href='UserInfo.aspx?id=<%# Eval("UserGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                        class="thickbox" title="查看会员详细信息">详细</a>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/bj.png" alt="编辑" />
                                    <a href='AddUser.aspx?id=<%# Eval("UserGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=800'
                                        class="thickbox" title="编辑会员信息">编辑</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="k_all3">
            <div id="bk_line">
                <div class="txte">
                    <img src="../Themes/Default/Images/bj.png" />
                    <asp:Literal ID="CountItem" runat="server"></asp:Literal>
                </div>
                <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" AlwaysShow="True" CssClass="yahoo2"
                    OnPageChanged="AspNetPagerItem_PageChanged">
                </webdiyer:AspNetPager>
            </div>
        </div>
        <!--分隔符-->
    </div>
    </form>
</body>
</html>
