<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="synonymlist.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.synonymlist" %>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<!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>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：同义词搜索：<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜 索" onclick="btnSearch_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class="sdcms_notice">
<span style="color:Red">提示：启用同义词搜索，可有效提升搜索体验。有问题请咨询<a href="http://www.searcheasy.net" target="_blank">搜易官方</a></span>
</div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>同义词管理</a></li>
</ul>
<div id="sdcms_right_b">
<table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg">
      <asp:Label runat="server" ID="lblTips" ForeColor="Red" />
     </td>
   </tr>
</table>
  <asp:DataGrid runat="server" ID="dgDictManager" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="dictword" onitemcommand="dgDictManager_ItemCommand" 
        onitemcreated="dgDictManager_ItemCreated">
     <Columns>
        <asp:TemplateColumn HeaderText="同义词" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "dictword")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid> 
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg">
     <webdiyer:AspNetPager id="pager" runat="server" AlwaysShow="True" 
             ShowCustomInfoSection="Left" Width="80%"  ShowSelectBox="Never" 
             onpagechanged="pager_PageChanged"></webdiyer:AspNetPager>
     </td>
   </tr>
  </table>
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg"> <br />
      同义词：<asp:TextBox CssClass="input" runat="server" ID="txtsynonymword" Text='' Width="395px" />    &nbsp;<asp:Button CssClass="bnt" ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" /> <br />
      提示：两个同义词之间用空格隔开，添加之前请搜索每个词是否已存在，假如已存在，则通过编辑，加入到相应的同义词中即可。
     </td>
   </tr>
  </table>
</div>
</form>
</body>
</html>
