<%@ page language="C#" autoeventwireup="true" inherits="Admin_Sorts_Small_Sorts, Huibo.Net" validaterequest="false" enableviewstatemac="false" enableEventValidation="false" %>

<!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 id="Head1" runat="server">
    <title>查看修改商品</title>
    <link href="../style/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p>
                            商品小分类</p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td bgcolor="#FFFFFF" align="center">
                                <div class="DLBoder">
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                        <tr>
                                            <td class="DLBodertd" valign="top" style="width: 20%">
                                                <br />
                                                <asp:DropDownList ID="Category" AutoPostBack="True" runat="server" Width="150px"
                                                    OnSelectedIndexChanged="Category_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                <br />
                                            </td>
                                            <td class="DLBodertd" valign="top" style="width: 80%; height: 100%">
                                                <asp:DataList ID="SmallSort" runat="server" Width="100%" Height="100%" OnDeleteCommand="SmallSort_DeleteCommand"
                                                    OnUpdateCommand="SmallSort_UpdateCommand">
                                                    <HeaderTemplate>
                                                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                            <tr style="height: 25px;">
                                                                <td class="DLBodertd" style="width: 40%;">
                                                                    分类名称
                                                                </td>
                                                                <td class="DLBodertd" style="width: 10%;">
                                                                    分类排序
                                                                </td>
                                                                <td class="DLBodertd" style="width: 10%;">
                                                                    一级分类
                                                                </td>
                                                                <td class="DLBodertd" style="width: 15%;">
                                                                    操作
                                                                </td>
                                                            </tr>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td class="DLBodertd">
                                                                <asp:TextBox ID="sort" Text='<%# DataBinder.Eval(Container, "DataItem.sort")%>' runat="server"></asp:TextBox>
                                                            </td>
                                                            <td class="DLBodertd">
                                                                <asp:TextBox ID="sortsorder" Width="50px" Text='<%# DataBinder.Eval(Container, "DataItem.sortsorder")%>'
                                                                    runat="server"></asp:TextBox>
                                                            </td>
                                                            <td class="DLBodertd">
                                                                <asp:CheckBox ID="First" Text="二级" runat="server" />
                                                            </td>
                                                            <td class="DLBodertd">
                                                                <asp:Button ID="Update" runat="server" CommandName="update" Text="更新" Height="20px"
                                                                    Width="50px" /><asp:Button ID="Delete" CommandName="Delete" runat="server" Height="20px"
                                                                        Width="50px" Text="删除" />
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </table>
                                                    </FooterTemplate>
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="height: 30px;">
                                </div>
                                <div class="DLBoder">
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                        <tr style="height: 25px;">
                                            <td class="DLBodertd" colspan="2">
                                                分类名称
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="DLBodertd" style="width: 20%">
                                                &nbsp;<asp:Label ID="Label1" runat="server" Text="当前分类："></asp:Label>
                                                <asp:Label ID="Cate" runat="server" Text=""></asp:Label>
                                                <asp:HiddenField ID="categoryid" runat="server" />
                                            </td>
                                            <td class="DLBodertd" style="width: 80%">
                                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                                    <tr>
                                                        <td class="DLBodertd" style="width: 40%;">
                                                            <asp:TextBox ID="sort" Text="" runat="server"></asp:TextBox>
                                                        </td>
                                                        <td class="DLBodertd" style="width: 10%;">
                                                            <asp:TextBox ID="sortsorder" Width="50px" Text="0" runat="server"></asp:TextBox>
                                                        </td>
                                                        <td class="DLBodertd" style="width: 10%;">
                                                            <asp:CheckBox ID="First" Text="二级" runat="server" />
                                                        </td>
                                                        <td class="DLBodertd" style="width: 15%;">
                                                            <asp:Button ID="Update" runat="server" CommandName="update" Text="添加" Height="20px"
                                                                Width="70px" OnClick="Update_Click" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="height: 30px;">
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
