<%@ Page Language="C#" ValidateRequest="false" EnableEventValidation="false" ViewStateEncryptionMode="Never" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Kesion.NET.WebSite.Admin_Config" Title="基本信息设置" CodeBehind="KS.Config.aspx.cs" %>

<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.HtmlTags" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <script>
 <!--
    function showwatermarkarea() {
        var checkrad = jQuery("#<%=this.WaterMarkType.ClientID %> :radio[checked]").val();
        if (checkrad == "1") {
            jQuery("#<%=this.watermarktxtarea.ClientID %>").css("display", "none");
            jQuery("#<%=this.watermarkpicarea.ClientID %>").css("display", "");
        } else {
            jQuery("#<%=this.watermarktxtarea.ClientID %>").css("display", "");
            jQuery("#<%=this.watermarkpicarea.ClientID %>").css("display", "none");
            }
        }
        function showFtp() {
            if (jQuery("#<%=this.RdbRemoteAnnexTF.ClientID %> :radio[checked]").val() == "1") {
                jQuery("#<%=this.ftp.ClientID %>").show();
            } else {
                jQuery("#<%=this.ftp.ClientID %>").hide();
            }
        }
        function show3G() {
            if (jQuery("#<%=this.Rdb3GEnable.ClientID %> :radio[checked]").val() != "0") {
                jQuery("#<%=this.G3.ClientID %>").show();
            } else {
                jQuery("#<%=this.G3.ClientID %>").hide();
            }
        }

        function showfsotime() {
            if (jQuery("#<%=this.FsoIndexExt.ClientID %> option:selected").val() != ".aspx") {
                jQuery("#fsoIndexTime").show();
            } else {
                jQuery("#fsoIndexTime").hide();
            }
        }
        function showLoginType() {
            if (jQuery("#<%=this.RdbUserNameType.ClientID %> :radio[checked]").val() == "0") {
                jQuery("#showregbyusername").show();
            } else {
                jQuery("#showregbyusername").hide();
            }
        }
        function showPoint() {
            if (jQuery("#<%=this.RdbIsPoint.ClientID %> :radio[checked]").val() == "1") {
                jQuery("#showpoint").show();
            } else {
                jQuery("#showpoint").hide();
            }
        }
        //是否显示积分单位
        function showScore() {
            if (jQuery("#<%=this.RdbIsScore.ClientID %> :radio[checked]").val() == "1") {
                jQuery("#showscore").show();
            } else {
                jQuery("#showscore").hide();
            }
        }
        function UpdatePhoneSearch() {
            if (jQuery("#<%=this.IsPhoneSearch.ClientID %> :radio[checked]").val() == "1") {
                jQuery("#PhoneSearch").show();
            } else {
                jQuery("#PhoneSearch").hide();
            }
        }
        jQuery(document).ready(function () {
            showFtp();
            show3G();
            showLoginType();
            showPoint();
            showScore();
            UpdatePhoneSearch();
        });
    //-->
    </script>

    <div id="manage_top" class="menu_top_fixed">
        <ul class="titleTab">
            <li class="curr"><a href="KS.Config.aspx">网站参数设置</a></li>
            <li><a href="KS.Safe.aspx">网站安全配置</a></li>
            <li><a href="KS.ScoreConfig.aspx">网站积分配置</a></li>
            <li><a href="KS.ContactUS.aspx">联系方式配置</a></li>
        </ul>
    </div>
    <div class="menu_top_fixed_height"></div>

    <div class="content-area">
        <div class="tab-page" id="SystemPanel">
            <script type="text/javascript">
                var tabPane1 = new WebFXTabPane(document.getElementById("SystemPanel"), 1)
            </script>

            <div class="tab-page" id="tab0">
                <h2 class="tab">基本参数</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab0"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" align="right" style="width: 198px"><b>站点名称：</b></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" Width="350" ID="SiteName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="SiteName"
                                ErrorMessage="请填写站点名称" Display="Dynamic"></asp:RequiredFieldValidator><span class="tips">将显示在站点位置导航等</span>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>网站域名：</b></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" Width="350" ID="Domain" runat="server"></asp:TextBox>
                            <span class="tips">*必须以http://开头，且后面不要带"/"。如：http://www.kesion.com</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Domain"
                                ErrorMessage="RequiredFieldValidator">*请填写网站域名</asp:RequiredFieldValidator></td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" style="height: 30px; width: 198px;"><strong>安装目录：</strong></td>
                        <td style="height: 30px" class="righttd">
                            <asp:TextBox CssClass="textbox" Width="350" ID="InstallDir" runat="server" ReadOnly="True"></asp:TextBox>
                            <span class="tips">*系统安装的虚拟目录,系统会自动获取，无需填写。</span></td>
                    </tr>
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px"><strong>网站Logo地址：</strong></td>
                        <td class="righttd">
                            <table cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:TextBox CssClass="textbox" Width="350" ID="WebLogo" runat="server"></asp:TextBox>&nbsp;<input type="button" class="button" onclick="SelectFiles('<%=this.WebLogo.ClientID %>    ',0);" value="选择Logo..."></td>
                                    <%if (Kesion.BLL.KSSecurity.CheckCommonUploadPower())
                                        { %>
                                    <td style="padding-left: 4px; padding-top: 15px; vertical-align: middle; *padding-top: 12px;"><%=Kesion.APPCode.UploadAPI.EchoUpload("classpic", this.WebLogo.ClientID, 150) %></td>
                                    <%} %>
                                    <td>
                                        <img id="show<%=WebLogo.ClientID %>" src="<%=WebLogo.Text%>" height="30" style="border: 1px solid #f1f1f1;" onerror="this.src='../../sysimg/nopic.gif'" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px"><strong>生成的首页：</strong></td>
                        <td class="righttd">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:RadioButtonList ID="IndexFile" runat="server" RepeatDirection="Horizontal"
                                            BorderStyle="None" RepeatLayout="Flow">
                                            <asp:ListItem>index</asp:ListItem>
                                            <asp:ListItem>default</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="FsoIndexExt" runat="server">
                                            <asp:ListItem>.aspx</asp:ListItem>
                                            <asp:ListItem>.asp</asp:ListItem>
                                            <asp:ListItem>.htm</asp:ListItem>
                                            <asp:ListItem>.html</asp:ListItem>
                                            <asp:ListItem>.shtm</asp:ListItem>
                                            <asp:ListItem>.shtml</asp:ListItem>
                                        </asp:DropDownList>
                                        <span class="tips">网站正式运营后，建议设置为“index.html”。 </span>
                                    </td>
                                </tr>
                            </table>

                            <div id="fsoIndexTime" <%=this.FsoIndexExt.SelectedValue == ".aspx" ? " style='display:none'" : "" %>>
                                间隔<asp:TextBox ID="TxtAutoCreateIndexTime" runat="server" Style="text-align: center" CssClass="textbox" Width="60px" />分钟自动生成首页                                                         
                                                     <span class="tips">当设置首页启用生成静态HTML功能时，这里可以设置首页每隔一段时间自动生成，不启用自动生成请输入“0”。</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>专题是否启用生成：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="SpecialFsoTF" runat="server" RepeatDirection="Horizontal" BorderStyle="None" RepeatLayout="Flow">
                                <asp:ListItem Value="1">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>




                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>动态页面缓存时间：</strong></td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtCacheTime" runat="server" Style="text-align: center" CssClass="textbox" Width="60px" />分钟                                                          
                                                          <span class="tips">网站调试阶段请将此值设置为“0”，以便更好的调试前台的模板。网站正式运行后，建议设置一个数值，如10分钟，您将会发现网站的性能提高相当明显。</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>URL是否启用加推广人UID：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbIsUrlUid" runat="server" RepeatDirection="Horizontal" BorderStyle="None" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected="True">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">提示：如果有开启分销功能，建议设置启用，否则请不要开启。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>默认允许上传的文件大小：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="DefaultUpFileSize" runat="server" Width="60px"></asp:TextBox>KB &nbsp;
                                                         &nbsp; &nbsp; &nbsp;<span class="tips">提示：1 KB=1024 Byte, 1 MB=1024 KB</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div><strong>默认允许上传文件类型：</strong></div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="DefaultUpFileType" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">多个扩展名用"|"格开</span></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>站长姓名：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox Width="350" CssClass="textbox" ID="WebMaster" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>登录后台主界面官方信息显示：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:CheckBoxList ID="OfficialInfo" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1">显示官方版本号</asp:ListItem>
                                <asp:ListItem Value="2">显示官方新闻公告</asp:ListItem>
                                <asp:ListItem Value="3">显示右下角消息提示</asp:ListItem>
                                <asp:ListItem Value="4">开启自动检测新版本</asp:ListItem>
                            </asp:CheckBoxList></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>官方授权的唯一系列号：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="SiteKey" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">25位的产品授权系列号，免费版本无需填写。</span></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>网站的版权信息：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox textarea" Width="350" Height="100" ID="CopyRight" runat="server" TextMode="MultiLine" Columns="50" Rows="4"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.CopyRight.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.CopyRight.ClientID %>');"></a>
                            <br />
                            <span class="tips">用于显示网站版权、联系方式等，支持html语法。</span>
                        </td>
                    </tr>
                </table>

            </div>

            <div class="tab-page" id="3gtab">
                <h2 class="tab">移动端设置</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("3gtab"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>开启移动版功能：</b></td>
                        <td class="righttd">&nbsp;<asp:RadioButtonList ID="Rdb3GEnable" runat="server" RepeatDirection="Vertical" RepeatLayout="Table">
                            <asp:ListItem Value="0">不开启(移动端也只能浏览PC)</asp:ListItem>
                            <asp:ListItem Value="1" Selected="True">开启移动版（支持手机端切换到PC版）</asp:ListItem>
                            <asp:ListItem Value="2">开启移动版（不支持手机端切换到PC版）</asp:ListItem>
                            <asp:ListItem Value="3">开启响应式模板</asp:ListItem>
                        </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tbody id="G3" runat="server">
                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>微信公众号配置：</b></td>
                            <td class="righttd">
                                <table>
                                    <tr>
                                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>首次关注公众号自动创建账号：</b></td>
                                        <td class="righttd">&nbsp;<asp:RadioButtonList ID="RdbWeixinAutoCreateUser" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                            <asp:ListItem Value="1" Selected="True">开启</asp:ListItem>
                                            <asp:ListItem Value="0">不开启</asp:ListItem>
                                        </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>通过公众号访问网站自动登录：</b></td>
                                        <td class="righttd">&nbsp;<asp:RadioButtonList ID="RdbWeixinAutoLogin" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                            <asp:ListItem Value="1" Selected="True">开启</asp:ListItem>
                                            <asp:ListItem Value="0">不开启</asp:ListItem>
                                        </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>微信自动登录强制绑定用户：</b></td>
                                        <td class="righttd">&nbsp;<asp:RadioButtonList ID="RdbWeixinLoginBindUser" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                            <asp:ListItem Value="1" Selected="True">开启</asp:ListItem>
                                            <asp:ListItem Value="0">不开启</asp:ListItem>
                                        </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <%if (BaseFun.CheckFieldExists("KS_User", "IsBindGZ")) { %>
                                    <tr>
                                        <td height="30" align="right" class="lefttd" style="width: 198px"><b>是否强制关注微信公号(仅限微信登陆才可以使用)：</b></td>
                                        <td class="righttd">&nbsp;<asp:RadioButtonList ID="RdbWeiXinGZBind" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                            <asp:ListItem Value="0" Selected="True">关闭</asp:ListItem>
                                            <asp:ListItem Value="1">开启</asp:ListItem>
                                        </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="right" class="lefttd" style="width: 198px"><strong>公众号关注图片：</strong></td>
                                        <td class="righttd">
                                            <table cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox CssClass="textbox" Width="350" ID="WeiXinGZPhoto" runat="server"></asp:TextBox>&nbsp;
                                                    <input type="button" class="button" onclick="SelectFiles('<%=this.WeiXinGZPhoto.ClientID %>',0);" value="选择图片..."></td>
                                                    <%if (Kesion.BLL.KSSecurity.CheckCommonUploadPower()) { %>
                                                    <td style="padding-left: 4px; padding-top: 15px; vertical-align: middle; *padding-top: 12px;"><%=Kesion.APPCode.UploadAPI.EchoUpload("classpic", this.WeiXinGZPhoto.ClientID, 150) %></td>
                                                    <%} %>
                                                    <td>
                                                        <img id="show<%=WebLogo.ClientID %>" src="<%=WeiXinGZPhoto.Text%>" height="30" style="border: 1px solid #f1f1f1;" onerror="this.src='../../sysimg/nopic.gif'" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <%} %>
                                </table>
                            </td>
                        </tr>

                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机版站点名称：</b></td>
                            <td class="righttd">&nbsp;<asp:TextBox CssClass="textbox" Width="350" ID="Txt3GSiteName" runat="server"></asp:TextBox>
                            </td>
                        </tr>

                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机版站点Logo：</b></td>
                            <td class="righttd">&nbsp;<asp:TextBox CssClass="textbox" Width="350" ID="Txt3GLogo" runat="server"></asp:TextBox>&nbsp;
                         <input type="button" class="button" onclick="SelectFiles('<%=this.Txt3GLogo.ClientID %>    ',0);" value="选择Logo...">
                            </td>
                        </tr>

                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机版底部版权：</b></td>
                            <td class="righttd">&nbsp;<asp:TextBox CssClass="textbox textarea" Height="100" Width="350" ID="Txt3GCopyRight" runat="server" TextMode="MultiLine" Columns="40" Rows="4"></asp:TextBox>
                                <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.Txt3GCopyRight.ClientID %>');"></a>
                                <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.Txt3GCopyRight.ClientID %>');"></a>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机版允许会员注册：</b></td>
                            <td class="righttd">&nbsp;<asp:RadioButtonList ID="Rdb3GUserRegEnable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected="True">允许</asp:ListItem>
                                <asp:ListItem Value="0">不允许</asp:ListItem>
                            </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机版在线留言：</b></td>
                            <td class="righttd">
                                <b>留言内容是否审核</b>
                                &nbsp;<asp:RadioButtonList ID="RbMessageVerify" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Value="0">是</asp:ListItem>
                                    <asp:ListItem Value="1" Selected="True">否</asp:ListItem>
                                </asp:RadioButtonList>
                                <div class="hr_line"></div>
                                <b>是否允许游客留言：</b>
                                <asp:RadioButtonList ID="RdbMessageVisitor" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Selected="True" Value="1">允许</asp:ListItem>
                                    <asp:ListItem Value="0">不允许</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" class="lefttd" style="width: 198px"><b>手机短信长度限制/每条：</b></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" Width="60px" ID="Txt3GcontentLengh" Text="60" runat="server"></asp:TextBox></td>
                        </tr>
                    </tbody>
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px">安卓APP版本信息</td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtAppVersion" runat="server" Width="120"></asp:TextBox><span class="tips">格式数字类型 例：5</span></td>
                    </tr>
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px">安卓APP下载位置</td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtAppUrl" runat="server"></asp:TextBox>
                            <input type="button" class="button" onclick="SelectFiles('<%=TxtAppUrl.ClientID%>', 0);" value="选择文件" />
                        </td>
                    </tr>
                </table>
            </div>

            <div class="tab-page" id="tab1">
                <h2 class="tab">SEO选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab1"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td height="30" align="right" class="lefttd" style="width: 198px">
                            <b>站点标题：</b></td>
                        <td class="righttd">
                            <asp:TextBox Width="450" Height="50" CssClass="textbox textarea" ID="SiteTitle" runat="server" Columns="50" Rows="3" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="SiteTitle"
                                ErrorMessage="RequiredFieldValidator" Display="Dynamic">请填写站点标题</asp:RequiredFieldValidator>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.SiteTitle.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.SiteTitle.ClientID %>');"></a>
                            <br />
                            <span class="tips">网页标题通常是搜索引擎关注的重点,模板里可以用标签{$GetSiteTitle}进行调用。</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px"><strong>网站META关键词： </strong></td>
                        <td class="righttd">
                            <asp:TextBox Width="450" Height="100" CssClass="textbox textarea" ID="TxtMetaKeywords" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtMetaKeywords.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtMetaKeywords.ClientID %>');"></a>
                            <br />
                            <span class="tips">针对搜索引擎设置的网页关键词,多个关键词请用,号分隔。模板里可以用标签{$GetMetaKeyWords}进行调用。
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>网站META网页描述：</strong>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox Width="450" Height="100" CssClass="textbox textarea" ID="TxtMetaDescript" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtMetaDescript.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtMetaDescript.ClientID %>');"></a>
                            <br />
                            <span class="tips">针对搜索引擎设置的网页描述,多个描述请用,号分隔。模板里可以用标签{$GetMetaDescript}进行调用。</span>
                        </td>
                    </tr>
                </table>

            </div>

            <div class="tab-page" id="tab2">
                <h2 class="tab">模板绑定</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab2"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>网站首页模板：</b></td>
                        <td class="righttd">&nbsp;<asp:TextBox CssClass="textbox" ID="IndexTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.IndexTemplate.ClientID%>    ');" />
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>专题首页模板：</b></td>
                        <td class="righttd">&nbsp;<asp:TextBox CssClass="textbox" ID="SpecialIndexTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.SpecialIndexTemplate.ClientID%>    ');" />
                            <a href="<%=BasicField.GetRewriteUrl("specialindex") %>" target="_blank"><font color="green">(special/index.aspx)</font></a></td>
                    </tr>


                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>全站搜索模板：</strong></td>
                        <td class="righttd" style="height: 30px">&nbsp;<asp:TextBox CssClass="textbox" ID="SearchTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.SearchTemplate.ClientID%>    ');" />
                            <a href="<%=BasicField.GetRewriteUrl("search") %>?key=kesion" target="_blank"><font color="green">(plus/Search.aspx)</font></a></td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员相关模板：</strong></td>
                        <td class="righttd">
                            <span style="display: none">&nbsp;<asp:TextBox CssClass="textbox" ID="UserIndexTemplate" runat="server" Width="350"></asp:TextBox>
                                <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.UserIndexTemplate.ClientID%>    ');" />
                            </span>
                            <span class="tips">如需修改会员中心首页模板，请直接用编辑工具打开“/Config/Control/Basic/Main.ascx”进行修改。</span>

                            <div class="tips">
                                注册页面模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/reg.html”。
                                 <a href="<%=BasicField.GetRewriteUrl("reg") %>" target="_blank"><font color="green">(<%=BasicField.GetRewriteUrl("reg") %>)</font></a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>公告相关模板：</strong>
                        </td>
                        <td class="righttd">
                            <div class="tips">
                                公告列表模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/announcelist.html”。
                                <a href="<%=BasicField.GetRewriteUrl("announce") %>" target="_blank"><font color="green">(/Plus/Plus.Announce/Announce.aspx)</font></a>
                            </div>
                            <div class="tips">
                                显示公告模板(普通）：“/<%=MyCache.GetCacheConfig(13) %>/Common/announce.html”。
                                <a href="<%=BasicField.GetRewriteUrl("announce") %>?newest=1" target="_blank"><font color="green">(/Plus/Plus.Announce/Announce.aspx?newest=1)</font></a>
                            </div>
                            <div class="tips">
                                显示公告模板(弹窗）：“/<%=MyCache.GetCacheConfig(13) %>/Common/openannounce.html”。
                                <a href="<%=BasicField.GetRewriteUrl("announce") %>?showtype=1&newest=1" target="_blank"><font color="green">(/Plus/Plus.Announce/Announce.aspx?showtype=1&newest=1)</font></a>
                            </div>

                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>友情链接相关模板：</strong>
                        </td>
                        <td class="righttd">
                            <div class="tips">
                                友情链接首页模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/linkindex.html”。
                                <a href="<%=BasicField.GetRewriteUrl("link") %>" target="_blank"><font color="green">(/plus/Plus.Link/index.aspx)</font></a>
                            </div>
                            <div class="tips">
                                友情链接申请模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/linkapply.html”。
                                <a href="<%=BasicField.GetRewriteUrl("linkapply") %>" target="_blank"><font color="green">(/plus/Plus.Link/apply.aspx)</font></a>
                            </div>

                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>关键字Tags模板：</strong>
                        </td>
                        <td class="righttd">
                            <div class="tips">
                                Tags首页模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/tags.html”。
                                <a href="<%=BasicField.GetRewriteUrl("tags") %>" target="_blank"><font color="green">(<%=BasicField.GetRewriteUrl("tags") %>)</font></a>
                            </div>
                            <div class="tips">
                                Tags列表模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/tagslist.html”。
                                <a href="<%=BasicField.GetRewriteUrl("tags") %>?id=1" target="_blank"><font color="green">(<%=BasicField.GetRewriteUrl("tags") %>)</font></a>
                            </div>
                            <div class="tips">
                                网站地图模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/map.html”。
                                <a href="<%=BasicField.GetRewriteUrl("map") %>" target="_blank"><font color="green">(<%=BasicField.GetRewriteUrl("map") %>)</font></a>
                            </div>
                            <div class="tips">
                                Dig排行列表模板：“/<%=MyCache.GetCacheConfig(13) %>/Common/dig.html”。
                                <a href="<%=BasicField.GetRewriteUrl("dig") %>" target="_blank"><font color="green">(<%=BasicField.GetRewriteUrl("dig") %>)</font></a>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>PK模板：</strong>
                        </td>
                        <td class="righttd">PK首页模板
                                &nbsp;&nbsp;&nbsp;<asp:TextBox CssClass="textbox" ID="PKIndexTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.PKIndexTemplate.ClientID%>    ');" />
                            <a href="../../Plus/Plus.PK/Index.aspx" target="_blank"><font color="green">(/Plus/Plus.PK/Index.aspx)</font></a>
                            <br />
                            <br />
                            PK内容页模板
                                &nbsp;<asp:TextBox CssClass="textbox" ID="PKContentTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.PKContentTemplate.ClientID%>    ');" />
                            <a href="../../Plus/Plus.PK/More.aspx" target="_blank"><font color="green">(/Plus/Plus.PK/More.aspx)</font></a>
                            <br />
                            <br />
                            PK更多页模板
                                &nbsp;<asp:TextBox CssClass="textbox" ID="PKMoreTemplate" runat="server" Width="350"></asp:TextBox>
                            <input type="button" class="button" onmouseover="this.className='button_on';" onmouseout="this.className='button';" value="选择模板..." onclick="SelectTemplate('<%=this.PKMoreTemplate.ClientID%>    ');" />
                            <a href="../../Plus/Plus.PK/More.aspx" target="_blank"><font color="green">(/Plus/Plus.PK/More.aspx)</font></a>
                            <br />
                            <br />

                        </td>
                    </tr>
                </table>

            </div>

            <div class="tab-page" id="tab3">
                <h2 class="tab">会员选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab3"));
                </script>

                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>本站是否开启会员系统：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="UserSystemTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected="True">开启</asp:ListItem>
                                <asp:ListItem Value="0">关闭</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>是否允许新会员注册：</b></td>
                        <td class="righttd">&nbsp;
                    <asp:RadioButtonList ID="UserAllowRegTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:RadioButtonList></td>
                    </tr>
                    <tr style="display: none">
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>是否开启异地登录提醒：</b></td>
                        <td class="righttd">&nbsp;
                            <asp:RadioButtonList ID="LoginAlert" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <div class="tips">Tips:开启异地登录提醒，系统登录卡顿属于正常现象。</div>
                        </td>

                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>新会员注册服务条款和声明：</strong>
                                <div class="tips">
                                    <div align="center">
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 标签说明：
                                    </div>
                                    {$GetSiteName}：网站名称<br />
                                    {$GetSiteUrl}：网站URL<br />
                                    {$GetWebmaster}：站长<br />
                                    {$GetWebmasterEmail}：站长信箱
                                </div>
                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox textarea" Height="120" Width="750" ID="UserLience" runat="server" Columns="60" Rows="6" TextMode="MultiLine"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.UserLience.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.UserLience.ClientID %>');"></a>
                        </td>
                    </tr>






                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员注册IP限制：</strong></td>
                        <td class="righttd">每个IP每天只能注册
                       <asp:TextBox ID="TxtIPNum" Text="0" runat="server" CssClass="textbox" Style="text-align: center; width: 50px;" />
                            个账号
                       <span class="tips">Tips:不限制请输入“0”。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员名称构成：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbUserNameType" runat="server" RepeatLayout="Flow">
                                <asp:ListItem Value="0" Selected="True">普通用户名</asp:ListItem>
                                <asp:ListItem Value="1">仅限手机号(快速注册模式)</asp:ListItem>
                                <asp:ListItem Value="2">仅限电子Email(快速注册模式)</asp:ListItem>
                                <asp:ListItem Value="3">手机号及电子Email均可(快速注册模式)</asp:ListItem>
                            </asp:RadioButtonList>

                            <div class="tips">Tips:会员名称构成格式一旦设置，不建议修改。</div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>注册启用选项：</strong></td>
                        <td class="righttd" style="height: 30px">
                            <asp:CheckBoxList ID="CkbEnabledRegField" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" RepeatColumns="8">
                                <asp:ListItem Value="group">启用用户组注册</asp:ListItem>
                                <asp:ListItem Value="detail">开启详细注册选项</asp:ListItem>
                                <asp:ListItem Value="email">启用邮箱字段</asp:ListItem>
                                <asp:ListItem Value="mobile">启用手机字段</asp:ListItem>
                                <asp:ListItem Value="question">启用取回密码问题选项</asp:ListItem>
                                <asp:ListItem Value="repassword">启用确认密码</asp:ListItem>
                                <asp:ListItem Value="area">启用选择地区</asp:ListItem>
                            </asp:CheckBoxList>
                            <div class="tips">Tips:除“启用用户组注册”外，其它的仅会员名称构成方式为“普通用户名”才有效。</div>
                        </td>
                    </tr>

                    <tbody id="showregbyusername">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>会员登录方式：</strong></td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="RdbLoginType" runat="server" RepeatLayout="Flow">
                                    <asp:ListItem Value="0" Selected="True">普通用户名/UID(推荐)</asp:ListItem>
                                    <asp:ListItem Value="1">仅限手机号（仅限会员名称构成方式为手机号）</asp:ListItem>
                                    <asp:ListItem Value="2">仅限电子Email（仅限会员名称构成方式为Email）</asp:ListItem>
                                    <asp:ListItem Value="3">手机号及电子Email均可（仅限会员名称构成方式为手机号或是Email）</asp:ListItem>
                                    <asp:ListItem Value="4">普通用户名/UID、手机号及电子Email均可(不推荐)</asp:ListItem>
                                </asp:RadioButtonList>
                                <div class="tips">Tips:会员登录方式一旦设置，不建议修改。</div>
                            </td>
                        </tr>


                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>用户名限制：</strong></td>
                            <td class="righttd">用户名最少<asp:TextBox CssClass="textbox" ID="UserMinChar" runat="server" Width="46px"></asp:TextBox>个字符
                       最多<asp:TextBox CssClass="textbox" ID="UserMaxChar" runat="server" Width="45px"></asp:TextBox>个字符</td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>新用户注册用户名是否允许用纯数字：</strong></td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="RdbRegUserNameHasNum" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0" Selected="True">不允许</asp:ListItem>
                                    <asp:ListItem Value="1">允许</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>新用户注册用户名是否允许含有中文：</strong></td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="RdbRegUserNameHasCN" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0" Selected="True">不允许</asp:ListItem>
                                    <asp:ListItem Value="1">允许</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>禁止注册的用户名列表：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox textarea" ID="NoAllowRegUserName" Style="width: 650px; height: 60px;" runat="server" Columns="60" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                <a class="textarea_min" href="javascript:zoomtextarea(-3,'<%=this.NoAllowRegUserName.ClientID %>');"></a>
                                <a class="textarea_max" href="javascript:zoomtextarea(3,'<%=this.NoAllowRegUserName.ClientID %>');"></a>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>每个Email是否允许注册多次：</strong></td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="UserEmailMutiRegTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:RadioButtonList>
                                <span class="tips">Tips:登录方式启用Email登录时，建议设置为“否”。</span>

                            </td>
                        </tr>

                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>每个手机号是否允许注册多次：</strong></td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="RdbMobileMutiRegTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:RadioButtonList>

                                <span class="tips">Tips:登录方式启用手机号登录时，建议设置为“否”。</span>
                            </td>
                        </tr>
                    </tbody>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员帐号登录限制：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="UserMutiLoginTF" runat="server" RepeatLayout="Flow">
                                <asp:ListItem Value="0">不限制</asp:ListItem>
                                <asp:ListItem Value="1" Selected="True">同个会员账号只能在一个PC端及一个移动端登录</asp:ListItem>
                                <asp:ListItem Value="2" Selected="True">无论PC端还是移动端同个账号都只能一个地方登录（推荐）</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px;">
                            <strong>会员登录奖励的设置：</strong></td>
                        <td class="righttd" style="height: 30px">会员每隔<asp:TextBox CssClass="textbox" ID="UserPerMinLogin" runat="server" Width="43px"></asp:TextBox>分钟后 重新登录奖励<asp:TextBox CssClass="textbox"
                            ID="UserPerMinAddScore" runat="server" Width="36px"></asp:TextBox>分积分
                    <span class="tips">提示：建议设置1440分钟(一天)，设置为“0”将不启用登录赠送积分功能。</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <div>
                                <strong>注册成功发送一封邮件给新会员：</strong>
                                <div class="tips">
                                    标签：
                               {$GetSiteName}：网站名称<br />
                                    {$GetSiteUrl}：网站URL<br />
                                    {$GetUserName}：用户名<br />
                                    {$GetPassWord}：登录密码<br />
                                    {$GetDateTime}：当前时间<br />
                                </div>

                            </div>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox textarea" Height="120" Width="650" ID="TxtRegSuccMail" runat="server" Columns="60" Rows="6" TextMode="MultiLine"></asp:TextBox>
                            <a class="textarea_min" href="javascript:zoomtextarea(-5,'<%=this.TxtRegSuccMail.ClientID %>');"></a>
                            <a class="textarea_max" href="javascript:zoomtextarea(5,'<%=this.TxtRegSuccMail.ClientID %>');"></a>
                            <br />
                            Tips:内容留空将不发送！！！
                        </td>
                    </tr>


                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>新会员成功注册赠送：</strong></td>
                        <td class="righttd">赠送资金
                            <asp:TextBox CssClass="textbox" ID="UserRegAddMoney" runat="server" Width="55px"></asp:TextBox>元
                    <%--   赠送积分：<asp:TextBox CssClass="textbox" ID="UserRegAddScore" Text="0" runat="server" Width="55px"></asp:TextBox>分--%>
                       赠送点券：<asp:TextBox CssClass="textbox" ID="UserRegAddPoint" Text="0" runat="server" Width="55px"></asp:TextBox>点
                       <span class="tips">Tips:设置为0时不赠送</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>推荐用户注册给推荐人：</strong></td>
                        <td class="righttd">赠送资金
                            <asp:TextBox CssClass="textbox" ID="TxtTJMoney" Text="0" runat="server" Width="55px" Style="text-align: center"></asp:TextBox>元
                     <%--  赠送积分：<asp:TextBox CssClass="textbox" ID="TxtTJScore" Text="0" runat="server" Width="55px" Style="text-align: center"></asp:TextBox>分--%>
                       赠送点券：<asp:TextBox CssClass="textbox" ID="TxtTJPoint" Text="0" runat="server" Width="55px" Style="text-align: center"></asp:TextBox>点
                       <span class="tips">Tips:设置为0时不赠送</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员积分与点券的兑换比率：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="ScoreToPointRate" runat="server" Width="55px"></asp:TextBox>分积分可兑换 <font
                                color="red">1</font>点点券 <span class="tips">（设置为0则不允许积分兑换点券）</span></td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员积分与有效期的兑换比率：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="ScoreToEdaysRate" runat="server" Width="55px"></asp:TextBox>分积分可兑换 <font
                                color="red">1</font>天有效期</td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员资金与点券的兑换比率：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="MoneyToPointRate" runat="server" Width="55px"></asp:TextBox>元人民币可兑换 <font
                                color="red">1</font>点点券</td>
                    </tr>
                    <tr style="display: none">
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>会员资金与有效期的兑换比率：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="MoneyToEdaysRate" runat="server" Width="55px"></asp:TextBox>元人民币可兑换 <font
                                color="red">1</font>天有效期</td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>启用点券功能：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbIsPoint" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tbody id="showpoint">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>点券的名称：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="PointName" runat="server" Width="55px"></asp:TextBox>
                                <span class="tips">例如：科汛币、点券、金币。tips：一个点券相当于一元人民币,点券可以用于查看收费文档及考试等。 </span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" style="width: 198px; height: 30px">
                                <strong>点券的单位：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="PointUnit" runat="server" Width="55px"></asp:TextBox>
                                <span class="tips">例如：点、个。</span>
                            </td>
                        </tr>
                    </tbody>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>启用积分功能：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbIsScore" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tbody id="showscore">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>积分的名称：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="ScoreName" runat="server" Width="55px" Text="积分"></asp:TextBox>
                                <span class="tips">例如：学分,积分。 </span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" style="width: 198px; height: 30px">
                                <strong>积分的单位：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="ScoreUnit" runat="server" Width="55px" Text="分"></asp:TextBox>
                                <span class="tips">例如：分。</span>
                            </td>
                        </tr>
                    </tbody>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>用户名隐藏显示处理：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbHidUserName" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果选择“是”，则会员在评论等地方发表时显示的用户名将是类似“aa***c"的格式；</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" style="width: 198px; height: 30px">
                            <strong>未实名认证是否启用手机绑定：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbBingMobile" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">如果选择“是”，则会员在进入会员中心的时候就提示请先绑定手机；</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否按注册手机号分配注册地区：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="IsPhoneSearch" runat="server" onclick="UpdatePhoneSearch()" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <div class="tips">通过第三方接口查询学员手机号所在地</div>

                        </td>
                    </tr>

                    <tr id="PhoneSearch">
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>手机号码归属地查询：</b></td>
                        <td class="righttd">
                            <div class="message" style="line-height: 40px;">
                                接口类型：
                    <asp:DropDownList ID="PhoneSearchType" runat="server">
                        <asp:ListItem Value="0">聚合数据</asp:ListItem>
                    </asp:DropDownList><br />
                                KEY：
                  <asp:TextBox CssClass="textbox" ID="PhoneSearchKey" runat="server" Width="250px"></asp:TextBox>
                                <span class="tips">如果还没有授权KEY，可以<a href="https://www.juhe.cn/docs/api/id/11" target="_blank" style="color: red;">点此申请</a>。</span>

                            </div>
                        </td>
                    </tr>

                </table>

            </div>

            <div class="tab-page" id="tab4">
                <h2 class="tab">缩略图水印</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab4"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>生成缩略图设置：</strong></td>
                        <td class="righttd">宽度
                            <asp:TextBox CssClass="textbox" ID="ThumbsWidth" runat="server" Width="54px"></asp:TextBox>像素 &nbsp;<span class="tips">设为0时，将以高度为准按比例缩小。</span>
                            <br />
                            <br />
                            高度
                            <asp:TextBox CssClass="textbox" ID="ThumbsHeight" runat="server" Width="53px"></asp:TextBox>像素 &nbsp;<span class="tips">设为0时，将以宽度为准按比例缩小。</span>

                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>水印类型：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="WaterMarkType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected="True">文字</asp:ListItem>
                                <asp:ListItem Value="1">图片</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tbody id="watermarktxtarea" runat="server">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>添加水印的文字内容：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="WaterMarkTxt" runat="server" Columns="5" Width="350"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>添加水印的文字字体：</strong></td>
                            <td class="righttd">
                                <asp:DropDownList ID="WaterMarkFontName" runat="server">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" style="width: 198px; height: 30px;">
                                <strong>添加水印的文字大小：</strong></td>
                            <td class="righttd" style="height: 30px">
                                <asp:TextBox CssClass="textbox" ID="WaterMarkFontSize" runat="server" Width="30px"></asp:TextBox>像素</td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>添加水印的文字颜色：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="WaterMarkFontColor" runat="server" Width="73px"></asp:TextBox>
                                <img border="0" id="MarkTranspColorShow" src="../../admin/images/<%=string.IsNullOrEmpty(WaterMarkFontColor.Text)?"RectNoColor.gif":"rect.gif" %>" style="cursor: pointer; background-color: <%=WaterMarkFontColor.Text %>;" onclick="Getcolor('MarkTranspColorShow','MarkTranspColorShow|<%=WaterMarkFontColor.ClientID %>');" title="选取颜色">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>文字是否样式：</strong></td>
                            <td class="righttd">
                                <asp:DropDownList ID="WaterMarkFontStyle" runat="server">
                                    <asp:ListItem Value="Bold">加粗</asp:ListItem>
                                    <asp:ListItem Value="Italic">倾斜</asp:ListItem>
                                    <asp:ListItem Value="Regular" Selected="True">常规</asp:ListItem>
                                    <asp:ListItem Value="Strikeout">中间有直线通过</asp:ListItem>
                                    <asp:ListItem Value="Underline">带下划线</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>文字的阴影颜色：</strong></td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="WaterMarkFontBgColor" runat="server" Width="73px"></asp:TextBox>
                                <img border="0" id="Img1" src="../../admin/images/<%=string.IsNullOrEmpty(WaterMarkFontBgColor.Text)?"RectNoColor.gif":"rect.gif" %>" style="cursor: pointer; background-color: <%=WaterMarkFontBgColor.Text %>;" onclick="Getcolor('Img1','Img1|<%=WaterMarkFontBgColor.ClientID %>');" title="选取颜色">
                            </td>
                        </tr>

                    </tbody>
                    <tbody id="watermarkpicarea" style="display: none" runat="server">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>水印图片文件名：</strong><br />
                                这里填写图片地址的相对路径
                            </td>
                            <td class="righttd">
                                <table cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <asp:TextBox CssClass="textbox" ID="WaterMarkPic" Width="350" runat="server"></asp:TextBox>&nbsp;<input type="button" class="button" onclick="SelectFiles('<%=this.WaterMarkPic.ClientID %>    ',0);" value="选择Logo..."></td>
                                        <%if (Kesion.BLL.KSSecurity.CheckCommonUploadPower())
                                            { %>
                                        <td style="padding-left: 4px; padding-top: 12px;"><%=Kesion.APPCode.UploadAPI.EchoUpload("classpic",this.WaterMarkPic.ClientID,150) %></td>
                                        <%} %>
                                        <td>
                                            <img id="show<%=WaterMarkPic.ClientID %>" src="<%=WaterMarkPic.Text%>" height="30" style="border: 1px solid #f1f1f1;" onerror="this.src='../../sysimg/nopic.gif'" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>图片水印透明度：</strong><br />
                                取值范围1--10 (10为不透明)
                            </td>
                            <td class="righttd">
                                <asp:TextBox CssClass="textbox" ID="WaterMarkTransParency" runat="server" Width="52px"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>水印坐标位置：</strong></td>
                        <td class="righttd">
                            <style>
                                .waterback {
                                    background: #f1f1f1;
                                    border: 1px solid #ccc;
                                }
                            </style>
                            <asp:Literal ID="position" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>缩略图加水印：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbThumbAddWaterMark" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected="True">不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                </table>


            </div>

            <div class="tab-page" id="tab5">
                <h2 class="tab">邮件选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab5"));
                </script>

                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>SMTP服务器：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="SmtpServer" Width="350" runat="server"></asp:TextBox>
                            <span class="tips">必须正确填写，如:smtp.163.com。</span>

                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>SMTP端口号：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="SmtpPort" runat="server" Width="50px"></asp:TextBox>
                            <span class="tips">端口号，默认为25。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>发件人邮箱：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="MailFrom" Width="350" runat="server"></asp:TextBox>
                            <span class="tips">此邮件将显示为对方的发件人邮件。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>发件用户名：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="MailUserName" Width="350" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>登录密码：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="MailPassword" Width="350" TextMode="Password" runat="server"></asp:TextBox>
                            <span class="tips">如不修改请留空。</span></td>
                    </tr>
                </table>

            </div>

            <div class="tab-page" id="tab6">
                <h2 class="tab">其它选项</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab6"));
                </script>

                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px; vertical-align: top;">
                            <strong style="line-height: 36px;">模板总目录：</strong>
                        </td>
                        <td class="righttd">PC模板总目录&nbsp;&nbsp;
                            <asp:TextBox CssClass="textbox" ID="TemplateDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">后面不要带"/"。</span><br />
                            <br />
                            手机模板总目录
                            <asp:TextBox CssClass="textbox" ID="TxtTemplate01" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">后面不要带"/"。</span><br />
                            <br />
                            个人空间模板总目录
                            <asp:TextBox CssClass="textbox" ID="TxtTemplate03" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">后面不要带"/"。</span><br />
                            <br />
                            <div <%=(BaseFun.CheckModulePower("school") && System.IO.Directory.Exists(Utils.GetMapPath("/admin/enterprise/")) == true)?"":" style='display:none'" %>>
                                机构模板总目录
                                <asp:TextBox CssClass="textbox" ID="TxtTemplate02" runat="server" Width="350"></asp:TextBox>
                                <span class="tips">后面不要带"/"。</span>
                            </div>
                            <br />
                            <br />
                            <div <%=((BaseFun.CheckModulePower("ods")||BaseFun.CheckModulePower("coursefx")) && System.IO.Directory.Exists(Utils.GetMapPath("/admin/agent/")) == true)?"":" style='display:none'" %>>
                                微店模板总目录
                                <asp:TextBox CssClass="textbox" ID="TxtTemplate04" runat="server" Width="350"></asp:TextBox>
                                <span class="tips">后面不要带"/"。</span>
                            </div>
                            <br />
                            <br />
                            <div <%=BaseFun.CheckModulePower("edu")&&Utils.GetSysInfo("//sysinfo/businessver").ToString().ToLower() != "edu0"?"":" style='display:none'" %>>
                                班级模板总目录
                                <asp:TextBox CssClass="textbox" ID="TxtTemplate05" runat="server" Width="350"></asp:TextBox>
                                <span class="tips">后面不要带"/"。</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>上传总目录：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="UpFileDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">后面不要带"/",不建议经常更改。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>自定义表单生成目录：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="FormFsoDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">支持多级，但后面不能带"/" 如 form,form/<%=DateTime.Now.Year.ToString() %> 等</span></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>模板样式及JS文件的HASH版本号：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="ADFsoDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">如：20181101。模板里用标签{$GetHash}调用</span></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>生成JS目录：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="JSFsoDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">支持多级，但后面不能带"/" 如 JS,JS/<%=DateTime.Now.Year.ToString() %> 等</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>生成专题目录：</strong></td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="SpecialFsoDir" runat="server" Width="350"></asp:TextBox>
                            <span class="tips">支持多级，但后面不能带"/" 如 Special,Html/Special 等</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>上传文件存放目录格式：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbUploadDirType" runat="server" RepeatLayout="Flow">
                                <asp:ListItem Value="0">总上传目录/年-月/管理员ID/</asp:ListItem>
                                <asp:ListItem Value="1">总上传目录/年-月-日/管理员ID/</asp:ListItem>
                                <asp:ListItem Value="2">总上传目录/年-月/</asp:ListItem>
                                <asp:ListItem Value="3">总上传目录/年-月-日/</asp:ListItem>
                                <asp:ListItem Value="4">总上传目录/管理员ID/</asp:ListItem>
                                <asp:ListItem Value="5">总上传目录/年/</asp:ListItem>
                                <asp:ListItem Value="6">总上传目录/年/管理员ID/</asp:ListItem>
                                <asp:ListItem Value="7">总上传目录/管理员ID/年-月/</asp:ListItem>
                                <asp:ListItem Value="8">总上传目录/管理员ID/年-月-日/</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>全站搜索设置：</b></td>
                        <td class="righttd">
                            <strong>启用模糊搜索：</strong>
                            <asp:RadioButtonList ID="RdbSearchType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected="True">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <br />
                            <span class="tips">Tips: 启用模糊搜索时，比如搜索“xp 2003”，包含xp和2003两者或是只包含其中一个，都能搜索出来,但会加大系统资源的开销。
                            </span>
                            <br />
                            <strong>搜索匹配字段：</strong>
                            <asp:CheckBoxList ID="CkbSearchFiled" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="Title" Selected="True">标题(Title)</asp:ListItem>
                                <asp:ListItem Value="KeyTags">关键字(KeyTags)</asp:ListItem>
                                <asp:ListItem Value="Intro">简要介绍(Intro)</asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>

                    <tr>
                        <td class="lefttd" height="30" align="right" style="width: 198px"><b>货币设置：</b></td>
                        <td class="righttd">保留小数位数
            <asp:TextBox Style="text-align: center" CssClass="textbox" ID="TxtShopPriceBit" runat="server" Width="50px"></asp:TextBox>
                            位
                   
                    <span class="tips">建议设置为“2”，即保留两位小数位。前台标签调用时，则以标签里设置的位数为准。</span>
                            <br />
                            <br />
                            货币符号
            <asp:TextBox Style="text-align: center" CssClass="textbox" ID="TxtCurrencySymbol" runat="server" Width="50px"></asp:TextBox>
                            如：¥,$等。
                    货币单位名称
            <asp:TextBox Style="text-align: center" CssClass="textbox" ID="TxtCurrencyUnit" runat="server" Width="50px"></asp:TextBox>
                            如：元，美元，日元等。
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>地区选项设置：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="ShowAreaLeval" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                <asp:ListItem Value="1">一级</asp:ListItem>
                                <asp:ListItem Selected="True" Value="2">二级</asp:ListItem>
                                <asp:ListItem Value="3">三级</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>启用分地区：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbChangeCityTF" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1">启用</asp:ListItem>
                                <asp:ListItem Value="0">不启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <div class="tips">启用分地区后，网站前台可以按地区筛选。</div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>百度地图API：</strong>

                        </td>
                        <td class="righttd">
                            <asp:TextBox ID="TxtBaiduAK" runat="server" CssClass="textbox" Width="350"></asp:TextBox>
                            访问应用（AK）
                <div class="tips">调用百度地图API时需要用到的AK（<a href="http://lbsyun.baidu.com/apiconsole/key?application=key" target="_blank">申请</a>）。</div>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>生成静态设置：</strong></td>
                        <td class="righttd">每生成<asp:TextBox CssClass="textbox" ID="TxtRefreshPauseNum" Width="50px" Style="text-align: center" runat="server"></asp:TextBox>篇文档 暂停<asp:TextBox ID="TxtRefreshPauseTime" runat="server" CssClass="textbox" Style="text-align: center" Width="50px" />秒后重新生成
                    <div class="tips">为减轻生成操作导致的服务器承受压力，建议设置暂停时间不低于2秒，不想限制请设置为“0”。</div>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>生成路径设置：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbFsoPath" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="0" Selected="True">绝对路径</asp:ListItem>
                                <asp:ListItem Value="1">根相对路径 (相对根目录)</asp:ListItem>
                            </asp:RadioButtonList>
                            <span class="tips">若您有绑定子站点,此处请设置为绝对路径，否则可能导致链接不正确。</span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>标签生成中文占用两个字符：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbLabelChineseLenTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                            <div class="tips">指前台模板里标签调用数据时，一个中文是否启用占两个字符。</div>

                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否每天整点初始化当天数据：</strong></td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbInitialDataPerDay" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="1">启用</asp:ListItem>
                                <asp:ListItem Value="0" Selected="True">不启用</asp:ListItem>
                            </asp:RadioButtonList>
                            <div class="tips">如将文档的当天的点击数,软件当天的下载数清零。开启后对性能有稍影响,对统计数要求不高的，不建议开启。</div>

                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>智能JS自动生成间隔：</strong></td>
                        <td class="righttd">每
                     <asp:TextBox ID="TxtAutoCreateJSTime" runat="server" CssClass="textbox" Style="text-align: center" Width="50"></asp:TextBox>
                            分钟后自动生成智能JS
                      <div class="tips">不想自动生成JS或是没有使用JS标签，请设置为“0”以免影响性能。</div>

                        </td>
                    </tr>
                </table>
            </div>

            <div class="tab-page" id="tab7">
                <h2 class="tab">远程附件</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab7"));
                </script>


                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>是否启用远程附件：</strong>
                        </td>
                        <td class="righttd">
                            <asp:RadioButtonList ID="RdbRemoteAnnexTF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="0" Selected>不启用</asp:ListItem>
                                <asp:ListItem Value="1">启用</asp:ListItem>
                            </asp:RadioButtonList>

                        </td>
                    </tr>
                    <tbody id="ftp" runat="server">
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>FTP服务器地址：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpServerIP" runat="server" CssClass="textbox" Width="350" />
                                <span class="tips">填写 FTP 服务器的 IP 地址或域名</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>FTP服务器端口号：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpServerPort" runat="server" Width="50" Style="text-align: center" CssClass="textbox" />
                                <span class="tips">默认21</span>

                            </td>
                        </tr>

                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>FTP服务器用户名：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpUserName" runat="server" CssClass="textbox" Width="350" />
                                <span class="tips">该帐号必需具有以下权限：读取文件、写入文件、删除文件、创建目录、子目录继承</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>FTP服务器密码：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpUserPassWord" TextMode="Password" runat="server" CssClass="textbox" Width="350" />
                                <span class="tips">登录FTP的密码</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>远程附件目录：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpRemoteAnnexDir" runat="server" CssClass="textbox" Width="350" />
                                <span class="tips">远程附件目录的绝对路径或相对于 FTP 主目录的相对路径，结尾必须加斜杠“/”,如果直接上传到主目录直接填：“/”。</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>远程附件访问 URL：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpRemoteAnnexUrl" runat="server" CssClass="textbox" Width="350" />
                                <span class="tips">如：http://img.kesion.com,结尾不要加斜杠“/”</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>附件尺寸限制：</strong>
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="TxtFtpRemoteAnnexSize" runat="server" CssClass="textbox" Width="40" Style="text-align: center" />KB
                      <span class="tips">为防止大文件上传延迟，只有尺寸小于当前设置的附件才使用远程附件功能，0 或留空为不限制。</span>

                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>是否删除本地附件：</strong>
                            </td>
                            <td class="righttd">
                                <asp:RadioButtonList ID="RdbFtpDeleteLocalFile" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Value="0" Selected>不删除</asp:ListItem>
                                    <asp:ListItem Value="1">删除</asp:ListItem>
                                </asp:RadioButtonList>
                                <span class="tips">指文件上传成功后是否删除本网站下的附件，启用删除可以减少服务器空间占用。</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="lefttd" height="30" style="width: 198px">
                                <strong>测试FTP连接是否正常：</strong>
                            </td>
                            <td class="righttd">
                                <input onclick="testFtp()" type="button" class="button" value="测试FTP连接" />
                                <script>
                                    function testFtp() {
                                        var ftpIP = jQuery("#<%=TxtFtpServerIP.ClientID %>").val();
                                        var ftpPort = jQuery("#<%=TxtFtpServerPort.ClientID %>").val();
                                        var ftpUser = jQuery("#<%=TxtFtpUserName.ClientID %>").val();
                                        var ftpPass = jQuery("#<%=TxtFtpUserPassWord.ClientID %>").val();
                                        var ftpDir = jQuery("#<%=TxtFtpRemoteAnnexDir.ClientID %>").val();
                                        if (ftpIP == '') {
                                            KesionJS.Alert("请输入FTP服务器IP地址!", 'jQuery("#<%=TxtFtpServerIP.ClientID %>").focus()');
                                            return;
                                        }
                                        if (ftpPort == '') {
                                            KesionJS.Alert("请输入FTP服务器端口!", 'jQuery("#<%=TxtFtpServerPort.ClientID %>").focus()');
                                            return;
                                        }
                                        if (ftpUser == '') {
                                            KesionJS.Alert("请输入FTP登录用户名!", 'jQuery("#<%=TxtFtpUserName.ClientID %>").focus()');
                                            return;
                                        }
                                        if (ftpPass == '') {
                                            KesionJS.Alert("请输入FTP登录密码!", 'jQuery("#<%=TxtFtpUserPassWord.ClientID %>").focus()');
                                            return;
                                        }
                                        if (ftpDir == '') {
                                            KesionJS.Alert("请输入远程附件目录!", 'jQuery("#<%=TxtFtpRemoteAnnexDir.ClientID %>").focus()');
                                            return;
                                        }
                                        jQuery('#ajaxmsg', window.parent.document).toggle();
                                        jQuery.get("../../plus/ajaxs.ashx", { a: "testftp", ftpIP: ftpIP, ftpPort: ftpPort, ftpUser: ftpUser, ftpPass: ftpPass, ftpDir: ftpDir }, function (val) {
                                            jQuery('#ajaxmsg', window.parent.document).toggle();
                                            if (val == "success") {
                                                KesionJS.Alert("恭喜，FTP测试连接正常！", '');
                                            } else {
                                                KesionJS.Alert(val, '');
                                            }
                                        });
                                    }
                                </script>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="tab-page" id="tab8" style="display: none">
                <h2 class="tab" style="display: none">赠送积分配置</h2>
                <script type="text/javascript">
                    tabPane1.addTabPage(document.getElementById("tab7"));
                </script>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>新用户注册赠送积分：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="UserRegAddScore" runat="server" Width="50"></asp:TextBox>分</td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>推荐用户注册给推荐人：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="TxtTJScore" runat="server" Width="50"></asp:TextBox>分</td>
                    </tr>

                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>学员学习课件赠送积分：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="learned" runat="server" Width="50"></asp:TextBox>分</td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>商城购物赠送积分：</strong>
                        </td>
                        <td class="righttd">
                            <asp:TextBox CssClass="textbox" ID="shopping" runat="server" Width="50"></asp:TextBox>分</td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>问答相关赠送积分：</strong>
                        </td>
                        <td class="righttd"><a href="<%=MyCache.GetCacheConfig(5)%>/<%=MyCache.GetCacheConfig(4)%>/Ask/KS.AskConfig.aspx">查看</a></td>
                    </tr>
                    <tr>
                        <td align="right" class="lefttd" height="30" style="width: 198px">
                            <strong>小组社区赠送积分：</strong>
                        </td>
                        <td class="righttd"><a href="<%=MyCache.GetCacheConfig(5)%>/<%=MyCache.GetCacheConfig(4)%>/Group/KS.BBSCategory.aspx">查看</a></td>
                    </tr>
                </table>
            </div>
            
            <KS:Tips ID="Tips1" runat="server" />

            <KS:Foot ID="CopyRight1" CancelButtonVisible="false" OnSubmit="SaveButton_Click" runat="server" />

        </div>
    </div>
</asp:Content>
