{dede:config.pagesize value='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>所有会员列表</title>
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
		<script src="js/user.js"></script>
	</head>
	<body>
		<form action="member_main.php" name="form1" method="get">
			<table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3">
				<tr bgcolor="#f5f5f5">
					<td width="380" align="center"><input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="{dede:global name='keyword'/}" class="admin-input-md"></td>
					<td width="170">
						<select name="sortkey" id="sortkey" class="admin-input-sm">
							{dede:global name='sortform'/}
							<option value="mid">mid/注册时间</option>
							<option value="logintime">登录时间</option>
							<option value="rank">会员等级</option>
							<option value="money">会员金币</option>
							<option value="scores">会员积分</option>
						</select>
					</td>
					<td width="170">
						<select name="sex" id="sex" class="admin-input-sm">
							{dede:global name='sexform'/}
							<option value="男">男</option>
							<option value="女">女</option>
							<option value="保密">保密</option>
						</select>
					</td>
					<td width="170">
						<select name="spacesta" id="spacesta" class="admin-input-sm">
							<option value="-10">会员状态</option>
							<?php
							foreach($staArr as $k=>$v)
							{
								if ($spacesta==$k) echo "<option value='$k' selected>$v</option>";
								else echo "<option value='$k'>$v</option>";
							}
							?>
						</select>
					</td>
					<td>
						<button type="submit" class="btn btn-success btn-sm">搜索</button>
						<a href="member_main.php" class="btn btn-success btn-sm">所有用户</a>
						<a href="member_main.php?spacesta=-2" class="btn btn-success btn-sm">禁言用户</a>
						<a href="member_main.php?matt=1" class="btn btn-success btn-sm">推荐用户</a>
						<a href="member_main.php?matt=0" class="btn btn-success btn-sm">普通用户</a>
					</td>
				</tr>
			</table>
		</form>
		<form name="form2">
			<table cellpadding="2" cellspacing="1" align="center" class="table maintable mb-3">
				<tr>
					<td bgcolor="#f5f5f5" colspan="9">所有会员列表</td>
				</tr>
				<tr bgcolor="#e9ecef" align="center">
					<td width="6%">选择</td>
					<td width="6%">mid</td>
					<td width="16%">头像/用户名/类型</td>
					<td width="8%">公司名/昵称</td>
					<td width="8%">等级</td>
					<td width="16%">钱包积分</td>
					<td width="6%">投稿限制</td>
					<td width="14%">地址/时间</td>
					<td>操作</td>
				</tr>
				{dede:datalist empty='<tr><td colspan="9" align="center">暂无用户</td></tr>'}
				<tr align="center">
					<td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td>
					<td>{dede:field.mid/}</td>
					<td align="left">
						<span class="mr-1">
							<?php
							if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";};
							echo ''.$fields['userid'].'';
							if ($fields['spacesta']==-2) echo " <span class='btn btn-outline-danger btn-sm'>禁言</span>";
							if ($fields['spacesta']==-1) echo " <span class='btn btn-outline-danger btn-sm'>未审核</span>";
							?>
						</span>
						<span>{dede:field.matt function="GetMAtt(@me)"/}</span>
					</td>
					<td>{dede:field.uname/}</td>
					<td>{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</td>
					<td>
						<span class="mr-1">积分：{dede:field.scores/}</span>
						<span class="mr-1">金币：{dede:field.money/}</span> 
						<span>余额：{dede:field.user_money/}</span>
					</td>
					<td>{dede:field.send_max/}</td>
					<td>
						<span class="mr-1">{dede:field.loginip/}</span>
						<span>{dede:field.logintime function="MyDate('Y-m-d H:i:s',@me)"/}</span>
					</td>
					<td>
						<a href="member_view.php?id={dede:field.mid/}" class="btn btn-light btn-sm"><i class="fa fa-eye"></i> 查看</a>
						<a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-file-text"></i> 文档</a>
						<a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-user-plus"></i> 提升</a>
						<a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a>
					</td>
				</tr>
				{/dede:datalist}
				<tr>
					<td colspan="9">
						<a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
						<a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
						<a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a>
					</td>
				</tr>
				<tr>
					<td colspan="9" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td>
				</tr>
			</table>
		</form>
	</body>
</html>