国内流行的内容管理系统(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.

191 lines
9.1KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>查看会员</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  10. <script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script>
  11. <script language="javascript" src="js/main.js"></script>
  12. <script>
  13. function checkSubmit()
  14. {
  15. if(document.form2.email.value=="")
  16. {
  17. document.form2.email.focus();
  18. ShowMsg("Email不能为空");
  19. return false;
  20. }
  21. if(document.form2.uname.value=="")
  22. {
  23. document.form2.uname.focus();
  24. ShowMsg("用户昵称不能为空");
  25. return false;
  26. }
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  32. <tr>
  33. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href='<?php echo $ENV_GOBACK_URL; ?>'>会员管理</a> &gt; 查看会员</td>
  34. </tr>
  35. <tr>
  36. <td height="200" align='center'>
  37. <?php
  38. if($row['matt']==10) echo "<span style='color:#dc3545'>当前用户是网站管理员关连的帐号,请小心操作</span>";
  39. ?>
  40. <table width="98%" cellspacing="0" cellpadding="6" class="table table-borderless">
  41. <form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();">
  42. <input type="hidden" name="dopost" value="edituser">
  43. <input type="hidden" name="id" value="<?php echo $id?>">
  44. <tr>
  45. <td width="260" height="26" class="bline">用户名:</td>
  46. <td height="26" class="bline">
  47. <?php
  48. echo "".$row['userid']."";
  49. if($row['face']!='') {
  50. echo "<br><img src='{$row['face']}' style='max-width:80px;height:auto'>";
  51. }
  52. ?>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td height="26" class="bline">密码:</td>
  57. <td height="26" ><input type="text" name="pwd" id="pwd" style="width:260px">(不修改留空)</td>
  58. </tr>
  59. <tr>
  60. <td height="26" class="bline">注册时间:</td>
  61. <td height="26" class="bline">
  62. <?php echo GetDateTimeMk($row['jointime'])?>
  63. IP:<?php echo $row['joinip']?>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="26" class="bline">最近登录时间:</td>
  68. <td height="26" class="bline">
  69. <?php echo GetDateTimeMk($row['logintime'])?>
  70. IP:<?php echo $row['loginip']?>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td height="26" class="bline">用户类型:</td>
  75. <td height="26" ><?php echo $row['mtype']; ?></td>
  76. </tr>
  77. <tr>
  78. <td height="26" class="bline">电子邮箱:</td>
  79. <td height="26" class="bline"><input name="email" type="text" id="email" value="<?php echo $row['email']?>" style="width:260px"></td>
  80. </tr>
  81. <tr>
  82. <td height="26" class="bline">昵称:</td>
  83. <td height="26" class="bline"><input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" style="width:260px"></td>
  84. </tr>
  85. <tr>
  86. <td height="26" class="bline">性别:</td>
  87. <td height="26" class="bline">
  88. <label><input type="radio" name="sex" class="np" value="男"<?php if($row['sex']=="男" ) echo" checked='1'" ; ?>>
  89. 男</label> &nbsp;
  90. <label><input type="radio" name="sex" class="np" value="女"<?php if($row['sex']=="女" ) echo" checked='1'" ; ?>>
  91. 女</label>
  92. <label><input type="radio" name="sex" class="np" value=""<?php if($row['sex']=="" ) echo" checked='1'" ; ?>>
  93. 保密</label>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td height="26" class="bline">金币 :</td>
  98. <td height="26" class="bline">
  99. <input name="money" type="text" id="money" value="<?php echo $row['money']; ?>" style="width:60px">
  100. 积分:<input name="scores" type="text" id="scores" value="<?php echo $row['scores']; ?>" style="width:60px">
  101. </td>
  102. </tr>
  103. <tr>
  104. <td height="26" class="bline">等级:</td>
  105. <td height="26" class="bline">
  106. <?php
  107. $MemberTypes = array();
  108. $dsql->SetQuery("Select `rank`,membername From `#@__arcrank` where `rank`>0");
  109. $dsql->Execute('n');
  110. $MemberTypes[0] = "限制会员";
  111. while($nrow = $dsql->GetObject('n')){
  112. $MemberTypes[$nrow->rank] = $nrow->membername;
  113. }
  114. $options = "<select name='rank' style='width:160px'>";
  115. foreach($MemberTypes as $k=>$v)
  116. {
  117. if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>";
  118. else $options .= "<option value='$k' selected>$v</option>";
  119. }
  120. $options .= "</select>";
  121. echo $options;
  122. ?>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td height="26" class="bline">升级时间:</td>
  127. <td height="26" class="bline"><input type="text" name="uptime" value="<?php echo $row['uptime']=($row['uptime']=='0')? GetDateTimeMk(time()) : GetDateTimeMk($row['uptime']); ?>" id="uptime" style="width:160px">(如果您要升级会员,必须设置此时间为当前时间)</td>
  128. </tr>
  129. <tr>
  130. <td height="26" class="bline">会员天数:</td>
  131. <td height="26" class="bline"><input type="text" name="exptime" value="<?php echo $row['exptime']?>" id="exptime" style="width:60px">(如果您要升级会员,会员天数必须大于0)</td>
  132. </tr>
  133. <?php if($mhasDay!=0){ $mhasDay=($mhasDay>0)? $mhasDay : '<span style="color:#dc3545">该会员已经到期</span>'; ?>
  134. <tr>
  135. <td height="26" class="bline">会员剩余天数:</td>
  136. <td height="26" class="bline"><?php echo $mhasDay; ?></td>
  137. </tr>
  138. <tr>
  139. <?php } ?>
  140. <td height="26" class="bline">推荐级别:</td>
  141. <td height="26" class="bline">
  142. <input name="oldmatt" type="hidden" id="oldmatt" value="<?php echo $row['matt']?>" style="width:60px">
  143. <input name="matt" type="text" id="matt" value="<?php echo $row['matt']?>" style="width:60px">(0为普通,1为推荐,10为管理员不能在前台登录非管理员ID是严格使用10属性的,要新建管理在<a href='sys_admin_user_add.php' target='_blank'>系统帐号</a>地方增加)
  144. </td>
  145. </tr>
  146. <tr>
  147. <td height="26" class="bline">资料状况:</td>
  148. <td height="26" class="bline">
  149. <select name='spacesta' style='width:160px'>
  150. <?php
  151. foreach($staArr as $k=>$v)
  152. {
  153. if($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>";
  154. else echo "<option value='$k'>$v</option>";
  155. }
  156. ?>
  157. </select>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td height="26" height="60">空间信息:</td>
  162. <td height="26" class="bline">
  163. <?php
  164. $nrow = $dsql->GetOne("Select * From `#@__member_tj` where mid='{$row['mid']}' ");
  165. echo "文章:{$nrow['article']} 图集:{$nrow['album']} 文档:{$nrow['archives']} 收藏:{$nrow['stow']}";
  166. echo "<br>空间访问:{$nrow['homecount']} 页面访问:{$nrow['pagecount']} 留言:{$nrow['feedback']} 好友:{$nrow['friend']} ";
  167. ?>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td height="26" class="bline">特殊操作:</td>
  172. <td height="26" class="bline">
  173. <a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>&jumpurl=../user/edit_fullinfo.php" target="_blank" class="btn btn-success btn-sm">修改资料</a>
  174. <a href="member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>" target="_blank" class="btn btn-success btn-sm">登录此用户面板</a>
  175. <a href="../user/index.php?uid=<?php echo $row['userid']; ?>" target="_blank" class="btn btn-success btn-sm">浏览此用户</a>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td colspan="2" align="center" class="py-3">
  180. <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
  181. <button type="reset" name="Submit22" class="btn btn-success btn-sm">重置</button>
  182. <button type="button" onclick="javascript:history.go(-1);" class="btn btn-success btn-sm">返回</button>
  183. </td>
  184. </tr>
  185. </form>
  186. </table>
  187. </td>
  188. </tr>
  189. </table>
  190. </body>
  191. </html>