ClearMember.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../member/class/user.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. //验证用户
  11. $lur=is_login();
  12. $logininid=$lur['userid'];
  13. $loginin=$lur['username'];
  14. $loginrnd=$lur['rnd'];
  15. $loginlevel=$lur['groupid'];
  16. $loginadminstyleid=$lur['adminstyleid'];
  17. //ehash
  18. $ecms_hashur=hReturnEcmsHashStrAll();
  19. //验证权限
  20. CheckLevel($logininid,$loginin,$classid,"member");
  21. $enews=$_POST['enews'];
  22. if($enews)
  23. {
  24. hCheckEcmsRHash();
  25. }
  26. if($enews=='ClearMember')
  27. {
  28. @set_time_limit(0);
  29. include('../../member/class/member_adminfun.php');
  30. include('../../member/class/member_modfun.php');
  31. admin_ClearMember($_POST,$logininid,$loginin);
  32. }
  33. //会员组
  34. $group='';
  35. $sql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
  36. while($level_r=$empire->fetch($sql))
  37. {
  38. $group.="<option value=".$level_r[groupid].">".$level_r[groupname]."</option>";
  39. }
  40. db_close();
  41. $empire=null;
  42. ?>
  43. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  44. <html>
  45. <head>
  46. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  47. <title>清理会员</title>
  48. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  49. <script type="text/javascript" src="../ecmseditor/js/jstime/WdatePicker.js"></script>
  50. </head>
  51. <body>
  52. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  53. <tr>
  54. <td>位置:<a href="ListMember.php<?=$ecms_hashur['whehref']?>">管理会员</a>&nbsp;>&nbsp;清理会员</td>
  55. </tr>
  56. </table>
  57. <form name="form1" method="post" action="ClearMember.php" onsubmit="return confirm('确认要删除?');">
  58. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  59. <?=$ecms_hashur['form']?>
  60. <tr class="header">
  61. <td height="25" colspan="2">清理会员
  62. <input name="enews" type="hidden" id="enews" value="ClearMember"></td>
  63. </tr>
  64. <tr bgcolor="#FFFFFF">
  65. <td width="20%" height="25">用户名包含字符:</td>
  66. <td width="80%" height="25"><input name=username type=text id="username"></td>
  67. </tr>
  68. <tr bgcolor="#FFFFFF">
  69. <td height="25">邮箱地址包含字符:</td>
  70. <td height="25"><input name=email type=text id="email"></td>
  71. </tr>
  72. <tr bgcolor="#FFFFFF">
  73. <td height="25">用户ID 介于:</td>
  74. <td height="25"><input name="startuserid" type="text" id="startuserid">
  75. --
  76. <input name="enduserid" type="text" id="enduserid"></td>
  77. </tr>
  78. <tr bgcolor="#FFFFFF">
  79. <td height="25" valign="top">所属会员组:</td>
  80. <td height="25"><select name="groupid" id="groupid">
  81. <option value="0">不限</option>
  82. <?=$group?>
  83. </select></td>
  84. </tr>
  85. <tr bgcolor="#FFFFFF">
  86. <td height="25" valign="top">注册时间 介于:</td>
  87. <td height="25"><input name="startregtime" type="text" id="startregtime" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  88. --
  89. <input name="endregtime" type="text" id="endregtime" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  90. <font color="#666666">(格式:2011-01-27)</font></td>
  91. </tr>
  92. <tr bgcolor="#FFFFFF">
  93. <td height="25">点数 介于:</td>
  94. <td height="25"><input name="startuserfen" type="text" id="startuserfen">
  95. --
  96. <input name="enduserfen" type="text" id="enduserfen"></td>
  97. </tr>
  98. <tr bgcolor="#FFFFFF">
  99. <td height="25">帐户余额 介于:</td>
  100. <td height="25"><input name="startmoney" type="text" id="startmoney">
  101. --
  102. <input name="endmoney" type="text" id="endmoney"></td>
  103. </tr>
  104. <tr bgcolor="#FFFFFF">
  105. <td height="25">是否审核:</td>
  106. <td height="25"><input name="checked" type="radio" value="0" checked>
  107. 不限
  108. <input name="checked" type="radio" value="1">
  109. 已审核会员
  110. <input name="checked" type="radio" value="2">
  111. 未审核会员</td>
  112. </tr>
  113. <tr bgcolor="#FFFFFF">
  114. <td height="25">&nbsp;</td>
  115. <td height="25"><input type="submit" name="Submit" value="删除会员">
  116. </td>
  117. </tr>
  118. </table>
  119. </form>
  120. </body>
  121. </html>