<%@ page language="C#" autoeventwireup="true" inherits="Web.Admin.GoodsManagement.AddGoodsClass, ShopWe" validaterequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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" />

    <script type="text/javascript" src="../css/jquery.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="all">
            <div class="validate">
                <asp:ValidationSummary ID="ValidationSummaryPage" CssClass="val_ys" runat="server"
                    DisplayMode="List" ForeColor="#FF6600" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ErrorMessage="分类名称不能为空"
                    ControlToValidate="ClassName" Display="None"></asp:RequiredFieldValidator>
            </div>
            <div class="come_title">
                <h2>
                    添加商品分类</h2>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/video/class_demo/class_demo.htm" target="_blank">
                        <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=37" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            分类名：
                        </td>
                        <td>
                            <input class="input" style="width: 220px" id="ClassName" runat="server" /><h4>
                                <img src="../Themes/Default/Images/help.png" width="10" height="10" />
                                <span style="color: #999999">请尽力填写让用户简单易懂的分类。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right;">
                            上级分类：
                        </td>
                        <td>
                            <asp:DropDownList ID="ParentClass" runat="server" Width="227px" Height="20" CssClass="input6">
                            </asp:DropDownList><h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">请选择此分类的上级分类或者给它设为顶级分类。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right;">
                            显示顺序：
                        </td>
                        <td>
                            <input class="input" style="width: 220px" id="ClassOrder" value="0" runat="server" />
                            <h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">数字越小越靠前。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right;">
                            分类模板：
                        </td>
                        <td>
                            <asp:DropDownList ID="ClassTemplate" runat="server">
                                <asp:ListItem Value="list">默认样式(GoodsList)</asp:ListItem>
                                <asp:ListItem Value="grid">网格样式(GoodsGrid)</asp:ListItem>
                                <asp:ListItem Value="text">文字列表(GoodsText)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right;">
                            是否外链：
                        </td>
                        <td>
                            <input type="checkbox" onclick="ShowHideDiv('UrlId')" />我要自己指定分类链接地址
                        </td>
                    </tr>
                    <tr id="UrlId" style="display: none">
                        <td class="bg_1" style="text-align: right;">
                            分类链接：
                        </td>
                        <td>
                            <input class="input" style="width: 220px" id="ClassUrl" runat="server" />
                            <h5>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">填写后用户点击品牌会跳转到你指定的链接</span></h5>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right;">
                            分类图片：
                        </td>
                        <td>
                            <asp:FileUpload ID="FileUpload" runat="server" Width="228px" class="input"/>
                            <h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">可选，为需要美化分类的人提供</span></h4>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="come_title_bai">
                <h2>
                    分类简介</h2>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <FCKeditorV2:FCKeditor ID="ClassBody"  runat="server">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="sub">
                <asp:Button ID="Submit" runat="server" Text="确认提交" OnClick="Submit_Click" CssClass="but_add" />
            </div>
        </div>
    </form>
</body>
</html>
