<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.postgridmanage" Codebehind="forum_postgridmanage.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>postgrid</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>
		<form id="Form1" method="post" runat="server"><br />
		<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
				<Columns>
				    <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="pid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>" name="pid">
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="pid"  SortExpression="pid" HeaderText="帖子ID" Visible="false" ></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="标题">
					    <ItemTemplate>
					        <a href="../../showtree.aspx?topicid=<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>&postid=<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>" target="_blank"><%# DataBinder.Eval(Container, "DataItem.title").ToString() %></a>
					    </ItemTemplate>
					</asp:TemplateColumn>
				    <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布日期" ></asp:BoundColumn>
				   	<asp:BoundColumn DataField="poster" SortExpression="poster" HeaderText="发帖人"></asp:BoundColumn>
					
					<asp:TemplateColumn HeaderText="是否通过审批">
						<ItemTemplate>
			   			<%# Invisible(DataBinder.Eval(Container, "DataItem.invisible").ToString())%>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="attachment" SortExpression="attachment" HeaderText="附件数"></asp:BoundColumn>
					<asp:BoundColumn DataField="rate" SortExpression="rate" HeaderText="评分分数"></asp:BoundColumn>
					<asp:BoundColumn DataField="ratetimes" SortExpression="ratetimes" HeaderText="评分次数"></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
		<br />
			<table cellspacing="1" cellpadding="4" width="85%" align="center" class="table1" style="margin: 10px;"><tr><td>
					<input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall"><font style="font-size=12">全选/取消全选</font> &nbsp; 
			<cc1:Button id="SetPostInfo" runat="server" Text=" 删除选中的帖子 " ButtonImgUrl="../images/del.gif"></cc1:Button> &nbsp; 
			</td></tr></table>
		</form>
			<%=footer%>
	</body>
</HTML>
