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

101 lines
4.0KB

  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/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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 mt-3 mb-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="#f8f8f8" 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="10%" >组名称:</td>
  24. <td width="90%"><input type="text" name="typename" id="typename" value="<?php echo $groupSet['typename']?>" style="width:260px"></td>
  25. </tr>
  26. <tr>
  27. <td width="10%" >级别值:</td>
  28. <td width="90%">
  29. <input type="hidden" name="rank" id="rank" value="<?php echo $groupSet['rank']?>">
  30. <?php echo $groupSet['rank']?>
  31. </td>
  32. </tr>
  33. <?php
  34. $start = 0;
  35. $k = 0;
  36. $gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
  37. foreach($gouplists as $line)
  38. {
  39. $line = trim($line);
  40. if($line=="") continue;
  41. if(preg_match("#^>>#", $line))
  42. {
  43. if($start>0) echo "</td></tr>";
  44. $line = str_replace('>>','',$line);
  45. $ls = explode('>',$line);
  46. if(DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") {
  47. continue;
  48. }
  49. $start++;
  50. $lhead = "
  51. <tr>
  52. <td colspan='2'>{$start}、".$ls[0]."</td></tr>
  53. <tr><td colspan='2'>
  54. ";
  55. echo $lhead;
  56. }
  57. else if(preg_match("#^>#", $line))
  58. {
  59. $ls = explode('>',$line);
  60. if(DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") {
  61. continue;
  62. }
  63. $tag = $ls[1];
  64. $tagname = str_replace('[br]','<br>',$ls[2]);
  65. if(!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  66. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  67. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> ";
  68. $k++;
  69. }
  70. }
  71. $start++;
  72. ?>
  73. <tr>
  74. <td colspan="2"><?php echo $start?>、插件权限</td>
  75. </tr>
  76. <tr>
  77. <td colspan="2">
  78. <?php
  79. $l = 0;
  80. $dsql->SetQuery('SELECT plusname FROM #@__plus');
  81. $dsql->Execute();
  82. while($row=$dsql->GetObject()){
  83. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> ";
  84. $k++;
  85. $l++;
  86. if($l % 6 == 0) echo "<br>";
  87. }
  88. ?>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button></td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. </form>
  98. </table>
  99. </center>
  100. </body>
  101. </html>