<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Register TagPrefix="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:AddProductCategory,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:AddProductCategory,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:AddProductCategory ID="AddProductCategory1" runat="server">
            <SkinTemplate>
                <!-- 操作提示 -->
                <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
                <div class="grdGroupFormList">
                    <Hishop:ProductCategoryView ID="addProductCategory" runat="server">
                        <SkinTemplate>
                            <table style="width: 100%;" cellspacing="0" cellpadding="0" class="formTableList"
                                id="addItemsTable">
                                <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="lblCategoryName" Text='<%$Resources:ProductCategoryView,IDS_FormField_CategoryName %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <asp:TextBox ID="txtCategoryName" runat="server" CssClass="input_short"></asp:TextBox>
                                    </td>
                                    <td class="rightTD">
                                        <div id="txtCategoryNameTip" runat="server">
                                        </div>
                                        <Hishop:ValidateTarget runat="server" ControlToValidate="txtCategoryName" ContainerId="ValidatorContainer"
                                            Nullable="false" Description="<%$Resources:ProductCategoryView,IDS_ErrorMessage_CategoryName_ErrorFormat %>"
                                            FocusMessage="<%$Resources:ProductCategoryView,IDS_ErrorMessage_CategoryName_ErrorFormat %>">
                                            <Validators>
                                                <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ProductCategoryView,IDS_ErrorMessage_CategoryName_ErrorFormat %>"
                                                    LowerBound="1" UpperBound="30" />
                                            </Validators>
                                        </Hishop:ValidateTarget>
                                    </td>
                                </tr>
                                <tr runat="server" id="tblrParent">
                                    <td class="leftTD">
                                        <asp:Literal ID="lblParentCategory" Text='<%$Resources:ProductCategoryView,IDS_FormField_ParentCategory %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <Hishop:ProductCategoriesDropDownList ID="dropCategories" runat="server" CssClass="inputstyle" />
                                    </td>
                                    <td class="rightTD">
                                        <label class="msgNormal">
                                            <asp:Literal ID="lblParentArticleCategory" Text="<%$Resources:ProductCategoryView,IDS_ErrorMessage_ParentCategory %>"
                                                runat="server"></asp:Literal></label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="Literal3" Text='<%$Resources:ProductCategoryView,IDS_FormField_ProductType %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <Hishop:ProductTypeDownList runat="server" ID="dropProductTypes" />
                                    </td>
                                    <td class="rightTD">
                                        <label class="msgNormal">
                                            <asp:Literal ID="Literal4" Text="<%$Resources:ProductCategoryView,IDS_Label_ProductType %>"
                                                runat="server"></asp:Literal></label>
                                    </td>
                                </tr>
                                <tr runat="server" id="tblrRewriteName">
                                    <td class="leftTD">
                                        <asp:Literal ID="Literal2" Text='<%$Resources:TopCategories,IDS_FormField_RewriteName %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <asp:TextBox ID="txtRewriteName" runat="server" CssClass="input_short"></asp:TextBox>
                                    </td>
                                    <td class="rightTD">
                                        <div id="txtRewriteNameTip" runat="server">
                                        </div>
                                        <Hishop:ValidateTarget ID="ValidateTarget5" runat="server" ControlToValidate="txtRewriteName"
                                            ContainerId="ValidatorContainer" Nullable="true" Description="<%$Resources:TopCategories,IDS_FormField_RewriteNameHelp %>"
                                            FocusMessage="<%$Resources:TopCategories,IDS_FormField_RewriteNameHelp %>">
                                            <Validators>
                                                <Hishop:InputStringClientValidator Regex="([a-zA-Z])+(([a-zA-Z_-])?)+" ErrorMessage="<%$Resources:TopCategories,IDS_ErrorMessage_RewriteNameFormat %>"
                                                    LowerBound="1" UpperBound="50" />
                                            </Validators>
                                        </Hishop:ValidateTarget>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="lblCategoryIcon" Text='<%$Resources:ProductCategoryView,IDS_FormField_CategoryIcon %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <asp:FileUpload ID="fileUpload" CssClass="input_longest" runat="server" />
                                        <UI:ResizeableImage runat="server" ID="imgPic" />
                                        <Hishop:DeleteImageLinkButton Id="btnPicDelete" runat="server"  Text="<%$ Resources:Resources, IDS_Button_Delete %>" />
                                    </td>
                                    <td class="rightTD">
                                        <div class="msgNormal">
                                            <Hishop:UploadImageMessageLabel runat="server" ID="uploadMessage"></Hishop:UploadImageMessageLabel>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="lblPageKeyWords" Text='<%$Resources:ProductCategoryView,IDS_FormField_PagekeyWords %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <span>
                                            <asp:TextBox ID="txtPageKeyWords" CssClass="input_short" runat="server"></asp:TextBox></span>
                                    </td>
                                    <td class="rightTD">
                                        <div id="txtPageKeyWordsTip" runat="server">
                                        </div>
                                        <Hishop:ValidateTarget runat="server" ControlToValidate="txtPageKeyWords" ContainerId="ValidatorContainer"
                                            Description="<%$Resources:ProductCategoryView,IDS_FormField_MetaKeywords_Help %>"
                                            Nullable="true" FocusMessage="<%$Resources:ProductCategoryView,IDS_FormField_MetaKeywords_Help %>">
                                            <Validators>
                                                <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ProductCategoryView,IDS_FormField_MetaKeywords_Help %>"
                                                    LowerBound="1" UpperBound="1000" />
                                            </Validators>
                                        </Hishop:ValidateTarget>
                                    </td>
                                </tr>
                                
                                      <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="Literal5" Text='标题'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <span>
                                            <asp:TextBox ID="txtTitle" CssClass="input_short" runat="server"></asp:TextBox></span>
                                    </td>
                                    <td class="rightTD">
                                        <div id="txtTitleTip" runat="server">
                                        </div>
                                        <Hishop:ValidateTarget ID="ValidateTarget1" runat="server" ControlToValidate="txtTitle" ContainerId="ValidatorContainer"
                                            Description="设置分类的标题"
                                            Nullable="true" FocusMessage="设置分类的标题">
                                            <Validators>
                                                <Hishop:InputStringClientValidator ErrorMessage="设置分类的标题"
                                                    LowerBound="1" UpperBound="100" />
                                            </Validators>
                                        </Hishop:ValidateTarget>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td class="leftTD">
                                        <asp:Literal ID="Literal1" Text='<%$Resources:ProductCategoryView,IDS_FormField_PageDesc %>'
                                            runat="server"></asp:Literal>：
                                    </td>
                                    <td class="rightTD">
                                        <span>
                                            <asp:TextBox ID="txtPageDesc" CssClass="input_short" runat="server"></asp:TextBox></span>
                                    </td>
                                    <td class="rightTD">
                                        <div id="txtPageDescTip" runat="server">
                                        </div>
                                        <Hishop:ValidateTarget runat="server" ControlToValidate="txtPageDesc" ContainerId="ValidatorContainer"
                                            Description="<%$Resources:ProductCategoryView,IDS_FormField_MetaDesc_Help %>"
                                            Nullable="true" FocusMessage="<%$Resources:ProductCategoryView,IDS_FormField_MetaDesc_Help %>">
                                            <Validators>
                                                <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ProductCategoryView,IDS_FormField_MetaDesc_Help %>"
                                                    LowerBound="1" UpperBound="1000" />
                                            </Validators>
                                        </Hishop:ValidateTarget>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <UI:TabStrip runat="server" ID="tabs" Width="100%">
                                            <Tabs>
                                               <UI:TabStripTab ID="TabStripTab1" runat="server" Title="导购一区信息">
                                                   <Kindeditor:KindeditorControl ID="fckNotes1" runat="server" Height="300"/> 
                                               </UI:TabStripTab>
                                                <UI:TabStripTab ID="TabStripTab2" runat="server" Title="导购二区信息">
                                                <Kindeditor:KindeditorControl ID="fckNotes2" runat="server" Height="300" ImportLib="false"/> 
                                               </UI:TabStripTab>
                                               <UI:TabStripTab ID="TabStripTab3" runat="server" Title="导购三区信息">
                                                    <Kindeditor:KindeditorControl ID="fckNotes3" runat="server" Height="300" ImportLib="false"/>
                                               </UI:TabStripTab>
                                               <UI:TabStripTab ID="TabStripTab4" runat="server" Title="导购四区信息">
                                                    <Kindeditor:KindeditorControl ID="fckNotes4" runat="server" Height="300" ImportLib="false"/>
                                               </UI:TabStripTab>
                                               <UI:TabStripTab ID="TabStripTab5" runat="server" Title="导购五区信息">
                                                    <Kindeditor:KindeditorControl ID="fckNotes5" runat="server" Height="300" ImportLib="false" />
                                               </UI:TabStripTab>
                                            </Tabs>
                                        </UI:TabStrip>
                                    </td>
                                </tr>
                            </table>
                        </SkinTemplate>
                    </Hishop:ProductCategoryView>
                    <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
                        <tr>
                            <td class="bottonLeftTD">
                                &nbsp;
                            </td>
                            <td class="rightTD">
                                <table>
                                    <tr>
                                        <td valign="top">
                                            <asp:Button ID="btnSaveCategory" Text='<%$Resources:Resources,IDS_Button_Add %>'
                                                OnClientClick="return PageIsValid();" runat="server" CssClass="inp_L1" />
                                        </td>
                                        <td>
                                            <div class="return_inp">
                                                <a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_TopCategories")%>'>
                                                    <asp:Literal ID="lblReturn" Text='<%$Resources:AddProductCategory,IDS_Button_ReturnCategoryList %>'
                                                        runat="server" /></a></div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="rightTD">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </SkinTemplate>
        </Hishop:AddProductCategory>
    </div>
    <br />
    <div style="margin:0px auto;width:500px;clear:both;">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>