<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_user_search" %>
<%@ 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"%>
<script language="javascript" src="scripts/calendar.js"></script>
<bbs:AdminHeader title="搜索论坛注册会员" runat="server" />
<script language="javascript">
// 点击收缩
function collapse(img, objName)
{
	var obj;
	obj = $(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" align="left"><img src="images/folder_open.gif" style="cursor:hand" onclick="collapse(this, 'searchtable')" />查询注册会员</td>
			<td align="right" class="td1">
				<a href="#searchresult"><img src="images/p_down.gif" alt="搜索结果" border="0" /></a>
			</td>
		</tr>
		<tr>
			<td class="left" width="30%">注册名</td>
			<td class="right" width="70%">
				<input id="name" maxlength="12" style="width:130px" runat="server" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>可以只输入注册名的一部分</span>
			</td>
		</tr>
		<tr>
			<td class="left">注册IP或最后IP</td>
			<td class="right">
				<input id="ip" maxlength="15" style="width:130px" runat="server" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>可以使用通配符*， 如 221.224.52.*, 221.224.*.*</span>
			</td>
		</tr>
		<tr>
			<td class="left">此日期后未登录过</td>
			<td class="right">
				<input id="lasttime" maxlength="10" style="width:130px" readonly="readonly" onclick="calendar.setHook(this)"
					runat="server" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout',this)" />
				<br />
				<span>在这个日期之后再未登录过</span>
			</td>
		</tr>
		<tr>
			<td class="left">积分范围</td>
			<td class="right">积分在 <input id="expmin" maxlength="5" style="width:50px" runat="server" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				到 <input id="expmax" maxlength="5" style="width:80px" runat="server" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				之间
				<br />
				<span>-9999到99999之间的整数</span>
			</td>
		</tr>
		<tr>
			<td class="left">是否锁定</td>
			<td class="right"><input type="checkbox" id="islock" class="smallbox" value="1" runat="server" />
				<label for="islock">被锁定的会员</label>
				<br />
				<span>只显示已被锁定的会员</span>
			</td>
		</tr>
		<tr>
			<td class="left">是否等待激活</td>
			<td class="right"><input type="checkbox" id="iswaitactivate" class="smallbox" value="1" runat="server" />
				<label for="iswaitactivate">等待激活的会员</label>
				<br />
				<span>只显示新注册后等待激活的会员</span>
			</td>
		</tr>
		<tr>
			<td colspan="3" align="center"><input type="submit" value="查询会员" class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<span>不填任何查询条件即列出所有会员</span></td>
		</tr>
	</table>
</form>
<form id="operate" runat="server">
	<a name="searchresult"></a>
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
		<tr align="center">
			<td width="4%" class="title">
			</a>
			<td width="7%" class="title">编辑</td>
			<td width="13%" class="title">会员名</td>
			<td width="6%" class="title">性别</td>
			<td width="11%" class="title">等级</td>
			<td width="7%" class="title">
			状态</a>
			<td width="6%" class="title">
			发帖</a>
			<td width="6%" class="title">
			积分</a>
			<td width="15%" class="title">
			最后IP</a>
			<td width="15%" class="title">最后登录</td>
			<td width="10%" class="title">注册日期</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 align="center"><Dvbbs:Anchor id="alter" text="编辑" 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="status" 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="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="initrow" runat="server">
			<td colspan="11"><span class="t3">--- 请设置查询表单，并点击查询按钮 ---</span></td>
		</tr>
		<tr id="operaterow" runat="server">
			<td align="center"><input name="checkall" id="checkall" type="checkbox" class="checkbox" onclick="chkAllBox()" /></td>
			<td colspan="10">&nbsp; <input type="radio" class="smallbox" id="activate" name="option" runat="server" checked="true" />
				<label for="activate">激活选中的会员</label>
				&nbsp; <input type="radio" class="smallbox" id="delete" name="option" runat="server" />
				<label for="delete">删除选中记录</label>
				&nbsp; &nbsp; <input type="submit" class="button" value="执 行" onclick="return confirm('确定吗?')" onFocus="IEvent('focus',this);"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				&nbsp;
				<Dvbbs:Span id="result" class="t2" runat="server" />
			</td>
		</tr>
		<tr>
			<td colspan="11" class="title"><Dvbbs:Pager id="pager" per="30" runat="server" /></td>
		</tr>
	</table>
</form>
<bbs:AdminFooter runat="server" />
