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

89 lines
3.7KB

  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. <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  13. <form name="form1" action="sys_group_add.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td bgcolor="#f8f8f8" 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="10%" >组名称:</td>
  23. <td width="90%" style="text-align:left"><input type="text" name="groupname" id="groupname"></td>
  24. </tr>
  25. <tr>
  26. <td width="10%" >级别值:</td>
  27. <td width="90%" style="text-align:left"><input type="text" name="rankid" id="rankid" size="6">(数字,系统已占用的级别值:
  28. <?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span style=\'color:#e74d58\'>'.$row->rank.'</span>'; ?>,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足您的要求,允许使用小数)</td>
  29. </tr>
  30. <?php
  31. $start = 0;
  32. $k = 0;
  33. $gouplists = file(dirname(__FILE__).'/../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. $start++;
  42. $lhead = "
  43. <tr>
  44. <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr>
  45. <tr><td colspan='2'>
  46. ";
  47. echo $lhead;
  48. }
  49. else if(preg_match("#^>#", $line))
  50. {
  51. $ls = explode('>',$line);
  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'> $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}'> {$row->plusname}</label> ";
  73. $k++;
  74. $l++;
  75. if($l%6==0) echo "<br>";
  76. }
  77. ?>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" class="coolbg np">保存</button></td>
  82. </tr>
  83. </table>
  84. </td>
  85. </tr>
  86. </form>
  87. </table>
  88. </body>
  89. </html>