<%@ page language="C#" autoeventwireup="true" inherits="Admin_SalesPromotion_ManageCoupon, 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">
    <div class="k_all3">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td>
                    <h4>
                        <img src="../css/images/help.png" width="10" height="10" alt="帮助" />
                        帮助：选中你要删出的优惠券，请点击</h4>
                    <asp:Button ID="DeleteSelect" runat="server" Text="删除所选优惠券" OnClick="DeleteSelect_Click"
                        CssClass="butt_tle" Height="22px" Width="100px" />
                    <h4>
                        <img src="../css/images/help.png" width="10" height="10" alt="帮助" />
                        帮助：如果你需要添加新的优惠券，请点击</h4>
                    <a href="AddCoupon.aspx" class="blue_ys">
                        <img src="../Themes/Default/Images/add.png" alt="ico" />
                        添加优惠券</a>
                </td>
            </tr>
        </table>
        <div id="all">
            <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: 130px">
                            优惠券名称
                        </th>
                        <th style="width: 70px">
                            抵扣金额
                        </th>
                        <th style="width: 70px">
                            满足金额
                        </th>
                        <th style="width: 90px">
                            发放此优惠券
                        </th>
                        <th style="width: 70px">
                            生成表格
                        </th>
                        <th>
                            编辑优惠券
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterTable" runat="server" 
                        onitemcommand="RepeaterTable_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%# Eval("ID") %>' BorderStyle="None"
                                        BorderWidth="0px" />
                                </td>
                                <td>
                                    <%# Eval("CouponName")%>
                                </td>
                                <td class="ys_1">
                                    <%# Eval("MortagagePrice").ToString().Substring(0, Eval("MortagagePrice").ToString().Length - 2)%>
                                </td>
                                <td>
                                    <%# Eval("MeetPrice").ToString().Substring(0, Eval("MeetPrice").ToString().Length - 2)%>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/shop_xl3.png" alt="发放优惠券" />
                                    <%# IsPutout(int.Parse(Eval("id").ToString())) %>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/shop_xl3.png" alt="生成表格" />
                                    <asp:LinkButton ID="LBCreateXls" CommandArgument='<%# Eval("ID") %>' runat="server">生成表格</asp:LinkButton>
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/bj.png" alt="编辑" width="10" height="10" />
                                    <a href='AddCoupon.aspx?id=<%# Eval("ID") %>' class="grey">编辑</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="k_all3">
                <div id="bk_line">
                    <div class="txte">
                        <img src="../Themes/Default/Images/bj.png" />
                        <asp:Literal ID="CountItem" runat="server" Text="暂无记录"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" PageSize="15"
                        OnPageChanged="AspNetPagerItem_PageChanged" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
