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

86 lines
2.9KB

  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 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" colspan="2"><a href="sys_group.php">用户组设定</a> &gt; 修改用户组</td>
  17. </tr>
  18. <tr>
  19. <td width="260">组名称:</td>
  20. <td><input type="text" name="typename" id="typename" value="<?php echo $groupSet['typename']?>" class="admin-input-sm"></td>
  21. </tr>
  22. <tr>
  23. <td>级别值:</td>
  24. <td><input type="hidden" name="rank" id="rank" value="<?php echo $groupSet['rank']?>" class="admin-input-sm"> <?php echo $groupSet['rank']?></td>
  25. </tr>
  26. <?php
  27. $start = 0;
  28. $k = 0;
  29. $gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
  30. foreach($gouplists as $line)
  31. {
  32. $line = trim($line);
  33. if ($line=="") continue;
  34. if (preg_match("#^>>#", $line))
  35. {
  36. if ($start>0) echo "</td></tr>";
  37. $line = str_replace('>>','',$line);
  38. $ls = explode('>',$line);
  39. if (DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") {
  40. continue;
  41. }
  42. $start++;
  43. $lhead = "<tr> <td colspan='2'>{$start}、".$ls[0]."</td></tr><tr><td colspan='2'>";
  44. echo $lhead;
  45. }
  46. else if (preg_match("#^>#", $line))
  47. {
  48. $ls = explode('>',$line);
  49. if (DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") {
  50. continue;
  51. }
  52. $tag = $ls[1];
  53. $tagname = str_replace('[br]','<br>',$ls[2]);
  54. if (!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  55. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  56. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> ";
  57. $k++;
  58. }
  59. }
  60. $start++;
  61. ?>
  62. <tr>
  63. <td colspan="2"><?php echo $start?>插件权限</td>
  64. </tr>
  65. <tr>
  66. <td colspan="2">
  67. <?php
  68. $l = 0;
  69. $dsql->SetQuery('SELECT plusname FROM `#@__plus`');
  70. $dsql->Execute();
  71. while($row=$dsql->GetObject()){
  72. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> ";
  73. $k++;
  74. $l++;
  75. if ($l % 6 == 0) echo "<br>";
  76. }
  77. ?>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  82. </tr>
  83. </form>
  84. </table>
  85. </body>
  86. </html>