<%@ Page Title="站内搜索配置" Theme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="SearchConfigEdit.aspx.cs" Inherits="Web.Admin.Contents.SearchConfigEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server">
        <div class="formtextfield">
            <div class="title">
                <h4><span>搜索配置</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">搜索器:
                        </td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="Searcher" runat="server">
                                <asp:ListItem Value="like" Selected="True">简单Like</asp:ListItem>
                                <asp:ListItem Value="lucence">Lucence</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">分词算法:
                        </td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="WordSegmentation" runat="server">
                                <asp:ListItem Value="CJKAnalyzer" Selected="True">CJKAnalyzer</asp:ListItem>
                                <asp:ListItem Value="StandardAnalyzer">StandardAnalyzer</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription">只对Lucence有效</td>
                    </tr>
                    <tr>
                        <td class="fieldname">索引保存位置:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="IndexPath" runat="server" Width="260" Text="Upload/Index/"></asp:TextBox>
                            <asp:Button ID="btnCreateIndex" runat="server" Text="立即生成索引" OnClick="btnCreateIndex_Click" />
                        </td>
                        <td class="fielddescription">使用相对路径</td>
                    </tr>
                    <tr>
                        <td class="fieldname">搜索热词:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="HotWords" runat="server" MaxLength="6" Width="428"
                                Height="90" TextMode="MultiLine" />
                        </td>
                        <td class="fielddescription">每行一个词</td>
                    </tr>
                </table>
                <asp:HiddenField ID="ConfigID" runat="server" Value="0" />
            </div>
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" SkinID="ButtonSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
