{dede:config.pagesize value="30"/}
<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>网站会员管理</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
  <script src="js/ieemu.js"></script>
  <script src="js/member.js"></script>
</head>
<body>
  <form action="member_main.php" name="form1" method="get">
    <table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
      <tr>
        <td height="36" bgcolor="#f8f8f8">
          <table cellpadding="0" cellspacing="0">
            <tr>
              <td width="280" align="center"><input name="keyword" type="text" id="keyword" placeholder="请输入关键词" value="{dede:global name='keyword'/}" style="width:260px"></td>
              <td width="170">
                <select name="sortkey" id="sortkey" style="width:160px">
                  {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" style="width:160px">
                  {dede:global name='sexform'/}
                  <option value="男">男</option>
                  <option value="女">女</option>
                  <option value="保密">保密</option>
                </select>
              </td>
              <td width="170">
                <select name="spacesta" id="spacesta" style="width:160px">
                  <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></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </form>
  <form name="form2">
    <table width="98%" align="center" cellpadding="2" cellspacing="1" class="table maintable mb-3">
      <tr>
        <td height="26" colspan="9" background="../static/web/img/tbg.gif">
          <table width="99%" cellspacing="0" cellpadding="0" class="table table-borderless">
            <tr>
              <td width="30%" style="padding-left:10px">注册会员列表</td>
              <td width="70%" align="right" style="padding-right:10px">
                <a href="member_main.php">所有会员</a> |
                <a href="member_main.php?spacesta=-2">被禁言用户</a> |
                <a href="member_main.php?matt=1">被推荐</a> |
                <a href="member_main.php?matt=0">普通</a>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr bgcolor="#FEFCEF" height="26" align="center">
        <td width="6%">选择</td>
        <td width="6%">mid</td>
        <td width="10%">登录名</td>
        <td width="16%">email/昵称</td>
        <td width="6%">性别</td>
        <td width="8%">会员等级</td>
        <td width="15%">会员属性</td>
        <td width="10%">最后登录</td>
        <td>操作</td>
      </tr>
      {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'}
      <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
        <td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np"></td>
        <td>{dede:field.mid/}</td>
        <td>
          <?php
          echo ''.$fields['userid'].'';
          if($fields['spacesta']==-2) echo "<span class='text-danger'>[禁言]</span>";
          if($fields['spacesta']==-1) echo "<span style='color:#e74d58'>[未审核]</span>";
          if(!empty($fields['face'])) {
            echo "<br><img src='{$fields['face']}' title='浏览会员空间' style='max-width:80px;height:auto'>";
          }
          ?>
        </td>
        <td>{dede:field.email/}<br>
          昵称：{dede:field.uname/}
        </td>
        <td>
          {dede:field.sex /}
        </td>
        <td><a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a></td>
        <td>{dede:field.mtype /} 用户 {dede:field.matt function="GetMAtt(@me)" /}<br>
          金币：{dede:field.money /} 积分：{dede:field.scores /}
        </td>
        <td>{dede:field.logintime function="MyDate('y-m-d H:i',@me)" /}<br>
          {dede:field.loginip /}
        </td>
        <td align="center">
          <a href="member_view.php?id={dede:field.mid/}" class="btn btn-success btn-sm">修改</a>
          <a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-success btn-sm">删除</a>
          <a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-success btn-sm">文档</a>
          <a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-success btn-sm">提升</a>
        </td>
      </tr>
      {/dede:datalist}
      <tr>
        <td colspan="9" class="py-3">
          <button type="button" onClick="selAll();" class="btn btn-success btn-sm">全选</button>
          <button type="button" onClick="noSelAll();" class="btn btn-success btn-sm">取消</button>
          <button type="button" onClick="delArc(0);" class="btn btn-success btn-sm">删除</button>（如果已经整合了论坛的用户请不要使用批量删除功能）
        </td>
      </tr>
      <tr>
        <td height="36" bgcolor="f8f8f8" colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
      </tr>
    </table>
  </form>
</body>
</html>