<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.auditnewuser" Codebehind="forum_audituser.aspx.cs" AutoEventWireup="true" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>audituser</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, '本功能仅在 Discuz!NT 选项 的 "注册与访问控制" - "新用户注册验证" 中设置为 "人工审核" 时才有效');</script>
			<div class="ManagerForm">
			<fieldset>
		    <legend style="background:url(../images/icons/icon32.jpg) no-repeat 6px 50%;">查询等待验证用户</legend>
			<table cellspacing="1" cellpadding="4" width="100%" align="center" class="table1">
				<tr>
					<td class="td1" width="30%">注册时间于多少天前:</td>
					<td class="td1" width="20%"><cc1:TextBox id="regbefore" runat="server" RequiredFieldType="数据校验" Width="50px"></cc1:TextBox></td>
					<td class="td2" width="30%">注册 IP 开头 (如 192.168):</td>
					<td class="td2" width="20%"><cc1:TextBox id="regip" runat="server" Width="100px" ValidationExpression="^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])(\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0))*(\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0))*(\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9]))*$" RequiredFieldType="IP地址" ></cc1:TextBox></td>
				</tr>
				<tr><td align="center" colspan="4"><cc1:Button id="clearuser" runat="server" Text="查询等待验证用户" onclick="clearuser_Click"/></td></tr>
			</table>
			</fieldset>
			</div>
			<table cellspacing="1" cellpadding="0" width="100%" align="center" class="table1">
					<tr>
						<td colspan="2" class="category">
							<input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消 
							<cc1:Button id="SelectPass" runat="server" Text="通过选择的用户"></cc1:Button>
							<cc1:Button id="SelectDelete" runat="server" Text="删除选择的用户" ButtonImgUrl="../images/del.gif"></cc1:Button>
							<cc1:Button id="AllPass" runat="server" Text="全部通过"></cc1:Button>
							<cc1:Button id="AllDelete" runat="server" Text="全部删除" ButtonImgUrl="../images/del.gif"></cc1:Button>
							<input type="checkbox" name="sendemail" id="sendemail" value="1" checked runat="server">
							发Email 通知被审核用户
						</td>
					</tr>
				</table>
			<cc1:datagrid id="DataGrid1" runat="server" 
					OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
					<Columns>
						<asp:TemplateColumn HeaderText="选择">
							<ItemTemplate>
								<INPUT id="uid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>"	name="uid"></asp:Label>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn DataField="uid" SortExpression="uid"  HeaderText="用户ID" Visible="false"></asp:BoundColumn>
						  <asp:TemplateColumn HeaderText="用户名">
							<ItemTemplate>
								<a href="../global/global_edituser.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>" ><%# DataBinder.Eval(Container, "DataItem.username").ToString()%></a>
							</ItemTemplate>
						</asp:TemplateColumn>
						  <asp:TemplateColumn HeaderText="昵称">
							<ItemTemplate>
								<a href="../global/global_edituser.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>" ><%# DataBinder.Eval(Container, "DataItem.nickname").ToString()%></a>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn DataField="joindate" SortExpression="joindate" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}"></asp:BoundColumn>
						<asp:BoundColumn DataField="regip" SortExpression="regip" HeaderText="注册IP"></asp:BoundColumn>
						<asp:BoundColumn DataField="credits" SortExpression="credits" HeaderText="积分"></asp:BoundColumn>
						<asp:BoundColumn DataField="email" SortExpression="email" HeaderText="邮箱"></asp:BoundColumn>
						<asp:BoundColumn DataField="accessmasks" SortExpression="accessmasks" HeaderText="特殊权限"></asp:BoundColumn>
					</Columns>
				</cc1:datagrid>
		</form>
		<%=footer%>
	</body>
</HTML>
