<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="settings.aspx.cs" Inherits="SearchEasy.SiteSearch.admin.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/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body { padding:10px }
-->
</style>
</head>
<body>
<form id="Form1" runat="server">
<h3 class="boxtitle">后台管理 &gt;&gt; 系统设置</h3>
<table height="0" border="0" cellpadding="0" cellspacing="1" class="tabBgColor">
<tr>
  <td height="25" background="Images/Top.gif">提示：系统相关参数设置，根据自身需求开启或关闭某些功能。</td>
</tr>
</table>
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr>
      <td width="100%" class="tdbg" colspan="2"><strong>基本设置：</strong></td>
    </tr>
    <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">首页LOGOURL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeLogo" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">搜索结果页LOGOURL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListLogo" CssClass="input" 
              Width="370px" /></td>
   </tr>
   <tr class="tdbg" style="display:none">
      <td width="15%" align="center" class="tdbg">首页显示最新搜索关键词：</td>
      <td  class="tdbg">
      <asp:CheckBox runat="server" ID="chkIsShowLatestSearchKeyWord" CssClass="input" />
      <br />最新搜索词(用英文逗号,分隔多个)：<br />
      <asp:TextBox runat="server" ID="txtLatestSearchKeyWordList" CssClass="input"  Width="370px" TextMode="MultiLine" Height="60px" />
      </td>
   </tr>

   <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">首页Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeTitle" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">首页Description：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtHomeDescription" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">搜索结果列表页Title：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListTitle" CssClass="input" 
              Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>
   <tr class="tdbg">
      <td width="15%" align="center" class="tdbg">搜索结果列表页Description：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtListDescription" 
              CssClass="input" Width="370px" />（使用{searchkw}标签，表示当前的搜索关键词）</td>
   </tr>

   <tr class="tdbg">
      <td width="15%" 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="100%" class="tdbg" colspan="2"><strong>索引设置：</strong></td>
    </tr>
     <tr>
      <td width="15%" align="center" class="tdbg">索引内容最长字符数：</td>
      <td  class="tdbg">
          <asp:TextBox runat="server" ID="txtIndexContentMaxLength" CssClass="input" Width="100px" /> （索引内容字段的最长字符数，0表示不限制）</td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">每次更新索引记录数：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtUpdateIndexDataCount" CssClass="input" Width="100px" Text="1000" />（默认1000）</td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">允许外部调用更新索引：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsAllowExtUpdateIndex" CssClass="input" /> （启用后，可整合进其他系统或配合计划任务实现自动更新功能）</td>
   </tr>
   
   <tr>
      <td width="15%" align="center" class="tdbg">外部调用更新索引安全码：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtExtUpdateIndexSafecode" CssClass="input" Width="370px" />（不定长非中文字符串）</td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">外部调用更新索引URL：</td>
      <td  class="tdbg">http://so.yourdomain.com/admin/updateindex.aspx?safecode=上面设置的安全码参数  (注意把so.yourdomain.com更改为你的域名)</td>
   </tr>
   <tr>
      <td width="100%" class="tdbg" colspan="2"><strong>搜索设置：</strong></td>
    </tr>
    <tr>
      <td width="15%" align="center" class="tdbg">默认搜索类型：</td>
      <td  class="tdbg"> <asp:DropDownList runat="server" CssClass="input" ID="ddlDefaultSite"></asp:DropDownList>（一般为‘全站’）</td>
   </tr>
   <tr style="display:none">
      <td width="15%" align="center" class="tdbg">是否启用智能提示：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsAutoCompleteSearchKw" CssClass="input" /> （搜索框的智能提示）</td>
   </tr>
   <tr style="display:none">
      <td width="15%" align="center" class="tdbg">是否启用相关搜索：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowRelateSearchKw" CssClass="input" /></td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">是否启用图文混排：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowPhoto" CssClass="input" /> （搜索结果单一缩略图+标题摘要混排）</td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">是否启用字符过滤：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsSafeFilter" CssClass="input" /> （启用后除中文/字母/数字/空格外其他字符会被过滤，如需过滤其他字符，在下框录入）<br />
          <asp:TextBox runat="server" ID="txtFilterWords" CssClass="input" 
              Width="300px" TextMode="MultiLine" Height="82px" /> （一行一个词）
      </td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">是否显示分类名称：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsShowCateInSearchResult" CssClass="input" /> （启用后，用户搜索‘全站’时显示分类名称）</td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">是否启用伪静态：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsUrlrewrite" CssClass="input" /></td>
   </tr>
   <tr style="display:none">
      <td width="15%" align="center" class="tdbg">伪静态URL规则：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtUrlRewriteRule" CssClass="input" Width="200px" /></td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">标题摘要长度：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultTitleLength" CssClass="input" 
              Width="370px" /> </td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">内容摘要长度：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultSummaryLength" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">搜索结果每页记录数：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchResultPageSize" 
              CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">全站搜索默认排序：</td>
      <td  class="tdbg">
      <asp:DropDownList runat="server" ID="ddlSearchResultOrder" CssClass="input" ToolTip="搜索结果默认排序">
           <asp:ListItem Text="按相关度排序" Value=""></asp:ListItem>
           <asp:ListItem Text="按时间排序" Value="date"></asp:ListItem>
         </asp:DropDownList>
      </td>
   </tr>
   <tr>
      <td width="15%" align="center" class="tdbg">搜索URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSearchPageUrl" CssClass="input" Width="170px" Text="search.aspx" />(如search.aspx改名了，这里也需要改名)</td>
   </tr>
  <tr>
      <td width="100%" class="tdbg" colspan="2"><strong>分词设置：</strong></td>
  </tr>
  <tr>
      <td width="15%" align="center" class="tdbg">是否使用自定义词库：</td>
      <td  class="tdbg"><asp:CheckBox runat="server" ID="chkIsUseExtWords" CssClass="input" /> (启用后需重建索引才会生效，取消后也需重建)</td>
   </tr>
  <tr>
      <td width="100%" class="tdbg" colspan="2"><strong>安全设置：</strong></td>
  </tr>
  <tr>
      <td width="15%" align="center" class="tdbg">登陆加密串：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtLoginCookieSalt" 
              CssClass="input" Width="300px" /> (建议首次使用更改，留空则使用默认的)</td>
   </tr>
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td><asp:Button runat="server" Text="保 存" ID="btnSave" CssClass="bnt" onclick="btnSave_Click" /></td>
    </tr>
  </table>

</form>
</body>
</html>
