<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Build.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.FullTextIndex.Build" %>

<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />

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

    <link rel="stylesheet" type="text/css" href="../Style.css" />
    <link rel="stylesheet" type="text/css" href="Build.css" />

    <script type="text/javascript" language="javascript">
        function PercentChange(PageCount, PageTotal, KongJian) {

            $(KongJian).style.width = PageCount * (600 / PageTotal) + "px";
            $(KongJian).innerText = (PageCount / PageTotal * 100).toPrecision(4).toString() + "%";
            $(KongJian).title = "当前进度量：" + PageCount;
            $("ProgressNum").innerText = PageCount;
            $("ProgressTotal").innerText = PageTotal;

            if (PageCount > 0 && PageCount != PageTotal) {
                $("Message").innerText = "正在生成";
            }
            if (PageCount == PageTotal) {
                $("Message").innerText = "生成完成";
            }
        }
        function Message(str) {
            $("Message").innerText = str;
        }
    </script>

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="3000">
            </asp:Timer>
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            <br />
            <fieldset>
                <legend>使用 TopWinCMS 内置功能</legend>
                <p style="text-align: center">
                    <asp:RadioButtonList ID="RBL_Seep" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="25">最慢</asp:ListItem>
                        <asp:ListItem Value="20">较慢</asp:ListItem>
                        <asp:ListItem Value="15">一般</asp:ListItem>
                        <asp:ListItem Value="10">较快</asp:ListItem>
                        <asp:ListItem Value="0" Selected="True">全速</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Button ID="BT_OK" runat="server" Text="建立索引" CssClass="btn" OnClick="BT_OK_Click" />
                </p>
                <div class="Column">
                    <div class="Progress" id="Bar1">
                    </div>
                </div>
                <br />
                <br />
                <div style="text-align: center; font-weight: bold;">
                    <div id="Message">
                    </div>
                    <span id="ProgressNum">0</span> / <span id="ProgressTotal">0</span></div>
            </fieldset>
            <br />
            <br />
            <fieldset>
                <legend>使用 TopWinCMS Indexer 插件</legend>
                <div style="text-align: center; font-weight: bold;">
                    <asp:Button ID="BT_OK1" runat="server" Text="建立索引" CssClass="btn" OnClick="BT_OK1_Click" /></div>
            </fieldset>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
