<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="relatedtopic.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.relatedtopic" 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/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span></div>
<div class="sdcms_notice">
<span style="color:Red">相关内容生成，为相关文章，相关下载等应用提供相关性极高的解决方案，实现方式是通过搜索标题获取相关性高的相关内容，按预设模板生成HTML存储到指定字段，方便调用。</span>
</div>
<br>
<ul id="sdcms_sub_title">
	<li class="sub">相关内容</li>
</ul>
<div id="sdcms_right_b">
  <table width="96%" border="0" align="center" cellpadding="3" cellspacing="1"> 
    <tr>
      <td width="100" align="center" class="tdbg">数据库类型：</td>
      <td  class="tdbg">
         <asp:DropDownList runat="server" ID="ddlDBType" CssClass="input">
           <asp:ListItem Text="请选择数据库类型" Value="no"></asp:ListItem>
           <asp:ListItem Text="Microsoft SQL SERVER 2000/2005" Value="mssql"></asp:ListItem>
           <asp:ListItem Text="My SQL" Value="mysql"></asp:ListItem>
         </asp:DropDownList>
      </td>
   </tr>
    <tr class="tdbg">
      <td align="center" width="20%">数据库链接字符串：</td>
      <td>
         <asp:TextBox runat="server" ID="txtRelatedTopicDbConnectionString" CssClass="input" Height="70px" TextMode="MultiLine" Width="500px" ></asp:TextBox> <br />
          Microsoft SQL SERVER 2000/2005链接字符串范例：Server=localhost;DataBase=dbname;Uid=user;Pwd=userpwd<br />
          MySQL SERVER链接字符串范例：server=localhost;user id=user; password=userpwd;database=dbname;Port=3306; pooling=false;character set=gbk; <br />
      </td>
    </tr>
    <tr class="tdbg">
	  <td width="100">&nbsp;</td>
      <td><asp:Button runat="server" CssClass="bnt" Text="链接数据库" ID="btnLinkDB" onclick="btnLinkDB_Click" /> </td>
   </tr>
    <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>数据表：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtDBTable" CssClass="input" /> 
      <asp:DropDownList runat="server" ID="ddlDBTable" CssClass="input" 
              DataTextField="Name" DataValueField="Name" AutoPostBack="True" 
              onselectedindexchanged="ddlDBTable_SelectedIndexChanged"></asp:DropDownList></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>ID字段：</td>
      <td  class="tdbg">
         <asp:TextBox runat="server" ID="txtId" CssClass="input" /> 
         <asp:DropDownList runat="server" ID="ddlID" CssClass="input"></asp:DropDownList>
      </td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>标题字段：</td>
      <td  class="tdbg">
         <asp:TextBox runat="server" ID="txtTitle" CssClass="input" /> 
         <asp:DropDownList runat="server" ID="ddlTitle" CssClass="input"></asp:DropDownList>
      </td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>相关内容存储字段：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtContent" CssClass="input" /> 
      <asp:DropDownList runat="server" ID="ddlContent" CssClass="input"></asp:DropDownList></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>相关内容条数：</td>
      <td  class="tdbg">
        <asp:TextBox runat="server" ID="txtCount" Text="5" CssClass="input"></asp:TextBox>
      </td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>相关内容模板：</td>
      <td  class="tdbg">
        <asp:TextBox runat="server" ID="txtTemplate" TextMode="MultiLine" CssClass="input" 
              Height="112px" Width="500px"></asp:TextBox> <br />
              可用标签：{url}表示地址；{title}表示标题；
      </td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg"><font color=red>*</font>生成模式：</td>
      <td  class="tdbg">
        <asp:CheckBox runat="server" ID="chkIsAppendMode" Checked="true" Text="是否增量生成" />
      </td>
   </tr>
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td>
         <asp:Label runat="server" ID="lblBuildTips" />
         <asp:Button runat="server" Text="开始生成" ID="btnBuild" CssClass="bnt" onclick="btnBuild_Click" />
      </td>
    </tr>
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td>
      </td>
    </tr>
  </table>
</div>
</form>
<script language="javascript" type="text/javascript">
function SetValue(obj,v)
{
    document.getElementById(obj).value = v ;
}
</script>
</body>
</html>
