<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.auditnewtopic" Codebehind="forum_auditnewtopic.aspx.cs" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="uc1" TagName="AjaxPostInfo" Src="../UserControls/AjaxPostInfo.ascx" %>
<html>
	<head>
		<title>auditnewtopic</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>
		<script language="javascript" src="../js/AjaxHelper.js" type="text/javascript"></script>
		
<script language="javascript1.2" type="text/javascript">	
 function  LoadInfo(istopic,pid,tid)
 {
         AjaxHelper.Updater('../UserControls/AjaxPostInfo','AjaxPostInfo','istopic='+istopic+'&pid='+pid+'&tid='+tid);
         
         document.getElementById('PostInfo').style.display = "block";
 }
</script>	
	
</head>

	<body>
		<form id="Form1" method="post" runat="server">
			
			<table class="table1" cellspacing="0" cellPadding="4" width="100%" align="center">
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onClick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 &nbsp; 
							<cc1:Button id="SelectPass" runat="server" Text=" 通 过 "></cc1:Button> &nbsp; 
							<cc1:Button id="SelectDelete" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button></td>
					</tr>
			</table>
			
			<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" >
				<Columns>
				 <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="tid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>"	name="tid"></asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="tid" SortExpression="tid"  HeaderText="tid [递增]" Visible="false"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="标题">
						<ItemTemplate>
							 <a href="javascript:void(0);" onclick="javascript:LoadInfo('true','0','<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>');"><%# DataBinder.Eval(Container, "DataItem.title").ToString() %></a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="poster" SortExpression="poster" HeaderText="作者"></asp:BoundColumn>
					<asp:BoundColumn DataField="highlight" SortExpression="highlight" HeaderText="主题高亮识别号"></asp:BoundColumn>
					<asp:BoundColumn DataField="digest" SortExpression="digest" HeaderText="精华级别"></asp:BoundColumn>
					<asp:BoundColumn DataField="rate" SortExpression="rate" HeaderText="评分分数"></asp:BoundColumn>
					<asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
					<asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="特殊权限"></asp:BoundColumn>
					<asp:BoundColumn DataField="attachment" SortExpression="attachment" HeaderText="是否含有附件"></asp:BoundColumn>
					<asp:BoundColumn DataField="closed" SortExpression="closed" HeaderText="是否关闭"></asp:BoundColumn>
			   	</Columns>
			</cc1:datagrid>
			<table cellSpacing="0" cellPadding="0" width="95%" align="center">
				<tr>
					<td class="multi"></td>
				</tr>
			</table>
			
			<div id="AjaxPostInfo" style="OVERFLOW-Y: auto;" valign="top">
				<uc1:AjaxPostInfo id="AjaxPostInfo1" runat="server"></uc1:AjaxPostInfo>
			</div>	
			
			<div id="Div1" style="display:none">
			<tr>
				<td bgColor="#f8f8f8" colSpan="2"><asp:literal id="msg" runat="server" Text="没有等待审核新主题" Visible="False"></asp:literal></td>
			</tr>
			</div>
			
		</form>
		
		<%=footer%>
	</body>
</html>
