<%@ page language="C#" autoeventwireup="true" inherits="Admin_SalesPromotion_SendCoupon, 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" />

    <script src="../css/admin.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td style="width: 420px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td colspan="2" align="center" style="height: 22px">
                                    给指定的会员发放优惠券</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <h4>
                                        发送消息：</h4>
                                    <asp:DropDownList ID="UserGroupList" runat="server" Width="150px" Height="22px" CssClass="input_tle">
                                    </asp:DropDownList></td>
                                <td align="center">
                                    <asp:Button ID="SendButton" runat="server" Text="发放给指定级别的用户" OnClick="SendButton_Click"
                                        Height="22px" Width="140px" CssClass="butt_tle" /></td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 265px">
                    <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" Style="width: 170px; height: 15px" value="请输入会员名"
                                        Class="input_tle"></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>
                    &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: 80px">
                                会员名
                            </th>
                            <th style="width: 150px">
                                注册日期
                            </th>
                            <th style="width: 70px">
                                详细信息
                            </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>
                                        <%# Eval("UserName") %>
                                    </td>
                                    <td>
                                        <%# Eval("JoinDate") %>
                                    </td>
                                    <td>
                                        <img src="../css/images/fuwei.png" alt="查看" />
                                        <a href='../UserManagement/UserInfo.aspx?id=<%# Eval("UserGuid") %>' class="grey">详细</a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
            <div class="k_all3">
                <div id="bk_line">
                    <div class="txte">
                        <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>
        <div class="sub">
            <asp:Button ID="Submit" runat="server" Text="发送给选定会员" OnClick="Submit_Click" CssClass="but_add" />
        </div>
    </form>
</body>
</html>
