<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Class.aspx.cs" Inherits="Aspx1.Admin.Class" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
        <HeaderTemplate>
            <table class="tableBorder" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <th colspan="6" class="ym12_bti">
                        商品类别管理
                    </th>
                </tr>
                <tr style="text-align: center;">
                    <td width="30px" class="td2">
                        ID
                    </td>
                    <td width="50px" class="td2">
                        类别名称
                    </td>
                    <td width="100px" class="td2">
                        描述
                    </td>
                    <td width="60px" class="td2">
                        是否显示
                    </td>
                    <td width="60px" class="td2">
                        排序
                    </td>
                    <td class="td2" style="text-align: left">
                        相关操作
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E9E9F4'" onmouseout="javascript:this.bgColor='#FFFFFF'">
                <td>
                    <asp:Label ID="lblCategoryID" runat="server" Text='<%#Eval("Categoryid") %>'></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtCategoryName" runat="server"  size="12" Text='<%#Eval("Categoryname") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="txtDescription"  size="40" runat="server" Text='<%#Eval("description") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:CheckBox ID="cbIsVisible" runat="server" Checked='<%#Eval("isvisible") %>' Text="显示" />
                </td>
                <td>
                    <asp:TextBox ID="txtOrderID" runat="server" size="5" Text='<%#Eval("orderid") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Text="更 新" CssClass="button2" CommandArgument='0' />
                    <asp:Button ID="btnDel" runat="server" Text="删 除" CssClass="button2" CommandArgument='1'
                        OnClientClick="confirm('删除该分类后，不可恢复，您是否确认？')" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr style=" background-color:#FFFFFF;">
                <td>
                    <span class="addnew">添加</span>
                </td>
                <td>
                    <asp:TextBox ID="txtCategoryName" runat="server" Text="名称" size="12" onfocus="if(this.value=='名称')this.value='';" Style="color: #999"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="txtDescription" runat="server" Text="描述" size="40" onfocus="if(this.value=='描述')this.value='';" Style="color: #999"></asp:TextBox>
                </td>
                <td>
                    <asp:CheckBox ID="cbIsVisible" runat="server" Checked="true" Text="显示" />
                </td>
                <td>
                    <asp:TextBox ID="txtOrderID" runat="server" Text='0' size="5" Style="color: #999"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnAdd" runat="server" Text="添 加" CssClass="button2" CommandArgument="2"/>
                </td>
            </tr>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
