国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

88 行
3.6KB

  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="90">组名称:</td>
  23. <td><input type="text" name="groupname" id="groupname" class="biz-input-sm"></td>
  24. </tr>
  25. <tr>
  26. <td>级别值:</td>
  27. <td><input type="text" name="rankid" id="rankid" class="biz-input-sm">(数字,系统已占用的级别值:<?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>
  28. </tr>
  29. <?php
  30. $start = 0;
  31. $k = 0;
  32. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  33. foreach($gouplists as $line)
  34. {
  35. $line = trim($line);
  36. if ($line=="") continue;
  37. if (preg_match("#^>>#", $line))
  38. {
  39. if ($start>0) echo "</td></tr>";
  40. $start++;
  41. $lhead = "
  42. <tr>
  43. <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr>
  44. <tr><td colspan='2'>
  45. ";
  46. echo $lhead;
  47. }
  48. else if (preg_match("#^>#", $line))
  49. {
  50. $ls = explode('>',$line);
  51. $tag = $ls[1];
  52. $tagname = str_replace('[br]', '<br>', $ls[2]);
  53. if (!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  54. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  55. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
  56. $k++;
  57. }
  58. }
  59. $start++;
  60. ?>
  61. <tr>
  62. <td colspan="2"><?php echo $start?>、插件权限</td>
  63. </tr>
  64. <tr>
  65. <td colspan="2">
  66. <?php
  67. $l = 0;
  68. $dsql->SetQuery('Select plusname From #@__plus');
  69. $dsql->Execute();
  70. while($row=$dsql->GetObject()){
  71. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
  72. $k++;
  73. $l++;
  74. if ($l%6==0) echo "<br>";
  75. }
  76. ?>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td colspan="2" align="center" class="py-2"><button type="submit" onClick="DoSubmit('gettag')" class="btn btn-success btn-sm">保存</button></td>
  81. </tr>
  82. </table>
  83. </td>
  84. </tr>
  85. </form>
  86. </table>
  87. </body>
  88. </html>