<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.wordgrid" Codebehind="global_wordgrid.aspx.cs" %>
<%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>过滤词列表</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet"> 
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<script language="javascript">
				showhint(0, '查询的内容和替换的内容为必填项, 为不影响程序效率, 请不要设置过多不需要的过滤内容');
				showhint(1, '查询的内容和替换的内容的最大长度为254个字符');
			</script>
			<div class="Navbutton" style="margin:0 auto; width:98%;">
			<table cellspacing="1" cellpadding="4" width="100%" align="center" class="table1">
				<TBODY>
					<tr>
						<td><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 
							&nbsp;
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button>
						</td>
					</tr>
				</TBODY>
			</table>
			
			<cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
				OnDeleteCommand="DataGrid_Delete">
				<Columns>
					<asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"	name="id"></asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="id" SortExpression="id" HeaderText="id [递增]" Visible="false"></asp:BoundColumn>
					<asp:BoundColumn DataField="admin" SortExpression="admin" HeaderText="提交人" readonly="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="find" SortExpression="find" HeaderText="查询的内容"></asp:BoundColumn>
					<asp:BoundColumn DataField="replacement" SortExpression="replacement" HeaderText="替换的内容"></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
			<div class="ManagerForm">
            <fieldset>
		    <legend style="background:url(../images/icons/icon48.jpg) no-repeat 6px 50%;">添加过滤词</legend>
			<table cellspacing="0" cellPadding="4" class="tabledatagrid" align=center>
			    <tr>
					<td class="td1" width="15%">过滤内容:</td>
					<td class="td1" width="35%">
						<cc2:TextBox id="find" runat="server" RequiredFieldType="暂无校验" IsReplaceInvertedComma="true" MaxLength="254" Size="30"></cc2:TextBox></td>
					<td class="td2" width="15%">替换为:</td>
					<td class="td2" width="35%">
						<cc2:TextBox id="replacement" runat="server" RequiredFieldType="暂无校验" MaxLength="254" Size="30"></cc2:TextBox></td>
				</tr>
				<tr><td colspan="4" align="center"><cc1:Button id="AddNewRec" runat="server" Text=" 提 交 " ></cc1:Button></td></tr>
			</table>
			</fieldset>
			</div>
			<%=footer%>
		</form>
	</body>
</HTML>
