<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_user_remove" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="已被删除的注册会员列表" runat="server" />
<!--<script language="javascript" src="../scripts/calendar.js"></script>-->
<script language="javascript" src="../templates/default/scripts/calendar.js"></script>
<script language="javascript">
function collapse(img, objName)
{
	var obj;
	obj = document.getElementById(objName);
	var k;
	k = obj.rows.length;
	if (img.src.indexOf('open') != -1)
	{
		img.src = img.src.replace('open', 'close');
		for (i=1; i<k; i++)
		{
			obj.rows[i].style.display = 'none';
		}
	}
	else
	{
		img.src = img.src.replace('close', 'open');
		for (i=1; i<k; i++)
		{
			obj.rows[i].style.display = '';
		}
	}
}
function chkAllBox()
{
	var f = document.forms['operate'];
	var ischecked = f.checkall.checked;
	for (var i=0; i<f.elements.length; i++)
	{
		if (f.elements[i].type.toLowerCase() == "checkbox")
		{
			f.elements[i].checked = ischecked;
		}
	}
}
</script>
<form id="searchform" method="get">
	<input type="hidden" name="action" value="search" />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="searchtable">
		<tr>
			<td class="title" colspan="2">
				<img src="images/folder_close.gif" style="cursor:hand" onclick="collapse(this, 'searchtable')" />
				已被删除的会员 (展开此表格可以进行筛选)
			</td>
		</tr>
		<tr style="display:none">
			<td class="left" width="30%">注册名</td>
			<td class="right" width="70%">
				<input id="name" maxlength="12" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" runat="server" />
				<br />
				<span>可以只输入注册名的一部分</span>
			</td>
		</tr>
		<tr style="display:none">
			<td class="left">注册IP或最后IP</td>
			<td class="right">
				<input id="ip" maxlength="15" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" runat="server" />
				<br />
				<span>可以使用通配符*， 如 221.224.52.*, 221.224.*.*</span>
			</td>
		</tr>
		<tr style="display:none">
			<td class="left">此日期后未登录过</td>
			<td class="right">
				<input id="lasttime" maxlength="10" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly="readonly"
					onclick="calendar.setHook(this)" runat="server" />
				<br />
				<span>在这个日期之后再未登录过</span>
			</td>
		</tr>
		<tr style="display:none">
			<td class="left">积分范围</td>
			<td class="right">积分在 <input id="expmin" maxlength="5" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:50px;" runat="server" />
				到 <input id="expmax" maxlength="5" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:50px;"
					runat="server" /> 之间
				<br />
				<span>-9999到99999之间的整数</span>
			</td>
		</tr>
		<tr style="display:none">
			<td class="bottom" align="center" colspan="2"><input type="submit" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout',this)" class="button" value="查 询" class="button" />
				&nbsp; 不填任何查询条件即列出所有会员</td>
		</tr>
	</table>
</form>

<form id="operate" runat="server">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
		<tr>
			<td class="title" colspan="10">
				已被删除会员列表
			</td>
		</tr>
		<tr align="center">
			<td width="5%">选择</td>
			<td width="13%">会员名</td>
			<td width="5%">性别</td>
			<td width="15%">等级</td>
			<td width="6%">发帖</td>
			<td width="6%">积分</td>
			<td width="10%">注册时IP</td>
			<td width="10%">最后IP</td>
			<td width="15%">最后登录</td>
			<td width="10%">注册日期</td>
		</tr>
		<asp:Repeater enableviewstate="false" id="list" runat="server">
			<ItemTemplate>
				<tr onmouseover="this.className='highlight'" onmouseout="this.className=''">
					<td align="center"><Dvbbs:Span id="box" runat="server" /></td>
					<td style="text-indent:4px"><Dvbbs:Anchor id="name" runat="server" /></td>
					<td align="center"><Dvbbs:Span id="sex" runat="server" /></td>
					<td align="center"><Dvbbs:Span id="level" runat="server" /></td>
					<td align="center"><Dvbbs:Span id="post" runat="server" /></td>
					<td align="center"><Dvbbs:Span id="experience" runat="server" /></td>
					<td style="text-indent:6px"><Dvbbs:Span id="firstip" runat="server" /></td>
					<td style="text-indent:6px"><Dvbbs:Span id="lastip" runat="server" /></td>
					<td style="text-indent:6px"><Dvbbs:Span id="lasttime" runat="server" /></td>
					<td style="text-indent:6px"><Dvbbs:Span id="jointime" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<tr id="operaterow" runat="server">
			<td align="center"><input name="checkall" id="checkall" type="checkbox" class="checkbox" onclick="chkAllBox()" /></td>
			<td colspan="9">
				<input type="radio" class="radio" name="removeoption" id="removeuser0" value="0" /><label for="removeuser0">还原用户</label><br />
				<input type="radio" class="radio" name="removeoption" id="removeuser1" value="1" /><label for="removeuser1">删除用户信息但保留帖子</label><br />
				<input type="radio" class="radio" name="removeoption" id="removeuser2" value="2" /><label for="removeuser2">删除用户及其全部信息</label>
			</td>
		</tr>
		<tr>
			<td colspan="10" align="center">
				<input type="submit" class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" value="提　交" /><Dvbbs:Span id="result" class="t2" runat="server" />
			</td>
		</tr>
		<tr>
			<td colspan="10" class="title"><Dvbbs:Pager id="pager" per="30" runat="server" /></td>
		</tr>
	</table>
</form>
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table2">
	<tr>
		<td class="title">说明</td>
	</tr>
	<tr>
		<td>会员被删除后，记录尚在，但已被废弃，通过此功能可以查看已被删除的会员。一般地说，发过帖子的会员不适合被删除，因为后来者注册其名会引起混淆。会员记录被删除后即如同不存在，不必理会。因为数量不会很大，所以也无须担心影响效率。</td>
	</tr>
</table>
<bbs:AdminFooter runat="server" />
