<%@ page title="" language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="Admin_Configs, App_Web_ina2jcns" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <script type="text/javascript">
    function ShowOrHideDiv(checked,targetDiv){
        var _ClientID = "ctl00_ContentPlaceHolder1_";
        targetDiv = _ClientID + targetDiv;
        document.getElementById(targetDiv).style.display = checked ? "block" : "none";
    }
    </script>
  <link rel="stylesheet" href="../../kindeditor/themes/default/default.css" />
  <link rel="stylesheet" href="../../kindeditor/plugins/code/prettify.css" />
  <script type="text/javascript" charset="utf-8" src="../../kindeditor/kindeditor.js"></script>
  <script type="text/javascript" charset="utf-8" src="../../kindeditor/lang/zh_CN.js"></script>
  <script type="text/javascript" charset="utf-8" src="../../kindeditor/plugins/code/prettify.js"></script>
  <script type="text/javascript">
        KindEditor.ready(function(K) {
			var editor1 = K.create('#txttoMailFize', {
				cssPath : '../../kindeditor/plugins/code/prettify.css',
				uploadJson : '../../kindeditor/upload_json.ashx',
				fileManagerJson : '../../kindeditor/file_manager_json.ashx',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
		KindEditor.ready(function(K) {
			var editor1 = K.create('#txtwebBottom', {
				cssPath : '../../kindeditor/plugins/code/prettify.css',
				uploadJson : '../../kindeditor/upload_json.ashx',
				fileManagerJson : '../../kindeditor/file_manager_json.ashx',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <asp:HyperLink ID="titleUrl1" Text="[网站基本信息]" runat="server"/>
      <asp:HyperLink ID="titleUrl2" Text="[搜索引擎优化]" runat="server"/>
      <asp:HyperLink ID="titleUrl3" Text="[邮件服务]" runat="server"/>
      <asp:HyperLink ID="titleUrl4" Text="[注册公告]" runat="server"/>
      <asp:HyperLink ID="titleUrl5" Text="[注册验证短文]" runat="server"/>
      <asp:HyperLink ID="titleUrl6" Text="[忘记密码短文]" runat="server"/>
    </div>
    <html:CurrTool ID="CurrTool1" Title="网站基本配置信息" Version="120402" runat="server" />
    <html:CurrImage ID="CurrImage1" Title="网站基本配置信息" Tips="网站维护期间，可以关闭网站，可以根据您的需要来配置网站。"
            runat="server" />
  </div>
  <div class="clear"> </div>
  <div class="divContent">
    <div id="UpdatePanel1">
      <div id="msg"> </div>
      <table width="100%" border="0" cellspacing="1" cellpadding="0" class="content-table">
        <tbody runat="server" id="trTitle1">
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <th colspan="2" class="thleft none"> 网站基本信息 </th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trIsCloseWeb">
            <td width="120"> 网站是否关闭： </td>
            <td><asp:CheckBox ID="chkIsCloseWeb" runat="server" onclick="ShowOrHideDiv(this.checked,'divCloseInfo')" />
              是 <span class="spanTipsRed">(如果想暂时关闭网站不对外显示，可以勾选此项)</span>
              <div id="divCloseInfo" runat="server" style="display: none;
                                margin-top: 5px; padding: 5px;">
                <div style="padding: 3px;"> 关闭提示信息：
                  <asp:TextBox ID="txtCloseTips" runat="server" 
                                    Width="60%" TextMode="MultiLine" Rows="2"/>
                </div>
              </div></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 网站名称： </td>
            <td><asp:TextBox ID="txtwebTitle" runat="server" Width="60%" MaxLength="100"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 网站地址： </td>
            <td><asp:TextBox ID="txtwebUrl" runat="server" Width="60%" MaxLength="100" onkeyup="onlyNumAndEng(this)"></asp:TextBox>
              (如：http://www.mttshop.com/) </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 网站Logo： </td>
            <td>
            <asp:Literal runat="server" ID="LitwebLogo"></asp:Literal><br />            
            <asp:FileUpload ID="FilewebLogo" runat="server" />
            <span class="spanTipsRed">不修改请留空</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> ICP备案号： </td>
            <td><asp:TextBox ID="txtwebIcp" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
              <span class="spanTipsRed">网站ICP备案号</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 网站底部信息： </td>
            <td>
            <asp:Label runat="server" ID="lbwebBottom" Visible="false"></asp:Label>
              <textarea name="txtwebBottom" id="txtwebBottom" style="width: 670px; height: 300px; visibility: hidden;">
                             <%=lbwebBottom.Text%>
                            </textarea></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)" runat="server" id="trWateUrl">
            <td width="120"> 产品图片是否打水印：</td>
            <td><asp:CheckBox ID="chkIsWate" runat="server" onclick="ShowOrHideDiv(this.checked,'divDisSty')" />
              是 <span class="spanTips">(指的是上传的产品图片是否需要打水印)</span>
              <div id="divDisSty" runat="server" style="display: none;
                                margin-top: 5px; padding: 5px;">
                <div style="padding: 3px;"> 选择水印图片：
                  <asp:FileUpload ID="fileWateUrl" runat="server" />
                  <asp:Literal ID="LitWateUrl" runat="server"></asp:Literal>
                  (注：不修改请留空,请使用png格式的图片) </div>
              </div></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 缩略图片默认长度： </td>
            <td><asp:TextBox ID="txtproImgWidth" runat="server" Width="300px" onkeyup="Onlynumber(this)"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 缩略图片默认高度： </td>
            <td><asp:TextBox ID="txtproImgHeight" runat="server" Width="300px" onkeyup="Onlynumber(this)"></asp:TextBox></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trTempName">
            <td width="120"> 模板文件夹： </td>
            <td><asp:TextBox ID="txtTempName" runat="server" Width="300px"></asp:TextBox>
            <span class="spanTipsRed">(注：即在文件夹templets下的文件夹名称)</span></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)" runat="server" id="trIsMM">
            <td width="120"> 客户咨询和留言时是否启用邮箱接收： </td>
            <td><asp:CheckBox ID="chkIsMM" runat="server" onclick="ShowOrHideDiv(this.checked,'divIsMM')" />
              <div id="divIsMM" runat="server" style=" display: none;
                                margin-top: 5px; padding: 5px;">
                <div style="padding: 3px;"> 请输入接收咨询和留言的邮箱：
                  <asp:TextBox ID="txttoMessageMail" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
                  <span class="spanTipsRed">(注：请勿与系统邮箱同号)</span> </div>
              </div></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)" runat="server" id="trIsJifo">
            <td width="120"> 会员注册时是否需要验证邮箱： </td>
            <td><asp:CheckBox ID="chkIsJifo" runat="server" /></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)" runat="server" id="trIsQQ">
            <td width="120"> 是否使用浮动QQ： </td>
            <td><asp:CheckBox ID="chkIsQQ" runat="server" /></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)" runat="server" id="tr1">
            <td width="120"> 是否使用在线支付： </td>
            <td><asp:CheckBox ID="chkisPay" runat="server" /></td>
          </tr>
          <tr onmouseover="setbg2(this)"  onmouseout="setbg1(this)">
            <td width="120"> 全场达到多少免运费： </td>
            <td><asp:TextBox ID="txtNoFreight" runat="server" onkeyup="onlyNumAndD(this)" Text="0"></asp:TextBox>
            <span class="spanTipsRed">(注：为0或者空是则都要运费)</span>
            </td>
          </tr>
        </tbody>
        <!-- 搜索引擎优化相关 start -->
        <tbody runat="server" id="trTitle2">
          <tr>
            <th colspan="2" class="thleft none">搜索引擎优化</th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 全站页面关键词： </td>
            <td><asp:TextBox ID="txtwebKey" runat="server" Width="60%" TextMode="MultiLine" Height="50"></asp:TextBox>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ControlToValidate="txtwebKey"
                                ValidationExpression="^.{0,150}$" runat="server" ErrorMessage="输入长度150字以内" />
              <br />
              <span class="spanTipsRed">Meta里的关键词(Keywords)，多个关键词请用英文逗号','隔开</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 全站页面描述： </td>
            <td><asp:TextBox ID="txtwebDescription" TextMode="MultiLine" Height="50" runat="server"
                                Width="60%"></asp:TextBox>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtwebDescription"
                                ValidationExpression="^.{0,200}$" runat="server" ErrorMessage="输入长度200字以内" />
              <br />
              <span class="spanTipsRed">Meta里的页面描述(Description)，多个描述请用英文逗号','隔开</span></td>
          </tr>
        </tbody>
        <!-- 搜索引擎优化相关 end --> 
        <!-- 邮件服务 start -->
        <tbody runat="server" id="trTitle3">
          <tr>
            <th colspan="2" class="thleft none">邮件服务</th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> E-mail：
              <div style="color: #ACACAC;"> </div></td>
            <td><asp:TextBox ID="txtFromEmailAddrdss" runat="server" Width="20%" MaxLength="50"></asp:TextBox>
              <span class="spanTipsRed">如：admin@mttshop.com</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 邮件用户名：
              <div style="color: #ACACAC;"> </div></td>
            <td><asp:TextBox ID="txtFromEMailUserName" runat="server" Width="20%" MaxLength="50"></asp:TextBox>
              <span class="spanTipsRed">如：admin</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 邮件密码：
              <div style="color: #ACACAC;"> </div></td>
            <td><asp:TextBox ID="txtFromEMailUserPsw" runat="server" Width="20%" TextMode="Password" MaxLength="50"></asp:TextBox>
              <input runat="server" type="hidden" id="hidFromEMailUserPsw" /></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> smtp服务器名称：
              <div style="color: #ACACAC;"> </div></td>
            <td><asp:TextBox ID="txtEMailServerAddress" runat="server" Width="20%" MaxLength="50"></asp:TextBox>
              <span class="spanTipsRed">如：smtp.mttshop.com</span></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> smtp服务器端口号：
              <div style="color: #ACACAC;"> </div></td>
            <td><asp:TextBox ID="txtMailServerPort" runat="server" onkeyup="Onlynumber(this)"></asp:TextBox>
              <span class="spanTipsRed">邮箱默认端口号为25</span></td>
          </tr>
        </tbody>
        <!-- 邮件服务 end --> 
        <!-- 注册公告 start -->
        <tbody runat="server" id="trTitle4">
          <tr>
            <th colspan="2" class="thleft none">注册公告</th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 注册公告 </td>
            <td><asp:TextBox ID="txtwebAnn" TextMode="MultiLine" Height="200" runat="server"
                                Width="80%"></asp:TextBox>
              <br />
              <span class="spanTipsRed">会员注册时需要接收的条约</span></td>
          </tr>
        </tbody>
        <!-- 注册公告 end --> 
        <!-- 发送注册信息 start -->
        <tbody runat="server" id="trTitle5">
          <tr>
            <th colspan="2" class="thleft none">注册验证短文</th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 验证短文 </td>
            <td><asp:Label runat="server" ID="lbtoMailFize" Visible="false"></asp:Label>
              <textarea name="txttoMailFize" id="txttoMailFize" style="width: 670px; height: 300px; visibility: hidden;">
                             <%=lbtoMailFize.Text%>
                            </textarea>
              <span class="spanTipsRed">注册时发送到客户邮箱中的短文</span><br />
              <span class="spanTipsRed">系统变量{username}登录账号；{NikName}昵称；{timenow}日期；{url}验证网址；注：变量全部为小写</span></td>
          </tr>
        </tbody>
        <!-- 发送注册信息 end --> 
        <!-- 忘记密码信息 start -->
        <tbody runat="server" id="trTitle6">
          <tr>
            <th colspan="2" class="thleft none">忘记密码短文</th>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="120"> 短文内容 </td>
            <td><asp:TextBox ID="txtforgetPwdFize" TextMode="MultiLine" Height="200" runat="server"
                                Width="80%"></asp:TextBox>
              <span class="spanTipsRed">忘记密码时发送到客户邮箱中短文</span></td>
          </tr>
        </tbody>
        <!-- 忘记密码信息 end -->
        <tr>
          <td id="href-blue">&nbsp;</td>
          <td class="food"><asp:Button ID="btnOk" runat="server" Text="确定修改" OnClick="btnOk_Click" CssClass="button" /></td>
        </tr>
      </table>
    </div>
  </div>
  <asp:HiddenField ID="hidId" runat="server" Visible="false" />
</asp:Content>
