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

98 lines
3.9KB

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