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

93 lines
3.8KB

  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 height="26" background="../static/web/img/tbg.gif" align="left" style="padding-left:10px"><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%" height="26">组名称:</td>
  24. <td width="90%"><input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>" style="width:260px"></td>
  25. </tr>
  26. <tr>
  27. <td width="10%" height="26">级别值:</td>
  28. <td width="90%">
  29. <input name="rank" type="hidden" 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. $start++;
  45. $lhead = "
  46. <tr>
  47. <td height='26' colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr>
  48. <tr><td height='26' colspan='2'>
  49. ";
  50. echo $lhead;
  51. }
  52. else if(preg_match("#^>#", $line))
  53. {
  54. $ls = explode('>',$line);
  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' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> ";
  60. $k++;
  61. }
  62. }
  63. $start++;
  64. ?>
  65. <tr>
  66. <td height="26" colspan="2"><?php echo $start?>、插件权限</td>
  67. </tr>
  68. <tr>
  69. <td height="26" 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' class='np' 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-3"><button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button></td>
  85. </tr>
  86. </table>
  87. </td>
  88. </tr>
  89. </form>
  90. </table>
  91. </center>
  92. </body>
  93. </html>