<%@ page language="C#" masterpagefile="~/Shop/ShopMasterPage/Shop.master" autoeventwireup="true" inherits="Shop_Shop1_Shop_AddMessage, HoWaveVGO" title="我要留言" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="Category_Content" style="width:99%; margin:0 auto">
 <ul class="TabBarLevel1">
       <li><asp:HyperLink  ID="btn_shop_name" runat="server" /></li><li class="Selected"><asp:HyperLink ID="btn_shopIntro" runat="server" Text="店铺介绍" /></li><li><asp:HyperLink ID="btn_Review" runat="server" Text="【信用评价】" /></li></ul>
 <div class="clear"></div>
 <div style="width:100%; background:#FEFEFE;border-bottom:solid 1px #F9F9F9; height:20px; padding-top:5px">
     <div style="float:left;margin-left:30px"><asp:HyperLink ID="ShopIntoLink" runat="server" Text="店铺介绍" /></div>
     <div style="float:left;;margin-left:60px"><asp:HyperLink ID="SalerIntroLink" runat="server" Text="档案浏览" /></div>
 </div>

 <br />
 <!--留言区开始-->
 <div style="font-size:12px;text-align:center; clear:both;">请在此处留言，店长回复后才会在留言列表中显示。您可以在"会员管理中心"-->"<a href='../Member/shop_check_saler_message.aspx' target='_blank'>卖家回复/留言</a>")中查看状态。(留言内容100个字以内)<br /></div>
    <br />
    <div align="center">
       <asp:TextBox ID="TxtMessage" runat="server" Height="50px" TextMode="MultiLine"  Width="400px"/><br />
        验证码<asp:TextBox ID="CheckCode" runat="server"  Width="50px"/><img src="../../Passport/CheckCode.aspx" /><br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入验证码" ControlToValidate="CheckCode" Display="Dynamic"/><br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入留言" ControlToValidate="TxtMessage" Display="Dynamic"/><br />
        <asp:Label ID="err_tips" runat="server" /><br />
        <asp:Button ID="ButAdd" runat="server" Text="添加" OnClick="ButAdd_Click" OnClientClick="return CheckTextBoxLength(100,'ctl00_ContentPlaceHolder1_TxtMessage',false)" />
        <asp:Button ID="ButCancel" runat="server" Text="取消" CausesValidation="false"  OnClick="ButCancel_Click" />
        <asp:Button ID="LinBack" runat="server" CausesValidation="false"  OnClick="LinBack_Click" Text="返回" /><br />
    </div>    
 <!--留言区结束-->    
  <asp:HiddenField ID="ComeUrl" runat="server" />
  <script type="text/javascript">
  function CheckTextBoxLength(MaxLength,ControlID,CanEmpty)
  {
     var CheckObj=document.getElementById(ControlID);
     if(CheckObj!=null)
     {
        if(CheckObj.value=="" &&!CanEmpty)
        {
           alert("输入不能为空！");
           return false;
        }
        else  if(CheckObj.value.length>parseInt(MaxLength))
        {
           alert("输入内容长度超出限制！,请重新输入");
           return false;
        }
     }
  }
  </script>
</asp:Content>


