<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManagement_UserCardList, 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 type="text/javascript" src="../css/admin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td style="width: 190px">
                    <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" OnClientClick="return confirm('你真的要删除所选项？')" />
                                    <asp:Button ID="CardToCSV" runat="server" Text="导出CSV" OnClientClick="return confirm('确定导出卡到CSV？')"
                                        CssClass="butt_tle" Height="22px" Width="70px" OnClick="CardToCSV_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 220px">
                    <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="ButtonSendCard" runat="server" Text="发放选中卡" CssClass="butt_tle" Height="22px"
                                        Width="100px" OnClick="ButtonSendCard_Click" />
                                    <asp:Button ID="ButtonSendCardALl" runat="server" Text="发放所有卡" CssClass="butt_tle"
                                        Height="22px" Width="100px" OnClick="ButtonSendCardALl_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: 100px">
                                激活码</th>
                            <th style="width: 80px">
                                升级会员组</th>
                            <th style="width: 100px">
                                赠送金额</th>
                            <th style="width: 60px">
                                赠送积分</th>
                            <th style="width: 40px">
                                激活</th>
                            <th style="width: 40px">
                                发放</th>
                            <th>
                                有效日期</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="RepeaterTable" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%# Eval("ID") %>' BorderStyle="None"
                                            BorderWidth="0px" /></td>
                                    <td>
                                        <%# Eval("CardNumber")%>
                                    </td>
                                    <td style="color: Red">
                                        <%# Eval("Activation")%>
                                    </td>
                                    <td>
                                        <%# Common.GetGroupName(int.Parse(Eval("GiftUserGroup").ToString()))%>
                                    </td>
                                    <td>
                                        <%# Common.GetF2Str(Eval("GiftAmount").ToString())%>
                                    </td>
                                    <td>
                                        <%# Eval("GiftPoint")%>
                                    </td>
                                    <td style="color: Green">
                                        <%# Common.GetBoolStr(Eval("IsActivation").ToString())%>
                                    </td>
                                    <td style="color: Green">
                                        <%# Common.GetBoolStr(Eval("IsSend").ToString())%>
                                    </td>
                                    <td>
                                        <%# Common.PortfolioDate(DateTime.Parse(Eval("StartDate").ToString()),DateTime.Parse(Eval("EffectiveDate").ToString()))%>
                                    </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" PageSize="50">
                    </webdiyer:AspNetPager>
                </div>
            </div>
            <!--分隔符-->
        </div>
    </form>
</body>
</html>
