国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
6.5KB

  1. {dede:config.pagesize value='30'/}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  7. <title>所有会员列表</title>
  8. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="/static/web/css/admin.css">
  11. </head>
  12. <body>
  13. <div class="container-fluid">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  16. <li class="breadcrumb-item active">所有会员列表</li>
  17. </ol>
  18. <div class="card shadow-sm mb-3">
  19. <div class="card-body">
  20. <form action="member_main.php" name="form1" method="get">
  21. <input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="{dede:global name='keyword'/}" class="admin-input-lg mr-2">
  22. <select name="sortkey" id="sortkey" class="admin-input-sm mr-2">
  23. {dede:global name='sortform'/}
  24. <option value="mid">mid/注册时间</option>
  25. <option value="logintime">登录时间</option>
  26. <option value="rank">会员等级</option>
  27. <option value="money">会员金币</option>
  28. <option value="scores">会员积分</option>
  29. </select>
  30. <select name="sex" id="sex" class="admin-input-sm mr-2">
  31. {dede:global name='sexform'/}
  32. <option value="男">男</option>
  33. <option value="女">女</option>
  34. <option value="保密">保密</option>
  35. </select>
  36. <select name="spacesta" id="spacesta" class="admin-input-sm">
  37. <option value="-10">会员状态</option>
  38. <?php
  39. foreach($staArr as $k=>$v)
  40. {
  41. if ($spacesta==$k) echo "<option value='$k' selected>$v</option>";
  42. else echo "<option value='$k'>$v</option>";
  43. }
  44. ?>
  45. </select>
  46. <button type="submit"class="btn btn-success btn-sm">搜索</button>
  47. <a href="member_main.php" class="btn btn-success btn-sm">所有会员</a>
  48. <a href="member_main.php?spacesta=-2" class="btn btn-success btn-sm">禁言会员</a>
  49. <a href="member_main.php?matt=1" class="btn btn-success btn-sm">推荐会员</a>
  50. <a href="member_main.php?matt=0" class="btn btn-success btn-sm">注册会员</a>
  51. </form>
  52. </div>
  53. </div>
  54. <div class="card shadow-sm">
  55. <div class="card-header">所有会员列表</div>
  56. <div class="card-body">
  57. <form name="form2">
  58. <div class="table-responsive">
  59. <table class="table table-borderless table-hover">
  60. <thead>
  61. <tr>
  62. <td scope="col">选择</td>
  63. <td scope="col">mid</td>
  64. <td scope="col">头像/账号</td>
  65. <td scope="col">昵称</td>
  66. <td scope="col">等级</td>
  67. <td scope="col">钱包积分</td>
  68. <td scope="col">地址/时间</td>
  69. <td scope="col">投稿限制</td>
  70. <td scope="col">操作</td>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. {dede:datalist}
  75. <tr>
  76. <td><input type="checkbox" name="mid" value="{dede:field.mid/}"></td>
  77. <td>{dede:field.mid/}</td>
  78. <td>
  79. <?php if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img-sm'>";};echo ' <span>'.$fields['userid'].'</span>';if ($fields['spacesta']==-2) echo ' <span class="btn btn-danger btn-sm">禁言</span>';if ($fields['spacesta']==-1) echo ' <span class="btn btn-danger btn-sm">待审核</span>';?>
  80. <span>{dede:field.matt function="GetMAtt(@me)"/}</span>
  81. </td>
  82. <td>{dede:field.uname/}</td>
  83. <td>{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</td>
  84. <td>积分:{dede:field.scores/}/金币:{dede:field.money/}/余额:{dede:field.user_money/}</td>
  85. <td>{dede:field.loginip/}/{dede:field.logintime function="MyDate('Y-m-d H:i:s',@me)"/}</td>
  86. <td>{dede:field.send_max/}</td>
  87. <td>
  88. <a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-user-plus" title="提升"></i></a>
  89. <a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-file-text" title="文档"></i></a>
  90. <a href="member_edit.php?id={dede:field.mid/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
  91. <a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
  92. </td>
  93. </tr>
  94. {/dede:datalist}
  95. <tr>
  96. <td colspan="9">
  97. <a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
  98. <a href="javascript:noSelAll();" class="btn btn-success btn-sm">取消</a>
  99. <a href="javascript:delArc(0);" class="btn btn-danger btn-sm">删除</a>
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. </div>
  105. </form>
  106. {dede:pagelist listsize='6'/}
  107. </div>
  108. </div>
  109. </div>
  110. <script>
  111. if (moz == null) {
  112. var ie = document.all != null;
  113. var moz = !ie && document.getElementById != null && document.layers == null;
  114. }
  115. function delArc(mid) {
  116. var qstr=getCheckboxItem();
  117. if (mid==0) mid = getOneItem();
  118. location="member_do.php?id="+qstr+"&dopost=delmembers";
  119. }
  120. function getCheckboxItem() {
  121. var allSel="";
  122. if (document.form2.mid.value) return document.form2.mid.value;
  123. for (i=0;i<document.form2.mid.length;i++) {
  124. if (document.form2.mid[i].checked) {
  125. if (allSel=="")
  126. allSel=document.form2.mid[i].value;
  127. else
  128. allSel=allSel+"`"+document.form2.mid[i].value;
  129. }
  130. }
  131. return allSel;
  132. }
  133. function getOneItem() {
  134. var allSel="";
  135. if (document.form2.mid.value) return document.form2.mid.value;
  136. for (i=0;i<document.form2.mid.length;i++) {
  137. if (document.form2.mid[i].checked) {
  138. allSel = document.form2.mid[i].value;
  139. break;
  140. }
  141. }
  142. return allSel;
  143. }
  144. function selAll() {
  145. if (typeof document.form2.mid.length === "undefined") {
  146. document.form2.mid.checked = true;
  147. }
  148. for (i=0;i<document.form2.mid.length;i++) {
  149. if (!document.form2.mid[i].checked) {
  150. document.form2.mid[i].checked = true;
  151. }
  152. }
  153. }
  154. function noSelAll() {
  155. if (typeof document.form2.mid.length === "undefined") {
  156. document.form2.mid.checked = false;
  157. }
  158. for (i=0;i<document.form2.mid.length;i++) {
  159. if (document.form2.mid[i].checked) {
  160. document.form2.mid[i].checked = false;
  161. }
  162. }
  163. }
  164. </script>
  165. </body>
  166. </html>