Reset.aspx
资源名称:totsearch.rar [点击查看]
上传用户:guomengjz
上传日期:2022-06-06
资源大小:726k
文件大小:7k
源码类别:
搜索引擎
开发平台:
C/C++
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reset.aspx.cs" Inherits="WebApp.Reset" %>
- <!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 id="Head1" runat="server">
- <title>淘特站内搜索引擎1.0</title>
- <style type="text/css">
- <!--
- .s_title {
- color: #006;
- font-size: 14px;
- font-weight: bold;
- }
- body,td,th {
- font-size: 12px;
- }
- td{ padding-left:10px;}
- -->
- </style>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript">
- function $(id) {
- return document.getElementById(id);
- }
- function ProcessGather(){
- $('Layer1').style.display='block';
- $('Layer1').style.left=event.x-300;
- $('Layer1').style.top=event.y-180;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee">
- <tr>
- <td height="32" colspan="2" align="center" bgcolor="#ECF5FF" class="s_title"> 淘特站内搜索引擎1.0</td>
- </tr>
- <tr>
- <td height="24" colspan="2" bgcolor="#FFFFFF">说明:该操作将您数据库中选择的表及字段进行中文分词并添加到索引中。请根据您的实际情况,填写与搜索引擎中索引对应的字段(如id,标题,内容等),没有的字段请留空。</td>
- </tr>
- <tr>
- <td width="22%" height="24" bgcolor="#FFFFFF">数据库连接字符串:</td>
- <td width="78%" bgcolor="#FFFFFF"><asp:TextBox ID="ConnStr" runat="server" Height="109px"
- TextMode="MultiLine" Width="99%">provider=microsoft.jet.oledb.4.0;data source=E:data.mdb</asp:TextBox>
- <br />
- <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="连接数据库" />
- <br />
- 例:<br />
- Access数据库:provider=microsoft.jet.oledb.4.0;data source=E:data.mdb<br />
- Mssql数据库:Provider=SQLOLEDB;server=127.0.0.1;database=totnetcms;uid=cms_user;pwd=cms_user</td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">选择要索引的表:</td>
- <td bgcolor="#FFFFFF"><asp:DropDownList ID="TableName" runat="server" AutoPostBack="True"
- OnSelectedIndexChanged="db_table_SelectedIndexChanged"> </asp:DropDownList></td>
- </tr>
- </table>
- <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee">
- <tr>
- <td height="24" colspan="3" bgcolor="#FFFFFF">设置要索引的字段:请将下面字段信息中填写您的数据库表中对应的字段名称</td>
- </tr>
- <tr>
- <td height="24" colspan="2" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="1">
- <tr>
- <td height="24" bgcolor="#FFFFFF">搜索引擎中的字段</td>
- <td bgcolor="#FFFFFF"> 对应数据库中的字段</td>
- </tr>
- <tr>
- <td width="22%" height="24" bgcolor="#FFFFFF">ID:</td>
- <td width="23%" bgcolor="#FFFFFF"><asp:TextBox ID="id" runat="server">id</asp:TextBox>
- <br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
- ControlToValidate="id" ErrorMessage="请填写表中的ID字段名"></asp:RequiredFieldValidator></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">标题:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="Title" runat="server">Title</asp:TextBox>
- <br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
- ControlToValidate="Title" ErrorMessage="请填写表中的标题字段名"></asp:RequiredFieldValidator></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">栏目(类别)ID:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="CatalogId" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">缩略图:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="Photo" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">摘要:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="Summary" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">详细内容:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="Content" runat="server">Content</asp:TextBox>
- <br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
- ControlToValidate="Content" ErrorMessage="请填写表中的内容字段名"></asp:RequiredFieldValidator></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">修改日期:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="ModDate" runat="server">ModDate</asp:TextBox>
- <br />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
- ControlToValidate="ModDate" ErrorMessage="请填写表中的日期字段名"></asp:RequiredFieldValidator></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">链接地址:</td>
- <td bgcolor="#FFFFFF"><asp:TextBox ID="LinkUrl" runat="server"></asp:TextBox></td>
- </tr>
- </table></td>
- <td width="61%" align="left" valign="top" bgcolor="#FFFFFF">当前选择表中的字段:<br />
- <asp:ListBox ID="o_field" runat="server" Rows="15"> </asp:ListBox></td>
- </tr>
- </table>
- <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee">
- <tr>
- <td width="22%" height="24" bgcolor="#FFFFFF">索引方式:</td>
- <td width="78%" height="35" bgcolor="#FFFFFF"><asp:RadioButtonList ID="Rewrite" runat="server"
- RepeatDirection="Horizontal" RepeatLayout="Flow">
- <asp:ListItem Selected="True" Value="0">附加</asp:ListItem>
- <asp:ListItem Value="1">重写</asp:ListItem>
- </asp:RadioButtonList></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF"> </td>
- <td height="35" bgcolor="#FFFFFF"><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="开始执行索引" OnClientClick="ProcessGather()" /></td>
- </tr>
- </table>
- </div>
- </form>
- <div id="Layer1" style="position:absolute; display:none; filter:alpha(opacity=50); width:285px; height:159px; z-index:1; left: 447px; top: 381px; background-color: #003399; layer-background-color: #99FFFF; border: 1px none #000000;">
- <div align="center">
- <p> </p>
- <p> </p>
- <p><font color="#FFFFFF">数据索引进行中,所用时间取决于您的数据库记录多少,请耐心等待......</font></p>
- </div>
- </div>
- </body>
- </html>