<%@ page language="C#" autoeventwireup="true" inherits="admin_site_sitelucene, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<!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 runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/Dragdrop.js"></script>

    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr>
                <td>
                    <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                    您现在的位置：<a href="../info.aspx">后台管理</a> >> 设置全文检索
                </td>
            </tr>
        </table>
        <table class="border" cellspacing="1" cellpadding="0" border="0" align="center">
            <tr>
                <td class="bqleft">索引目录：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtIndexPath" runat="server" CssClass="in1" Columns="60"></asp:TextBox><br />1、以“/”开始,则生成到网站根目录下的路径，如：/App_Data/index/<br />2、也可以填写：F:\易点CMS\ 的物理路径</td>
            </tr>
            <tr>
                <td class="bqleft">模型字段设置：
                </td>
                <td class="bqright">
                    <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                        <asp:Repeater ID="RepModel" runat="server" OnItemDataBound="RepModel_ItemDataBound">
                            <HeaderTemplate>
                                <tr class="title">
                                    <td class="t1">模型Id
                                    </td>
                                    <td>模型名称
                                    </td>
                                    <td>启用检索
                                    </td>
                                    <td>标题字段
                                    </td>
                                    <td>内容字段
                                    </td>
                                    <td>图片字段
                                    </td>
                                    <td>内容连接方式
                                    </td>
                                    <td>Where条件
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                                    <td align="center" class="t1">
                                        <asp:Literal ID="LitModelId" runat="server" Text='<%#Eval("ModelId") %>'></asp:Literal>
                                    </td>
                                    <td align="center">
                                        <%#Eval("ModelName") %>
                                    </td>
                                    <td align="center">
                                        <asp:CheckBox ID="CheckOpen" runat="server" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="dropTitle" runat="server"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="dropContent" runat="server"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="dropPic" runat="server">
                                            <asp:ListItem Value="0">选择图片字段</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="dropURL" runat="server">
                                            <asp:ListItem Value="0">按模型连接</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td><asp:TextBox ID="txtwhere" runat="server" CssClass="in1" placeholder="userid=1 and tuijian=1"></asp:TextBox></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
            <tr style="display:none">
                <td class="bqleft">文件生成路径：
                </td>
                <td class="bqright">
                    <asp:Literal ID="LitParam" runat="server"></asp:Literal><asp:TextBox ID="txtFilePath"
                        runat="server" CssClass="in1" Text="search/"></asp:TextBox><font color="#ff0066">*</font>
                </td>
            </tr>
            <tr style="display:none">
                <td class="bqleft">生成文件名称：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtFileName" runat="server" CssClass="in1"></asp:TextBox>.aspx<font
                        color="#ff0066">*</font>
                </td>
            </tr>
            <tr>
                <td class="bqleft">查询后显示模板：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtTemplate" runat="server" Columns="40" CssClass="in1" Style="float: left"></asp:TextBox>
                    <input id="Button9" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtTemplate',650,450,'')" style="float: left" /><font
                        color="#ff0066">*</font>
                </td>
            </tr>
            <tr>
                <td class="bqleft">分页效果：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtCssName" runat="server" CssClass="in1" Columns="20" Text="viciao" Style="float: left"></asp:TextBox><input
                        id="ButCssName" type="button" value="选择分页效果" class="btn" style="float: left" onclick="WinOpenLhgDialog('选择分页样式', '../common/SelectPageStyle.aspx?ControlId=txtCssName', 500, 300, '')"
                        runat="server" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">自定义分页效果：
                </td>
                <td class="bqright">
                    <asp:DropDownList ID="DropPager" runat="server">
                        <asp:ListItem Value="0">不使用</asp:ListItem>
                    </asp:DropDownList>
                    选择后，上面分页效果无效，同时需要在查询模板中引入您自定义分页样式
                </td>
            </tr>
            <tr>
                <td class="bqleft">备用代码：
                </td>
                <td class="bqright">
                    <input id="Button5" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtItemHtml','','550','415')" />
                    <input id="Button6" type="button" value="<tr></tr>" class="btn" onclick="CreateRange('txtItemHtml','<tr></tr>')" />
                    <input id="Button7" type="button" value="<td></td>" class="btn" onclick="CreateRange('txtItemHtml','<td></td>')" />
                    <input id="Button8" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtItemHtml','','550','150')" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">查询后循环行模板：
                </td>
                <td class="bqright">
                    <font color="#a31515">&lt;ItemTemplate&gt;</font>
                    <asp:TextBox ID="txtItemHtml" runat="server" TextMode="MultiLine" Style="width: 99%"
                        Rows="10"></asp:TextBox><font color="#a31515">&lt;/ItemTemplate&gt;</font>
                </td>
            </tr>
            <tr>
                <td class="bqleft">每页显示数量：
                </td>
                <td class="bqright"><asp:TextBox ID="txtPageSize"
                        runat="server" CssClass="in1" Text="search/"></asp:TextBox><font color="#ff0066">*</font>
                </td>
            </tr>
            <tr style="display:none">
                <td class="bqleft">相应aspx.cs文件：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadAspxcs" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Selected="True">系统默认</asp:ListItem>
                        <asp:ListItem Value="1">手动输入</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright" height="40">
                    <asp:Button ID="DianCMS_Submit" runat="server" Text=" 提交(Ctrl+s) " CssClass="btn radius30 pad_0_30"
                        OnClick="Button10_Click" /><asp:Button ID="Button17" runat="server" Text=" 提交并生成查询文件 "
                            CssClass="btn radius30 pad_0_30" OnClick="Button10_Click" Style="margin-left: 10px" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">使用说明：
                </td>
                <td class="bqright">
                    1、启用检索勾选后，在生成索引文件时才会索引对应模型,同时参与全站搜索。<br />2、标题字段和内容字段为必须选择字段。<br />3、如果模型的内容页是按栏目连接的，请勾选对应的栏目字段<br />4、图片字段，如果勾选单图片字段时，系统会默认先读取图片字段的小图，如果小图不存在，则读取大图。如果是多图字段，系统将读取第一张图为默认图片。
                </td>
            </tr>
        </table>

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