<%@ page language="C#" autoeventwireup="true" inherits="Admin_GoodsManagement_ManageBrand, 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" />
    <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="ImageBrandOrder" runat="server" Text="更新排序" OnClick="ImageBrandOrder_Click"
                        CssClass="butt_tle" Height="22px" Width="70px" />
                    <asp:Button ID="DeleteSelectBrand" runat="server" Text="删除所选品牌" OnClick="DeleteSelectBrand_Click"
                        CssClass="butt_tle" Height="22px" Width="90px" />
                    <h4>
                        <img src="../css/images/help.png" width="10" height="10" alt="帮助" />
                        帮助：如果你需要添加新的商品品牌，请点击</h4>
                    <a href="AddGoodsBrand.aspx" class="blue_ys">
                        <img src="../Themes/Default/Images/add.png" />
                        添加品牌</a>
                </td>
            </tr>
        </table>
        <div id="all">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <thead>
                    <tr>
                        <th style="width: 40px">
                            <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                        </th>
                        <th style="width: 160px">
                            品牌名称[
                            <asp:LinkButton ID="CreateSort" CssClass="blue" runat="server" OnClick="CreateSort_Click"
                                OnClientClick="return confirm('会重新生成所有商品的排序，是否确定？');">排序</asp:LinkButton>
                            ]
                        </th>
                        <th style="width: 120px">
                            品牌图片
                        </th>
                        <th style="width: 60px">
                            品牌网址
                        </th>
                        <th style="width: 60px">
                            前台显示</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("BrandGuid") %>'
                                        BorderStyle="None" BorderWidth="0px" />
                                </td>
                                <td>
                                    排序：<asp:TextBox ID="BrandOrder" Width="20px" Text='<%# Eval("BrandOrder") %>' runat="server"></asp:TextBox>
                                    <a href="../../GoodsList.aspx?Brand=<%# Eval("BrandGuid") %>" class="grey" target="_blank">
                                        <%# Eval("BrandName") %>
                                    </a>
                                </td>
                                <td>
                                    <asp:Image ID="BrandLogo" ImageUrl='<%# ImagePath.GetBrandLogoDirectory+ Eval("BrandLogo") %>'
                                        runat="server" Style="width: 110px; height: 35px"  CssClass="img_sx"/>
                                </td>
                                <td>
                                    <a href='../../GoodsList.aspx?brand=<%# Eval("BrandGuid") %>' class="blue" target="_blank">[查看]</a>
                                </td>
                                <td>
                                    <asp:ImageButton ID="ImageButtonIsShow" CommandArgument='<%# Eval("BrandGuid")%>'
                                        ImageUrl='<%# GetIsShowImg(new Guid(Eval("BrandGuid").ToString()))%>' runat="server" />
                                </td>
                                <td>
                                    <img src="../Themes/Default/Images/bj.png" alt="编辑品牌" />
                                    <a href='AddGoodsBrand.aspx?type=update&id=<%# Eval("BrandGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                        class="thickbox" title="编辑品牌">编辑品牌</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="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>
