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

92 lines
3.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改用户组</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable my-3">
  13. <form name="form1" action="sys_group_edit.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td bgcolor="#f5f5f5" align="left"><a href="sys_group.php">用户组设定</a> &gt; 修改用户组</td>
  17. </tr>
  18. <tr>
  19. <td align="center">
  20. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  21. <tr>
  22. <td width="260">组名称:</td>
  23. <td><input type="text" name="typename" id="typename" value="<?php echo $groupSet['typename']?>" class="biz-input-sm"></td>
  24. </tr>
  25. <tr>
  26. <td>级别值:</td>
  27. <td><input type="hidden" name="rank" id="rank" value="<?php echo $groupSet['rank']?>" class="biz-input-sm"> <?php echo $groupSet['rank']?></td>
  28. </tr>
  29. <?php
  30. $start = 0;
  31. $k = 0;
  32. $gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
  33. foreach($gouplists as $line)
  34. {
  35. $line = trim($line);
  36. if ($line=="") continue;
  37. if (preg_match("#^>>#", $line))
  38. {
  39. if ($start>0) echo "</td></tr>";
  40. $line = str_replace('>>','',$line);
  41. $ls = explode('>',$line);
  42. if (DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") {
  43. continue;
  44. }
  45. $start++;
  46. $lhead = "<tr> <td colspan='2'>{$start}、".$ls[0]."</td></tr><tr><td colspan='2'>";
  47. echo $lhead;
  48. }
  49. else if (preg_match("#^>#", $line))
  50. {
  51. $ls = explode('>',$line);
  52. if (DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") {
  53. continue;
  54. }
  55. $tag = $ls[1];
  56. $tagname = str_replace('[br]','<br>',$ls[2]);
  57. if (!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  58. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  59. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> ";
  60. $k++;
  61. }
  62. }
  63. $start++;
  64. ?>
  65. <tr>
  66. <td colspan="2"><?php echo $start?>插件权限</td>
  67. </tr>
  68. <tr>
  69. <td colspan="2">
  70. <?php
  71. $l = 0;
  72. $dsql->SetQuery('SELECT plusname FROM `#@__plus`');
  73. $dsql->Execute();
  74. while($row=$dsql->GetObject()){
  75. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> ";
  76. $k++;
  77. $l++;
  78. if ($l % 6 == 0) echo "<br>";
  79. }
  80. ?>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td colspan="2" align="center" class="py-2"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  85. </tr>
  86. </table>
  87. </td>
  88. </tr>
  89. </form>
  90. </table>
  91. </body>
  92. </html>