<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.attchemntgrid" Codebehind="forum_attchemntgrid.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>附件批量删除</title>
		<LINK href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">  
		<script language="javascript" src="../js/common.js"></script>
</head>

	<body>
	<br />
		<form id="Form1" method="post" runat="server">
		<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
				<Columns>
				    <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="aid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.aid").ToString() %>"	name="aid">
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="aid" SortExpression="aid" HeaderText="附件id" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="attachment" SortExpression="attachment" HeaderText="附件原名"></asp:BoundColumn>
					<asp:BoundColumn DataField="filename" SortExpression="filename" HeaderText="文件名"></asp:BoundColumn>
					<asp:BoundColumn DataField="poster" SortExpression="poster" HeaderText="作者" ></asp:BoundColumn>
					<asp:BoundColumn DataField="topictitle" SortExpression="topictitle" HeaderText="所在主题"></asp:BoundColumn>
					<asp:BoundColumn DataField="filesize" SortExpression="filesize" HeaderText="尺寸[字节]"></asp:BoundColumn>
					<asp:BoundColumn DataField="downloads" SortExpression="downloads" HeaderText="下载次数"></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
			<br />
			<table>
				<TBODY>
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选
							<cc1:Button id="DeleteAttachment" runat="server" Text=" 删除选中的附件 " ButtonImgUrl="../images/del.gif"></cc1:Button>	<cc1:Button id="DeleteAll" runat="server" Text=" 直接全部删除 " ButtonImgUrl="../images/del.gif"></cc1:Button>
		</TD></TR></TBODY></TABLE></form>
			<%=footer%>
		
	</body>
</HTML>
