<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="settings.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.settings" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统设置</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
<script type="text/javascript" src="editor/xheditor/editor.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>系统设置：</span>系统相关参数设置，根据自身需求开启或关闭某些功能。</div>
<div id="sdcms_right_b">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0">
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>LOGO设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">首页LOGO图片URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeLogo" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索结果页LOGO图片URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListLogo" CssClass="input" 
              Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>搜索相关设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">默认搜索类型：</td>
      <td  class="tdbg"> <asp:DropDownList runat="server" CssClass="input" ID="ddlDefaultSite"></asp:DropDownList>（一般为‘全站’）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用模糊搜索：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsFuzzy" CssClass="input" /> （不启用则为精确搜索）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用智能提示：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsAutoCompleteSearchKw" CssClass="input" /> （搜索框的智能提示）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用相关搜索：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowRelateSearchKw" CssClass="input" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用图文混排：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowPhoto" CssClass="input" /> （搜索结果单一缩略图+标题摘要混排）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用搜索历史：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsSaveSearchHistory" CssClass="input" /> （记录用户的搜索历史，了解用户搜索需求）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否显示最新搜索关键词：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowLatestSearchKeyWord" CssClass="input" /> 最多显示<asp:TextBox runat="server" ID="txtShowLatestSearchKeyWordCount" CssClass="input" Width="35px" />个</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否显示热门搜索关键词：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowHotSearchKeyWord" CssClass="input" /> 最多显示<asp:TextBox runat="server" ID="txtShowHotSearchKeyWordCount" CssClass="input" Width="35px" />个</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用同义词搜索：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsSynonym" CssClass="input" /> （启用后，能搜索到同义或近义词，搜索体验更好）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用搜索关键词字段：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsSearchTag" CssClass="input" /> （启用后，能搜索关键词字段，用于通过附加词影响搜索结果）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用多图模式：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowContentPics" CssClass="input" /> 最多显示<asp:TextBox runat="server" ID="txtShowContentPicCount" CssClass="input" Width="35px" />张图 （启用后，从内容字段自动提取图片信息）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否显示分类名称：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowCateInSearchResult" CssClass="input" /> （启用后，用户搜索‘全站’时显示分类名称）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用过滤词功能：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsFilterword" CssClass="input" /> （启用后，过滤用户的搜索关键词）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用伪静态：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsUrlrewrite" CssClass="input" /> URL规则：<asp:TextBox runat="server" ID="txtUrlRewriteRule" CssClass="input" Width="200px" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用车系搜索：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsUseSearchWord" CssClass="input" /> （汽车网定制功能）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否启用移动版：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsMobileVersion" CssClass="input" /> （启用后，针对手机等移动设备提供专用版本）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否自动更新索引：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsAutoUpdateIndex" CssClass="input" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">是否记录错误信息：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsSaveErrorInfo" CssClass="input" /> </td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>SEO设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索首页Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeTitle" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索首页Description：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeDescription" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索首页Keyword：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeKeyword" CssClass="input" 
              Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索结果列表页面Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListTitle" CssClass="input" 
              Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索结果列表页面Description：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListDescription" 
              CssClass="input" Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索结果列表页面Keyword：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListKeyword" CssClass="input" 
              Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>高亮，摘要设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">标题摘要长度：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultTitleLength" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">内容摘要长度：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultSummaryLength" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">搜索结果每页记录数：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultPageSize" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>其他设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">索引内容最长字符数：</td>
      <td  class="tdbg">
          <asp:TextBox runat="server" ID="txtIndexContentMaxLength" CssClass="input" 
              Width="370px" TextMode="MultiLine" Height="82px" /> （索引内容字段的最长字符数，0表示不限制）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">底部版权声明：</td>
      <td  class="tdbg">
          <asp:TextBox runat="server" ID="txtCopyRight" CssClass="input" 
              Width="370px" TextMode="MultiLine" Height="82px" /> （也可以放统计代码）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">商业授权码：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtLicence" CssClass="input" 
              Width="370px" /> （免费版无需录入或<a href="http://www.searcheasy.net/buy.aspx" target="_blank">点此购买</a>）</td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>移动版相关设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">移动版首页LOGO URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtMHomeLogo" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">移动版结果页LOGO URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtMListLogo" CssClass="input" 
              Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">移动版搜索首页Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtMHomeTitle" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">移动版搜索列表页Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtMListTitle" CssClass="input" 
              Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">移动版底部版权声明：</td>
      <td  class="tdbg">
          <asp:TextBox runat="server" ID="txtMCopyRight" CssClass="input" 
              Width="370px" TextMode="MultiLine" Height="82px" /> （也可以放统计代码）</td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>采集设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">数据库类型：</td>
      <td  class="tdbg">
      <asp:DropDownList runat="server" ID="ddlSpiderDBType" CssClass="input">
           <asp:ListItem Text="请选择数据库类型" Value="no"></asp:ListItem>
           <asp:ListItem Text="Microsoft SQL SERVER 2000/2005" Value="mssql"></asp:ListItem>
           <asp:ListItem Text="My SQL" Value="mysql"></asp:ListItem>
         </asp:DropDownList>
      </td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">数据库链接字符串：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtSpiderDBConnectionString" CssClass="input" Width="500px" />
      <br />
          Microsoft SQL SERVER 2000/2005链接字符串范例：Server=localhost;DataBase=dbname;Uid=user;Pwd=userpwd<br />
          MySQL SERVER链接字符串范例：server=localhost;user id=user; password=userpwd;database=dbname;Port=3306; pooling=false;character set=gbk;
      </td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>Tag系统设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">列表每页Tag数量：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtTagListCount" CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>索引相关设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">允许外部调用更新索引：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsAllowExtUpdateIndex" CssClass="input" /> （启用后，可与你的CMS后台整合，方便更新索引）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">外部调用更新索引安全码：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtExtUpdateIndexSafecode" CssClass="input" Width="370px" />（不定长非中文字符串）</td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">外部调用更新索引URL：</td>
      <td  class="tdbg">http://so.yourdomain.com/backend/updateindex.aspx?safecode=上面设置的安全码参数</td>
   </tr>
   <tr>
      <td width="150" class="tdbg" colspan="2"><strong>搜索外部存储设置：</strong></td>
   </tr>
   <tr>
      <td width="150" align="center" class="tdbg">数据库链接字符串：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtSearchExtDataDbConnectionString" CssClass="input" Width="500px" />
      <br />
          如果启用了搜索历史记录或使用TAG功能，请先在上面配置好MYSQL数据库链接字符串
          MySQL SERVER链接字符串范例：server=localhost;user id=user; password=userpwd;database=dbname;Port=3306; pooling=false;character set=gbk;
      </td>
   </tr>
</table>  
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >
    <tr class="tdbg">
	  <td width="150">&nbsp;</td>
      <td><asp:Button runat="server" CssClass="bnt" Text="保存" ID="btnSave" onclick="btnSave_Click" /> </td>
	 </tr>
</table>
</div>
</form>
</body>
</html>
