<%@ 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" %>
<%@ 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 runat="server">
    <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="站内信模版修改" ></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="Literal2" runat="server" Text="在这里你可以对各个类型的站内信模版内容进行编辑。" ></asp:Literal>
                </div>
         </div>
    <Hishop:EditInnerMessageTemplet ID="editHelp" runat="server">
       <SkinTemplate>
            <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
         <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
            <tr>
                   <td class="leftTD"><asp:Literal ID="lblHelpCategory" Text="消息类型：" runat="server"></asp:Literal>
                   </td>
                   <td class="rightTD"><asp:Literal runat="server" ID="litMessageType" /></td>
                   <td class="rightTD">
                       <div id="dropHelpCategoryTip" class="msgNormal" runat="server">显示在各个地方发送站内信的类型</div>
                    </td>
            </tr>
            <tr>
               <td class="leftTD"><asp:Literal ID="lblHelpTitle" Text="标签说明：" runat="server"></asp:Literal></td>
               <td class="rightTD"><asp:Literal ID="litTagDescription" runat="server"></asp:Literal></td>
               <td class="rightTD">
                   <div id="txtHelpTitleTip" class="msgNormal" runat="server">标签里面提示那些内容是要被动态内容替换的。</div>
               </td>
            </tr>
            <tr>
               <td class="leftTD">站内信标题：</td>
               <td class="rightTD"><asp:TextBox ID="txtMessageSubject" runat="server" CssClass="input_longest"></asp:TextBox></td>
               <td class="rightTD">
                   <div id="txtMessageSubjectTip" runat="server"></div>
                   <Hishop:ValidateTarget ID="ValidateTarget4" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtMessageSubject" Description="站内信标题" Nullable="false">
                       <Validators>
                          <Hishop:InputStringClientValidator ErrorMessage="站内信标题不能为空，限定在1-60个字符之间" UpperBound="60" LowerBound="1"  />
                       </Validators>
                   </Hishop:ValidateTarget>
               </td>
            </tr>
            <tr>
                <td class="leftTD">站内信内容模板</td>
                <td class="rightTD">
                    <asp:TextBox CssClass="input_longest" runat="server" TextMode="MultiLine" Height="100px" Width="420px" ID="txtContent" />
                </td>
                <td class="rightTD">
                    <div id="txtContentTip" runat="server"></div>
                    <Hishop:ValidateTarget ID="ValidateTargetContent" runat="server" Nullable="false" ContainerId="ValidatorContainer" ControlToValidate="txtContent" Description="用户收到站内信内容的模版">
                        <Validators>
                            <Hishop:InputStringClientValidator UpperBound="300" LowerBound="1" ErrorMessage="站内信内容模版在1-300个字符之间。" />
                        </Validators>
                    </Hishop:ValidateTarget>
                </td>
            </tr>
              <tr>
                 <td class="leftTD">&nbsp;</td>
                 <td colspan="2" class="rightTD">
                      <asp:Button runat="server" CssClass="inp_L1" OnClientClick="return PageIsValid();" Text="保存" ID="btnSaveMessageTemplet" />
                      <asp:LinkButton runat="server" CssClass="inp_L1" PostBackUrl="~/Admin/Shop/SendMessageTemplets.aspx" ID="lkbtnBack" Text="返回" />
                 </td>
             </tr>
        </table>
      </SkinTemplate>
     </Hishop:EditInnerMessageTemplet>
    </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>
