AddMAdminGroup.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"madmingroup");
  20. $enews=ehtmlspecialchars($_GET['enews']);
  21. $postword='增加';
  22. $url="<a href=ListMAdminGroup.php".$ecms_hashur['whehref'].">管理会员管理组</a>&nbsp;>&nbsp;增加会员管理组";
  23. if($enews=="EditMAdminGroup")
  24. {
  25. $agid=(int)$_GET['agid'];
  26. $r=$empire->fetch1("select * from {$dbtbpre}enewsag where agid='$agid'");
  27. $url="<a href=ListMAdminGroup.php".$ecms_hashur['whehref'].">管理会员管理组</a>&nbsp;>&nbsp;修改会员管理组:<b>".$r['agname']."</b>";
  28. $postword='修改';
  29. }
  30. db_close();
  31. $empire=null;
  32. ?>
  33. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  34. <html>
  35. <head>
  36. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  37. <title>会员管理组</title>
  38. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  39. </head>
  40. <body>
  41. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
  42. <tr>
  43. <td height="25">位置:
  44. <?=$url?>
  45. </td>
  46. </tr>
  47. </table>
  48. <form name="form1" method="post" action="ListMAdminGroup.php">
  49. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  50. <?=$ecms_hashur['form']?>
  51. <tr class="header">
  52. <td width="22%" height="25"><?=$postword?>会员管理组</td>
  53. <td width="78%" height="25"><input name="enews" type="hidden" id="enews" value="<?=$enews?>">
  54. <input name="agid" type="hidden" id="agid" value="<?=$agid?>"></td>
  55. </tr>
  56. <tr bgcolor="#FFFFFF">
  57. <td height="25">组名称</td>
  58. <td height="25"> <input name="agname" type="text" id="agname" value="<?=$r['agname']?>" size="38"></td>
  59. </tr>
  60. <tr bgcolor="#FFFFFF">
  61. <td height="25">管理级别</td>
  62. <td height="25"><select name="isadmin" id="isadmin">
  63. <option value="1"<?=$r['isadmin']==1?' selected':''?>>实习版主</option>
  64. <option value="5"<?=$r['isadmin']==5?' selected':''?>>版主</option>
  65. <option value="9"<?=$r['isadmin']==9?' selected':''?>>管理员</option>
  66. </select>
  67. <?php
  68. if($agid==1||$agid==2)
  69. {
  70. ?>
  71. <font color="#FF0000">(内置管理组的级别不能修改)</font>
  72. <?php
  73. }
  74. ?>
  75. </td>
  76. </tr>
  77. <tr bgcolor="#FFFFFF">
  78. <td height="25">&nbsp;</td>
  79. <td height="25"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
  80. </tr>
  81. </table>
  82. </form>
  83. </body>
  84. </html>