<%@ page language="C#" autoeventwireup="true" inherits="Admin_GoodsManagement_ManageGoodsClass, ShopWe" %>

<!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="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />

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

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

    <script type="text/javascript" src="../Themes/Default/Plugin/ThickBox/thickbox.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="ImageClassOrder" runat="server" Text="更新排序" OnClick="ImageClassOrder_Click"
                        CssClass="butt_tle" Height="22px" Width="70px" />
                    <h4>
                        <img src="../css/images/help.png" width="10" height="10" alt="帮助" />
                        帮助：如果你需要添加新的分类，请点击</h4>
                    <a href="AddGoodsClass.aspx" class="blue_ys">
                        <img src="../Themes/Default/Images/add.png" alt="添加分类" />
                        添加分类</a>
                </td>
            </tr>
        </table>
        <div id="all">
            <div class="k_all3">
                <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                    <thead>
                        <tr>
                            <th style="width: 320px">
                                分类名称
                            </th>
                            <th style="width: 70px">
                                商品数量
                            </th>
                            <th style="width: 70px">
                                前台显示</th>
                            <th style="width: 100px">
                                分类热门商品
                            </th>

                            <th style="width: 70px">
                                编辑
                            </th>
                            <th>
                                删除
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="RepeaterTable" runat="server" OnItemCommand="RepeaterTable_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <span class="man_wd">排序：
                                            <asp:TextBox ID="ClassOrder" Width="20px" Text='<%# Eval("ClassOrder") %>' runat="server"></asp:TextBox><a
                                                href="../../GoodsList.aspx?id=<%# Eval("ClassGuid")%>" class="grey" target="_blank"><%# Eval("ClassName") %></a></span><span
                                                    class="man_wd2"><%# GetFilter(bool.Parse(Eval("IsChild").ToString()),new Guid(Eval("ClassGuid").ToString())) %></span>
                                    </td>
                                    <td>
                                        <%# GetCount(new Guid(Eval("ClassGuid").ToString()))%>
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="ImageButtonIsShow" CommandName="isshow" CommandArgument='<%# Eval("ClassGuid")%>'
                                            ImageUrl='<%# GetIsShowImg(new Guid(Eval("ClassGuid").ToString()))%>' runat="server" />
                                    </td>
                                    <td>
                                        <img src="../Themes/Default/Images/shop_xl7.png" alt="筛选项" />
                                        <a href='AddGoodsClassHot.aspx?&id=<%# Eval("ClassGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                            class="thickbox" title="分类热门商品">分类热门商品</a>
                                    </td>
                                  
                                    <td>
                                        <img src="../Themes/Default/Images/bj.png" alt="编辑" width="10" height="10" />
                                        <a href='AddGoodsClass.aspx?type=update&id=<%# Eval("ClassGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                            class="thickbox" title="编辑分类">编辑</a>
                                    </td>
                                    <td>
                                        <img src="../Themes/Default/Images/class.png" alt="删除" />
                                        <asp:LinkButton ID="delete" CommandName="delete" CommandArgument='<%# Eval("ClassGuid") %>'
                                            CssClass="grey" runat="server" CausesValidation="false">删除</asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
