<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Promotions_AllGiftCardList, 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 id="Head1" 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" />
    <script type="text/javascript" src="../JS/Common.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: 170px;">
                        常用操作
                    </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="BPrint" runat="server" Text="打印表格" OnClick="BPrint_Click"  CssClass="but_2"/>
                    </td>
                    <td>
                        <asp:Button ID="BSendSelect" runat="server" Text="发放所选卡" OnClientClick="return confirm('确定发放所选卡?');"
                            OnClick="BSendSelect_Click"  CssClass="but_3"/>
                        <asp:Button ID="BSendAll" runat="server" Text="发放全部卡" OnClientClick="return confirm('确定发放全部卡?');"
                            OnClick="BSendAll_Click"  CssClass="but_3"/>&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: 100px">
                            卡号码
                        </th>
                        <th style="width: 100px">
                            激活码
                        </th>
                        <th style="width: 80px">
                            是否发放
                        </th>
                        <th style="width: 80px">
                            是否激活
                        </th>
                        <th style="width: 110px">
                            发放日期
                        </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/Gift.png" alt="礼品卡" /> <%#Eval("CardName")%>
                                </td>
                                <td style="width: 100px" class="ys_red">
                                    <%#Eval("CardNumber")%>
                                </td>
                                <td style="width: 100px">
                                    <%#Eval("Activation")%>
                                </td>
                                <td style="width: 80px">
                                    <%#Utils.GetBoolWord(bool.Parse(Eval("IsSend").ToString()))%>
                                </td>
                                <td style="width: 80px">
                                    <%#Utils.GetBoolWord(bool.Parse(Eval("IsActivation").ToString()))%>
                                </td>
                                <td style="width: 110px">
                                    <%#Eval("SendDate")%>
                                </td>
                                <td>
                                    <%#Eval("ActivationDate")%>
                                </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>
