<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Brand_Operate, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="uc1" %>
<!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/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />

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

    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【 品牌添加 】"></asp:Label>
                <asp:Label ID="lblEdit" runat="server" Text="【 品牌编辑 】" Visible="false"></asp:Label>
                <a href="Product_Brand_Manage.aspx" title="返回品牌列表">返回列表</a>
            </div>
        </div>
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="lblName" runat="server" Text="品牌名称："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="300px"></asp:TextBox><span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtName"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <uc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="品牌拼音" ImageURL="images/help.gif"
                            Text="品牌中文拼音或英文字母，建议取首字母。利用前台按字母查找." Fixedabsx="" HideSelects="False" />
                        <asp:Label ID="lblChar" runat="server" Text="品牌拼音："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtChar" runat="server" MaxLength="100" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <asp:Label ID="lblUrl" runat="server" Text="品牌网址："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtUrl" runat="server" MaxLength="100" Width="300px">http://</asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <asp:Label ID="lblCompany" runat="server" Text="品牌公司："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtCompany" runat="server" MaxLength="100" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <asp:Label ID="lblTitle" runat="server" Text="品牌标题："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtTitle" runat="server" MaxLength="100" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <asp:Label ID="lblOrderId" runat="server" Text="品牌排序："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtOrderId" runat="server" MaxLength="150" Width="100px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtOrderId"
                            Display="Dynamic" ErrorMessage="只能为数字" ValidationExpression="\d*"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <uc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="品牌LOGO" ImageURL="images/help.gif"
                            Text="该品牌的LOGO图片,即品牌标志图片" />
                        <asp:Label ID="lblLogo" runat="server" Text="品牌Logo："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtLogo" runat="server" MaxLength="200" Width="300px"></asp:TextBox>
                        <input type="button" value="选择图片" onclick="OpenDialog('txtLogo')" class="button" />
                        <img src="" id="txtLogoView" style="display: none;" /></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        &nbsp;<asp:Label ID="lblPic" runat="server" Text="品牌大图："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtPic" runat="server" MaxLength="200" Width="300px"></asp:TextBox>
                        <input type="button" value="选择图片" onclick="OpenDialog('txtPic')" class="button" />
                        <img src="" id="txtPicView" style="display: none;" /></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <uc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="品牌关键字" ImageURL="images/help.gif"
                            Text="与品牌相关的关键。可用于前台搜索引擎优化" />
                        <asp:Label ID="lblSearchKey" runat="server" Text="搜索关键字："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtKeywords" runat="server" TextMode="MultiLine" Height="60px" Width="300px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtKeywords"
                            Display="Dynamic" ErrorMessage="长度必须在150字以内" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <uc1:HelpCtrl ID="HelpCtrl4" runat="server" FontColor="red" Header="品牌简介" ImageURL="images/help.gif"
                            Text="品牌简单介绍。" />
                        <asp:Label ID="lblDescription" runat="server" Text="描述："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Height="60px" Width="300px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtDescription"
                            Display="Dynamic" ErrorMessage="长度必须在300字以内" ValidationExpression="^[\s\S]{0,300}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" style="width: 20%; height: 29px">
                        <uc1:HelpCtrl ID="HelpCtrl7" runat="server" FontColor="red" Header="品牌简介" ImageURL="images/help.gif"
                            Text="品牌详细介绍。" />
                        详细内容：</td>
                    <td align="left" bgcolor="#ffffff" colspan="3" style="height: 29px">
                        <asp:TextBox ID="txtContent" runat="server" Height="60px" TextMode="MultiLine" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 29px; width: 20%;">
                        <uc1:HelpCtrl ID="HelpCtrl5" runat="server" FontColor="red" Header="是否显示" ImageURL="images/help.gif"
                            Text="如果选中此项，品牌将会在前台显示。反之，则不显示" HideSelects="true" />
                        <asp:Label ID="lblIsRecommend" runat="server" Text="是否显示："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 29px" colspan="3">
                        &nbsp;<input id="cbIsShow" type="checkbox" value="1" runat="server" class="checkbox" /></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;">
                        <uc1:HelpCtrl ID="HelpCtrl6" runat="server" FontColor="red" Header="相关商品分类" ImageURL="images/help.gif"
                            Text="该品牌与哪些分类相关联。注意：只提供品牌与一级分类相关联" HideSelects="true"/>
                        <asp:Label ID="lblCategory" runat="server" Text="相关商品分类："></asp:Label></td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px; width: 10%;">
                        <asp:Label ID="lblNonSelectCategory" runat="server" Text="待选商品分类"></asp:Label><br />
                        <asp:ListBox ID="lbNonSelectCategory" runat="server" Height="180px" Width="140px"
                            SelectionMode="Multiple"></asp:ListBox>
                    </td>
                    <td align="center" bgcolor="#ffffff" style="height: 30px; width: 10%;">
                        <asp:Button ID="btnAddCategory" runat="server" Text="添加>>" CssClass="button" CausesValidation="False"
                            OnClick="btnAddCategory_Click" /><br />
                        <br />
                        <asp:Button ID="btnDelCategory" runat="server" Text="<<移除" CssClass="button" CausesValidation="False"
                            OnClick="btnDelCategory_Click" />
                    </td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px;">
                        <asp:Label ID="lblSelectCategory" runat="server" Text="已选商品分类"></asp:Label><br />
                        <asp:ListBox ID="lbSelectCategory" runat="server" Height="180px" Width="140px" SelectionMode="Multiple">
                        </asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;">
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource1"
                            CssClass="button" />
                        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False"
                            meta:resourcekey="btnEditResource1" CssClass="button" />
                        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                        <input id="btnReturn" runat="server" type="button" value="返回列表" onclick="window.location.href='Product_Brand_Manage.aspx'"
                            class="button" />
                    </td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                    </td>
                </tr>
            </table>

            <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
            </script>
    </form>
    <uc1:PageBottom ID="PageBottom" runat="server" />
</body>
</html>
