<%@ 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="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ 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="Literal1" runat="server" Text="<%$ Resources:EditHelp,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:EditHelp,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:EditHelp ID="EditHelp" runat="server">
            <SkinTemplate>
                <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
                <div class="grdGroupFormList">
                    <div class="grdHeaderStyle">
                        <ul>
                            <li class="addHelpCategories">
                                <asp:Literal ID="lblTitle" Text='<%$Resources:EditHelp,IDS_Label_Title %>' runat="server"></asp:Literal>
                            </li>
                        </ul>
                    </div>
                    <Hishop:HelpView ID="editHelp" runat="server">
                    <SkinTemplate>
<table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
    <tr>
                <td class="leftTD"><asp:Literal ID="lblHelpCategory" Text="<%$Resources:HelpView,IDS_FormField_HelpCategory %>" runat="server"></asp:Literal>
                 <asp:Label ID="lblEditHelp" runat="server" style="display:none"></asp:Label>
                </td>
                <td class="rightTD"><Hishop:HelpCategoryDropDownList ID="dropHelpCategory" AutoPostBack="true" AllowNull="false" runat="server"></Hishop:HelpCategoryDropDownList></td>
                <td class="rightTD">
                    <div id="dropHelpCategoryTip" runat="server"></div>
                    <Hishop:ValidateTarget ID="ValidateTarget1" runat="server" ContainerId="ValidatorContainer" ControlToValidate="dropHelpCategory" Description="<%$Resources:HelpView,IDS_ErrorMessage_Category %>" Nullable="false" FocusMessage="<%$Resources:HelpView,IDS_ErrorMessage_Category %>">
                        <Validators>
                           <Hishop:DropDownListClientValidator ErrorMessage="<%$Resources:HelpView,IDS_ErrorMessage_Category %>" />
                        </Validators>
                    </Hishop:ValidateTarget>
                </td>
              </tr>
    <tr>
       <td class="leftTD"><asp:Literal ID="lblHelpTitle" Text='<%$Resources:HelpView,IDS_FormField_HelpTitle %>' runat="server"></asp:Literal></td>
       <td class="rightTD"><asp:TextBox ID="txtHelpTitle" runat="server" CssClass="input_longest"></asp:TextBox></td>
       <td class="rightTD">
           <div id="txtHelpTitleTip" runat="server"></div>
           <Hishop:ValidateTarget ID="ValidateTarget2" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtHelpTitle" Description="<%$Resources:HelpView,IDS_ErrorMessage_HelpTitle_FormatError %>" Nullable="false" FocusMessage="<%$Resources:HelpView,IDS_ErrorMessage_HelpTitle_FormatError %>">
               <Validators>
                  <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:HelpView,IDS_ErrorMessage_HelpTitle_FormatError %>" LowerBound="1" UpperBound="200" />
               </Validators>
           </Hishop:ValidateTarget>
       </td>
    </tr>
    <tr>
       <td class="leftTD">详细页描述：<div>META_DESCRIPTION</div></td>
       <td class="rightTD"><asp:TextBox ID="txtDescription" runat="server" CssClass="input_longest"></asp:TextBox></td>
       <td class="rightTD">
           <div id="txtDescriptionTip" runat="server"></div>
           <Hishop:ValidateTarget ID="ValidateTarget4" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtDescription" Description="告诉搜索引擎此帮助页面的大概内容，有助于搜索引擎更好的收录此帮助页面" Nullable="true">
               <Validators>
                  <Hishop:InputStringClientValidator ErrorMessage="告诉搜索引擎此帮助页面的大概内容，有助于搜索引擎更好的收录此帮助页面" UpperBound="500"  />
               </Validators>
           </Hishop:ValidateTarget>
       </td>
    </tr>
    <tr>
        <td class="leftTD">详细页搜索关键字：<div>META_KEYWORDS</div></td>
        <td class="rightTD">
            <asp:TextBox CssClass="input_longest" runat="server" ID="txtMetaKeywords" />
        </td>
        <td class="rightTD">
            <div id="txtMetaKeywordsTip" runat="server"></div>
            <Hishop:ValidateTarget ID="ValidateTargetMetaKeyword" runat="server" Nullable="true" ContainerId="ValidatorContainer" ControlToValidate="txtMetaKeywords" Description="设置此帮助页面的关键字，让用户可以通过搜索引擎搜索到此帮助页面，多个关键字请用逗号分开">
                <Validators>
                    <Hishop:InputStringClientValidator UpperBound="500" ErrorMessage="设置此帮助页面的关键字，让用户可以通过搜索引擎搜索到此帮助页面，多个关键字请用逗号分开" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
       <td class="leftTD"><asp:Literal ID="lblShortDesc" Text='<%$Resources:HelpView,IDS_FormField_HelpShortDesc %>' runat="server"></asp:Literal></td>
       <td class="rightTD"><asp:TextBox ID="txtShortDesc" TextMode="MultiLine" CssClass="input_longest" Height="70" runat="server"></asp:TextBox></td>
         <td class="rightTD">
           <div id="txtShortDescTip" runat="server"></div>
           <Hishop:ValidateTarget ID="ValidateTarget3" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtShortDesc" Description="<%$Resources:HelpView,IDS_ErrorMessage_HelpShortDesc_FormatError %>" Nullable="true" FocusMessage="<%$Resources:HelpView,IDS_ErrorMessage_HelpShortDesc_FormatError %>">
               <Validators>
                  <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:HelpView,IDS_ErrorMessage_HelpShortDesc_FormatError %>" LowerBound="1" UpperBound="1000" />
               </Validators>
           </Hishop:ValidateTarget>
         </td>
    </tr>
      <tr id="showFooter" runat="server">
          <td class="leftTD"><asp:Literal ID="lblIsShowFooter" Text='<%$Resources:HelpView,IDS_FormField_ShowFooter %>' runat="server"></asp:Literal>：</td>
          <td class="rightTD"><Hishop:YesNoRadioButtonList id="radioShowFooter" runat="server"></Hishop:YesNoRadioButtonList></td>
          <td class="rightTD">
              <label class="msgNormal"><asp:Literal ID="lblShowFooter" Text="<%$Resources:HelpView,IDS_ErrorMessage_ShowFooter %>" runat="server"></asp:Literal></label>
          </td>
      </tr>
      <tr>
         <td class="leftTD"><asp:Literal ID="lblHelpDesc" Text='<%$Resources:HelpView,IDS_FormField_HelpDesc %>' runat="server"></asp:Literal></td>
         <td colspan="2" class="rightTD">
                    <Kindeditor:KindeditorControl ID="fcContent" runat="server" Height="200px" Width="99%" />
         </td>
     </tr>
</table>
                        </SkinTemplate>
                    </Hishop:HelpView>
                    <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="btnEditHelp" runat="server" OnClientClick="return PageIsValid();"
                                                Text="<%$Resources:Resources,IDS_Button_Save %>" CssClass="inp_L1" />
                                        </td>
                                        <td>
                                            <div class="return_inp">
                                                <a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_helplist")%>'>
                                                    <asp:Literal runat="server" ID="lblBack" Text="<%$ Resources:Resources,IDS_Button_Back%>"></asp:Literal></a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="rightTD">
                            </td>
                        </tr>
                    </table>
                </div>
            </SkinTemplate>
        </Hishop:EditHelp>
    </div>
    <br />
    <div class="botCopyInfo">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
