<%@ page language="C#" validaterequest="false" masterpagefile="MyShop.master" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Manage_shop_product_category, WebApp_deploy" title="商品分类" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle">店铺商品分类管理</div>    
<div class="tips_onclick"  style="width:94%">给商品分类，方便买家浏览。
<asp:LinkButton ID="LinkProductunClassed" runat="server" OnClick="LinkProductunClassed_Click" CausesValidation="False" Text="商品未分类"  ForeColor="red"/>
</div>
<div class="tableHead">
    
    <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
        <table width="100%">
            <tr>
               <td style=" width:10%">编号</td>
               <td style=" width:50%">分类名称</td>
               <td style=" width:10%">排序号码</td>
               <td style=" width:10%">编辑</td>
               <td style=" width:10%">删除</td>
               <td style=" width:10%">查看商品</td>
            </tr>
        </table>
    </HeaderTemplate>
       <ItemTemplate>

              <table width="100%">
                  <tr>
                    <td style=" width:10%">
                        <asp:Label ID="ClassID" runat="server" Text='<%#Eval("ShopProductClassID") %>'></asp:Label></td>
                    <td style=" width:50%">
                        <asp:Label ID="ClassName" runat="server" Text='<%#Eval("ShopProductClassName") %>'></asp:Label></td>
                    <td style=" width:10%">
                        <asp:Label ID="LborderID" runat="server" Text='<%#Eval("orderby") %>'></asp:Label></td>
                    <td style=" width:10%">
                        <asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="false" OnClick="lbtEdit_Click">编辑</asp:LinkButton></td>
                    <td style=" width:10%">
                        <asp:LinkButton ID="lbtDel" runat="server" CausesValidation="false" OnClick="lbtDel_Click">删除</asp:LinkButton></td>
                    <td style=" width:10%">
                       <a href="Shop_ViewProductByShopProductClassID.aspx?ShopProductClassID=<%#Eval("ShopProductClassID") %>">查看列表</a> </td>
                  </tr>
              </table>

       </ItemTemplate>
    </asp:Repeater>

</div> 
<div class="SearchTableStyle">


<span>
    新分类名称：<asp:TextBox ID="TxtClassName" runat="server" MaxLength="100"  Width="300px"/><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtClassName"  ErrorMessage="不能空" />
    排序<asp:TextBox ID="TxtOrderBy" runat="server" Width="40px"/><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtOrderBy"   ErrorMessage="不能空" />
    <asp:Button ID="AddCategoryButton" runat="server" Text="添加" OnClick="Button2_Click" /></span><asp:Label
        ID="LbError" runat="server" ForeColor="Red"></asp:Label><asp:HiddenField ID="HiddenID"
            runat="server" />
            <asp:HiddenField ID="HiddenorderID" runat="server" />
            <br />
    (注:分类名称限定50字以内,支持HTML代码)

</div>      

<div style="clear:both">

        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtOrderBy" ErrorMessage="必须为正整数" MaximumValue="9999" MinimumValue="1" Type="Integer"/>
</div>

</asp:Content>

