<table width="100%" class="topmenu">
	<tr><td>
		<a href="users.php"{?if ''==$Saxue.request.status?} class="on"{?/if?}><em>全部会员</em></a><span>|</span>
		<a href="users.php?status=1"{?if '1'==$Saxue.request.status?} class="on"{?/if?}><em>正常会员</em></a><span>|</span>
		<a href="users.php?status=0"{?if '0'==$Saxue.request.status?} class="on"{?/if?}><em>待审核会员</em></a><span>|</span>
		<a href="users.php?status=2"{?if '2'==$Saxue.request.status?} class="on"{?/if?}><em>审核不通过会员</em></a>
	</td></tr>
</table>
<form name="frmsearch" method="post">
<input name="page" id="page" type="hidden" value="1">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table class="sgrid" width="100%" align="center">
    <tr>
        <td>
			<select name="keytype">
				<option value="uname"{?if $Saxue.request.keytype=='uname'?} selected{?/if?}>用户名</option>
				<option value="uid"{?if $Saxue.request.keytype=='uid'?} selected{?/if?}>会员ID</option>
				<option value="email"{?if $Saxue.request.keytype=='email'?} selected{?/if?}>邮箱</option>
			</select>&nbsp;
			<input type="text" name="keyword" id="keyword" class="text" value="{?$Saxue.request.keyword?}"/>&nbsp;&nbsp;
			<input type="submit" name="btnsearch" class="button" value="搜 索">
			<span class="fr">会员数：{?$rowcount?}</span>
        </td>
    </tr>
</table>
</form>
<br />
<form method="post" name="frmpost">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table class="grid" width="100%" align="center">
	<tr class="head">
		<td><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for (var i=0;i<this.form.elements.length;i++){ if (this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }"></td>
		<td>UID</td>
		<td>用户名</td>
		<td>邮箱</td>
		<td>{?function saxue_getsort:'注册日期':'regtime':$Saxue.request.form_sort:$Saxue.request.form_order?}</td>
		<td>{?function saxue_getsort:'最后登录':'logintime':$Saxue.request.form_sort:$Saxue.request.form_order?}</td>
		<td>{?function saxue_getsort:'登录次数':'logintimes':$Saxue.request.form_sort:$Saxue.request.form_order?}</td>
		<td>{?function saxue_getsort:'资金':'money':$Saxue.request.form_sort:$Saxue.request.form_order?}</td>
		<td>{?function saxue_getsort:'积分':'score':$Saxue.request.form_sort:$Saxue.request.form_order?}</td>
		<td>操作</td>
	</tr>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].uid?}"/></td>
		<td>{?$rows[i].uid?}</td>
		<td class="blue"><a href="javascript:viewuser({?$rows[i].uid?})">{?$rows[i].uname?}</a></td>
		<td>{?$rows[i].email?}</td>
		<td>{?$rows[i].regtime|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].logintime|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].logintimes?}</td>
		<td>{?$rows[i].money?}</td>
		<td>{?$rows[i].score?}</td>
		<td>
			<a href="javascript:doDialog('{?$saxue_url?}/member/admin/usermanage.php?action=edit&uid={?$rows[i].uid?}','会员管理——{?$rows[i].uname?}','550','180')">{?function saxue_geticon:'edit':'会员管理'?}</a>
			<a href="javascript:doDialog('{?$saxue_url?}/member/admin/usermanage.php?action=score&uid={?$rows[i].uid?}','积分管理——{?$rows[i].uname?}','380','220')">{?function saxue_geticon:'credit':'积分管理'?}</a>
			<a href="javascript:doDialog('{?$saxue_url?}/member/admin/usermanage.php?action=money&uid={?$rows[i].uid?}','资金管理——{?$rows[i].uname?}','380','220')">{?function saxue_geticon:'money':'资金管理'?}</a>
			<a href="usermanage.php?action=delete&uid={?$rows[i].uid?}" onclick="return confirm('你确定要删除会员『{?$rows[i].uname?}』吗？')">{?function saxue_geticon:'del':'删除会员'?}</a>
		</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="pass">审核通过</option>
				<option value="nopass">审核不通过</option>
				<option value="delete">删除会员</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
</table>
</form>
<table width="100%"><tr><td width="100%">
	<div class="fl pages">
		<ul>
			<li><span class="fl">每页显示:</span></li>
			<li{?if $Saxue.request.pagesize==10?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(10)">10</a></li>
			<li{?if $Saxue.request.pagesize==30?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(30)">30</a></li>
			<li{?if $Saxue.request.pagesize==50?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(50)">50</a></li>
			<li{?if $Saxue.request.pagesize==100?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(100)">100</a></li>
		</ul>
	</div>
	<div class="fr pages">{?$url_jumppage?}</div>
</td></tr></table>