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

81 lines
2.8KB

  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. <form name="form1" action="sys_group_add.php" method="post">
  13. <input type="hidden" name="dopost" value="save">
  14. <table align="center" class="table maintable my-3">
  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>
  25. <input type="text" name="rankid" id="rankid" class="admin-input-sm">
  26. <span>(系统已占用的级别值:<?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span class="text-primary">'.$row->rank.'</span>';?>,级别值必须小于10,超过或等于10所有权限设置无效)</span>
  27. </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 = "<tr> <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
  42. echo $lhead;
  43. }
  44. else if (preg_match("#^>#", $line))
  45. {
  46. $ls = explode('>',$line);
  47. $tag = $ls[1];
  48. $tagname = str_replace('[br]', '<br>', $ls[2]);
  49. if (!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  50. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  51. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
  52. $k++;
  53. }
  54. }
  55. $start++;
  56. ?>
  57. <tr>
  58. <td colspan="2"><?php echo $start?>、插件权限</td>
  59. </tr>
  60. <tr>
  61. <td colspan="2">
  62. <?php
  63. $l = 0;
  64. $dsql->SetQuery('Select plusname From `#@__plus`');
  65. $dsql->Execute();
  66. while($row=$dsql->GetObject()){
  67. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
  68. $k++;
  69. $l++;
  70. if ($l%6==0) echo "<br>";
  71. }
  72. ?>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" onclick="DoSubmit('gettag')" class="btn btn-success btn-sm">保存</button></td>
  77. </tr>
  78. </table>
  79. </form>
  80. </body>
  81. </html>