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

79 lines
2.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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. <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-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="#f5f5f5" colspan="2"><a href="sys_group.php">用户组设定</a> &gt; 增加用户组</td>
  17. </tr>
  18. <tr>
  19. <td width="90">组名称:</td>
  20. <td><input type="text" name="groupname" id="groupname" class="admin-input-sm"></td>
  21. </tr>
  22. <tr>
  23. <td>级别值:</td>
  24. <td><input type="text" name="rankid" id="rankid" class="admin-input-sm">(数字,系统已占用的级别值:<?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span class="text-primary">'.$row->rank.'</span>';?>,级别值必须小于10,超过或等于10所有权限设置将无效,如果10个组不能完全满足您的要求,允许使用小数)
  25. </td>
  26. </tr>
  27. <?php
  28. $start = 0;
  29. $k = 0;
  30. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  31. foreach($gouplists as $line)
  32. {
  33. $line = trim($line);
  34. if ($line=="") continue;
  35. if (preg_match("#^>>#", $line))
  36. {
  37. if ($start>0) echo "</td></tr>";
  38. $start++;
  39. $lhead = "<tr> <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
  40. echo $lhead;
  41. }
  42. else if (preg_match("#^>#", $line))
  43. {
  44. $ls = explode('>',$line);
  45. $tag = $ls[1];
  46. $tagname = str_replace('[br]', '<br>', $ls[2]);
  47. if (!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  48. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  49. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
  50. $k++;
  51. }
  52. }
  53. $start++;
  54. ?>
  55. <tr>
  56. <td colspan="2"><?php echo $start?>、插件权限</td>
  57. </tr>
  58. <tr>
  59. <td colspan="2">
  60. <?php
  61. $l = 0;
  62. $dsql->SetQuery('Select plusname From `#@__plus`');
  63. $dsql->Execute();
  64. while($row=$dsql->GetObject()){
  65. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
  66. $k++;
  67. $l++;
  68. if ($l%6==0) echo "<br>";
  69. }
  70. ?>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" onClick="DoSubmit('gettag')" class="btn btn-success btn-sm">保存</button></td>
  75. </tr>
  76. </form>
  77. </table>
  78. </body>
  79. </html>