<%@ page language="C#" autoeventwireup="true" inherits="Admin_GoodsManagement_GoodsTagList, 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>
                    <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="90px" />
                    <h4>
                        <img src="../css/images/help.png" width="10" height="10" alt="帮助" />
                        快读添加标签：</h4>
                    <asp:TextBox ID="TextBoxTagName" runat="server" Width="150px" Height="20px" CssClass="input"></asp:TextBox>
                    <asp:Button ID="ButtonAddTag" runat="server" Text="添加标签" CssClass="butt_tle" Height="22px"
                        Width="70px" OnClick="ButtonAddTag_Click" />
                </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: 80px">
                            标签名称</th>
                        <th style="width: 80px">
                            前台显示</th>
                        <th style="width: 80px">
                            商品数量</th>
                        <th>
                            添加日期</th>
                    </tr>
                </thead>
                <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>
                                <a href="../../GoodsList.aspx?tag=<%# Eval("Tag")%>" class="grey" target="_blank">
                                    <%# Eval("Tag")%>
                                </a>
                            </td>
                            <td>
                                <asp:ImageButton ID="ImageButtonIsShow" CommandArgument='<%# Eval("ID")%>' ImageUrl='<%# GetIsShowImg(int.Parse(Eval("ID").ToString()))%>'
                                    runat="server" />
                            </td>
                            <td>
                                <%# TagGoodsCount(Eval("Tag").ToString())%>
                            </td>
                            <td>
                                <%# Eval("AddDate")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </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="0"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" PageSize="15"
                        OnPageChanged="AspNetPagerItem_PageChanged" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
