<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="Segment.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.Segment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("id");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="demo_table">
    <tr>
      <th colspan="4"> 分词词典管理 </th>
    </tr>
    <tr>
      <td colspan="2" class="td1">分词词典管理对内存和cpu的消耗较大，如果您是虚拟主机请谨慎操作！</td>
      <td colspan="2" class="td1"><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="SegmentEdit.aspx" style="color:Red;">添加新的分词</asp:HyperLink></td>
    </tr>
    <tr>
      <td colspan="4" class="date"><div class="dateinput">请输入您搜索的词：
          <asp:TextBox ID="txtKey" runat="server" CssClass="ym12_input2"></asp:TextBox>
          <asp:Button ID="Button2" runat="server" Text=" 搜 索 " OnClick="Button2_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
        </div></td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
      <HeaderTemplate>
        <tr align="center">
          <td class="td1" width="5%">&nbsp;</td>
          <td class="td1"> 关键词 </td>
          <td width="15%" class="td1"> 词频 </td>
          <td width="15%" class="td1"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("Word") %>" /></td>
          <td class="td4"><asp:Label ID="Label1" runat="server" Text='<%#Eval("Word") %>'></asp:Label></td>
          <td><%#Eval("SimilarRatio")%> </td>
          <td><a href="SegmentEdit.aspx?k=<%#Eval("Word") %>">编辑</a> |
            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" OnClientClick="return confirm('您将删除这个关键词!!?删除后不可恢复');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr runat="server" visible="false" id="delAll">
      <td class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="3" class="td5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="10%"><asp:Button ID="Button1" runat="server" Text="批量删除" OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');" OnClick="Button1_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></td>
    <td><div id="tnt_pagination"> <%= PageStr%></div></td>
  </tr>
</table>
        </td>
    </tr>
  </table>
  <script language="JavaScript">
	tigra_tables('demo_table', 4, 1, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
