ListMemberGroup.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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,"membergroup");
  21. $url="<a href=ListMemberGroup.php".$ecms_hashur['whehref'].">管理会员组</a>";
  22. ?>
  23. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  24. <html>
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  27. <title>管理会员组</title>
  28. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  29. </head>
  30. <body>
  31. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
  32. <tr>
  33. <td width="50%">位置:
  34. <?=$url?>
  35. </td>
  36. <td><div align="right" class="emenubutton">
  37. <input type="button" name="Submit5" value="增加会员组" onclick="self.location.href='AddMemberGroup.php?enews=AddMemberGroup<?=$ecms_hashur['ehref']?>';">
  38. </div></td>
  39. </tr>
  40. </table>
  41. <br>
  42. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  43. <tr class="header">
  44. <td width="6%" height="25"> <div align="center">ID</div></td>
  45. <td width="35%" height="25"> <div align="center">会员组名称</div></td>
  46. <td width="11%"><div align="center">级别值</div></td>
  47. <td width="16%"><div align="center">发送短消息</div></td>
  48. <td width="14%"><div align="center">注册地址</div></td>
  49. <td width="18%" height="25"> <div align="center">操作</div></td>
  50. </tr>
  51. <?
  52. $sql=$empire->query("select * from {$dbtbpre}enewsmembergroup order by groupid");
  53. while($r=$empire->fetch($sql))
  54. {
  55. ?>
  56. <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
  57. <td height="25"> <div align="center">
  58. <?=$r[groupid]?>
  59. </div></td>
  60. <td height="25"> <div align="center">
  61. <?=$r[groupname]?>
  62. </div></td>
  63. <td><div align="center">
  64. <?=$r[level]?>
  65. </div></td>
  66. <td><div align="center"><a href="SendMsg.php?groupid=<?=$r[groupid]?><?=$ecms_hashur['ehref']?>" target=_blank>发送信息</a></div></td>
  67. <td><div align="center"><a href="../../member/register/?groupid=<?=$r[groupid]?>" target="_blank">注册地址</a></div></td>
  68. <td height="25"> <div align="center">[<a href="AddMemberGroup.php?enews=EditMemberGroup&groupid=<?=$r[groupid]?><?=$ecms_hashur['ehref']?>">修改</a>]
  69. [<a href="../ecmsmember.php?enews=DelMemberGroup&groupid=<?=$r[groupid]?><?=$ecms_hashur['href']?>" onclick="return confirm('确认要删除此会员组?');">删除</a>]</div></td>
  70. </tr>
  71. <?
  72. }
  73. db_close();
  74. $empire=null;
  75. ?>
  76. <tr bgcolor="#FFFFFF">
  77. <td height="25" colspan="6"><font color="#666666">说明:级别值越高,查看信息的权限越大</font></td>
  78. </tr>
  79. </table>
  80. </body>
  81. </html>