<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductClass.aspx.cs" Inherits="Admin_Product_ProductClass"
    EnableViewState="true" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<!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="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</head>
<body>
    <form id="form1" runat="server">
        <ul class="tool">
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''">
                <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
                <a href="ProductClass.aspx" title="增加产品分类">增加产品分类</a></li>
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''" id="boxDel"
                runat="server" visible="false"></li>
            <li>
                <div class="tool_back">
                    <a href="javaScript:history.back(-1)">返回上一步</a></div>
            </li>
        </ul>
        <div class="main_body">
            <h1>
                <asp:Literal ID="litTitle" runat="server" Text="增加产品分类"></asp:Literal></h1>
            <div class="item_body" id="item_body_list">
                <div class="ht2">
                </div>
                <div class="margin_left_2px">
                    <uc2:EditionItem ID="EditionItem1" runat="server" />
                </div>
                <ul class="item_body_list">
                    <li><span class="item_body_list_left">上级分类：</span> <span class="item_body_list_right">
                        <asp:DropDownList ID="dropClass" runat="server" DataTextField="TreeMode" DataValueField="ID">
                        </asp:DropDownList>
                        * </span></li>
                    <li><span class="item_body_list_left">分类名称：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtClassName" runat="server" Width="300px" MaxLength="255"></asp:TextBox>
                        * </span></li>
                        <li><span class="item_body_list_left">分类别名：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtClassByName" runat="server" Width="300px" MaxLength="255"></asp:TextBox>
                        * </span></li>
                    <li><span class="item_body_list_left">分类标识：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtClassKey" runat="server" Width="125px" MaxLength="255"></asp:TextBox>
                        * </span></li>
                    <li runat="server" id="boxImageUrl"><span class="item_body_list_left">分类图示：</span>
                        <span class="item_body_list_right">
                            <asp:FileUpload ID="fileImageUrl" runat="server" />
                            <asp:CheckBox ID="chkIsImageMake" runat="server" Text="自动生成图片" CssClass="input_no" onclick="ShowObject(this, 'boxMakeImage', true)" /> <span style="display:none;" id="boxMakeImage">图片尺寸(px)：宽<asp:TextBox ID="txtMakeImageWidth" runat="server" Width="50px" MaxLength="255"></asp:TextBox> 高<asp:TextBox ID="txtMakeImageHeight" runat="server" Width="50px" MaxLength="255"></asp:TextBox></span>
                        </span>
                        <br />
                        <asp:Image ID="imgImageUrl" runat="server" Visible="false" />
                    </li>
                    <li><span class="item_body_list_left">最&nbsp;子&nbsp;&nbsp;级：</span> <span class="item_body_list_right">
                        <asp:CheckBox ID="chkIsChild" runat="server" Text="是" CssClass="input_no" />
                        (该分类没有下级分类，而直接做为最终产品分类) </span></li>
                    <li><span class="item_body_list_left">默&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;认：</span>
                        <span class="item_body_list_right">
                            <asp:CheckBox ID="chkIsDefault" runat="server" Text="是" CssClass="input_no" />
                            (分类当在没有指定产品分类时优先取此分类的数据及产品) </span></li>
                    <li><span class="item_body_list_left">显&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;示：</span>
                        <span class="item_body_list_right">
                            <asp:CheckBox ID="chkIsMenuView" runat="server" Text="是" CssClass="input_no" />
                            (该分类是否显示在前台的分类菜单列表中) </span></li>
                    <li runat="server" id="boxUserLevelIDList" visible="false"><span class="item_body_list_left">
                        查看权限：</span> <span class="item_body_list_right input_no">
                            <asp:CheckBoxList ID="cblUserLevelIDList" runat="server" DataTextField="LevelName"
                                DataValueField="ID" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            </asp:CheckBoxList>
                            (不选则为全部) </span></li>
                    <li><span class="item_body_list_left">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
                        <span class="item_body_list_right">
                            <asp:DropDownList ID="dropState" runat="server">
                                <asp:ListItem Value="1">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:DropDownList>
                            * </span></li>
                    <li><span class="item_body_list_left">排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序：</span>
                        <span class="item_body_list_right">
                            <asp:TextBox ID="txtSortOrder" runat="server" Width="60px" Text="0"></asp:TextBox>
                        </span></li>
                    <li><span class="item_body_list_left">分类说明：</span><span class="item_body_list_right"><FCKeditorV2:FCKeditor
                        ID="txtBody" runat="server" Height="300px" Width="99%">
                    </FCKeditorV2:FCKeditor>
                    </span></li>
                </ul>
                <div class="padding8px align_center font_bold ht_color">
                    <asp:LinkButton ID="lbtnOk" runat="server" CssClass="btn_bg" OnClick="lbtnOk_Click">保存当前分类</asp:LinkButton></div>
            </div>
            <div class="ht">
            </div>
            <div class="ht">
            </div>
            <ul class="ac_intro" runat="server" id="boxPageExplain">
                <li class="ac_intro_title">说明：</li>
                <li class="ac_intro_item">1. 产品分类的增加/编辑；</li>
            </ul>
        </div>
    </form>
</body>

<script language="javascript" type="text/javascript">
        LiColor("item_body_list");
</script>

</html>
