<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Member_MemberList, ECMe_Deploy" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!-- Put IE into quirks mode -->
<!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/Admin/CSS/ECMe.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/body156.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/volti.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../JS/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jquery.js"></script>
    <script type="text/javascript" src="../JS/Common.js"></script>
    <script type="text/javascript" src="../JS/ThickBox/thickbox.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="header">
        <div class="header_top">
            <h2>
                会员管理 &gt; <span class="blue">网店会员列表</span>
            </h2>
        </div>
        <div class="top_body">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <th style="width:470px">
                        常用操作
                    </th>
                    <th style="width:238px">
                        搜索会员（会员级别，会员名）
                    </th>
                    <th>
                        添加会员
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="BDelete" runat="server" Text="删除所选" OnClick="BDelete_Click"
                            OnClientClick="return confirm('你真的要删除?');"  CssClass="but_2"/>
                        <asp:Button ID="BSendMail" runat="server" Text="发送邮件" OnClick="BSendMail_Click"  CssClass="but_2"/>
                        <asp:Button ID="BSendMessage" runat="server" Text="发送站内消息" 
                            OnClick="BSendMessage_Click"  CssClass="but_3"/>
                        <asp:Button ID="BActivation" runat="server" Text="冻结或解冻" OnClick="BActivation_Click" CssClass="but_3"/>
                        <asp:Button ID="BPrint" runat="server" Text="打印表格"  OnClick="BPrint_Click"  CssClass="but_2"/>
                    </td>
                    <td>
                        <asp:DropDownList ID="DMemberLevelID" Width="70px" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="TMemberName" runat="server" Width="100px"></asp:TextBox>
                        <asp:Button ID="BSearch" runat="server" Text="搜索" OnClick="BSearch_Click"  CssClass="but_1"/>
                        <asp:HiddenField ID="HOrderBy" runat="server" />
                        <asp:HiddenField ID="HSort" Value="false" runat="server" />
                    </td>
                    <td>
                        <a href="AddMember.aspx" class="top_but_Add"><img src="../CSS/Admin/images/Add.png" alt="添加会员" /> 添加会员</a>&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <div class="tab_top">
            <table class="thead">
                <tbody>
                    <tr>
                        <th style="width: 30px">
                            <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                        </th>
                        <th style="width: 120px">
                            会员名称
                        </th>
                       
                        <th style="width: 80px">
                            会员级别
                        </th>
                        <th style="width: 120px">
                            电子邮件
                        </th>
                        <th style="width: 120px">
                            <asp:LinkButton ID="LOrderJoinDate" CssClass="blue" runat="server" OnClick="LOrderJoinDate_Click">注册日期</asp:LinkButton>
                        </th>
                        <th style="width: 60px">
                            <asp:LinkButton ID="LOrderPoint" CssClass="blue" runat="server" OnClick="LOrderPoint_Click">用户积分</asp:LinkButton>
                        </th>
                        <th style="width: 90px">
                            <asp:LinkButton ID="LOrderAmount" CssClass="blue" runat="server" OnClick="LOrderAmount_Click">用户余额</asp:LinkButton>
                        </th>
                        <th style="width: 40px">
                            冻结
                        </th>
						 <th style="width: 50px">
                            查看
                        </th>
                        <th>
                            编辑
                        </th>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="container">
        <div class="tab_body">
            <table class="tbody">
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td style="width: 30px">
                                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%#Eval("ID")%>' BorderStyle="None"
                                        BorderWidth="0px" />
                                </td>
                                <td style="width: 120px">
                                    <img src="../CSS/Admin/images/member.png" alt="会员" /> <a href="MemberInfo.aspx?id=<%#Eval("ID")%>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=450&width=780"
                                        class="thickbox" title="查看会员详细信息">
                                        <%#Eval("LoginName")%></a>
                                </td>
                              
                                <td style="width: 80px">
                                    <%#Common.GetMemberLevelName(int.Parse(Eval("LevelID").ToString()))%>
                                </td>
                                <td style="width: 120px">
                                    <%#Eval("Email")%>
                                </td>
                                <td style="width: 120px">
                                    <%#Eval("JoinDate")%>
                                </td>
                                <td style="width: 60px" class="ys_crude">
                                    <%#Eval("Point")%>
                                </td>
                                <td style="width:90px" class="ys_red">
                                    ￥：<%#Eval("Amount")%>
                                </td>
                                <td style="width: 40px">
                                    <%# Utils.GetBoolWord(bool.Parse(Eval("IsActivation").ToString()))%>
                                </td>
								  <td style="width: 50px">
                                    <img src="../CSS/Admin/images/View.png" alt="查看" /> <a href="MemberInfo.aspx?id=<%#Eval("ID")%>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=450&width=780"
                                        class="thickbox" title="查看会员详细信息">查看</a>
                                </td>
                                <td>
                                  <img src="../CSS/Admin/images/Edit.png" alt="编辑" />
                                    <a href="AddMember.aspx?id=<%#Eval("ID")%>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=450&width=780" class="thickbox" title="编辑">编辑</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
    </div>
    <div class="footer">
        <div class="txte">
          
        </div>
        <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" AlwaysShow="True"
            OnPageChanged="AspNetPagerItem_PageChanged" PageSize="50">
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
