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

90 lines
3.3KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>添加系统会员组</title>
  7. <link rel="stylesheet" href="/static/web/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. <div class="container-fluid">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  15. <li class="breadcrumb-item"><a href="sys_group.php">会员组管理</a></li>
  16. <li class="breadcrumb-item active">添加系统会员组</li>
  17. </ol>
  18. <div class="card shadow-sm">
  19. <div class="card-header">会员组管理</div>
  20. <div class="card-body">
  21. <form name="form1" action="sys_group_add.php" method="post">
  22. <input type="hidden" name="dopost" value="save">
  23. <div class="table-responsive">
  24. <table class="table table-borderless">
  25. <tbody>
  26. <tr>
  27. <td width="160">组名称</td>
  28. <td><input type="text" name="groupname" id="groupname" class="admin-input-sm" required></td>
  29. </tr>
  30. <tr>
  31. <td>级别值</td>
  32. <td><input type="text" name="rankid" id="rankid" class="admin-input-sm" required>(已占用级别值:1、5、10,级别值必须小于10,大于或等于10所有权限设置无效)</td>
  33. </tr>
  34. <?php
  35. $start = 0;
  36. $k = 0;
  37. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  38. foreach($gouplists as $line) {
  39. $line = trim($line);
  40. if ($line=="") continue;
  41. if (preg_match("#^>>#", $line)) {
  42. if ($start>0) echo "</td></tr>";
  43. $start++;
  44. $lhead = "<tr><td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
  45. echo $lhead;
  46. } else if (preg_match("#^>#", $line)) {
  47. $ls = explode('>',$line);
  48. $tag = $ls[1];
  49. $tagname = str_replace('[br]', '<br>', $ls[2]);
  50. if (!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  51. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  52. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
  53. $k++;
  54. }
  55. }
  56. $start++;
  57. ?>
  58. <tr>
  59. <td colspan="2"><?php echo $start?>、插件权限</td>
  60. </tr>
  61. <tr>
  62. <td colspan="2">
  63. <?php
  64. $l = 0;
  65. $dsql->SetQuery('Select plusname From `#@__plus`');
  66. $dsql->Execute();
  67. while($row=$dsql->GetObject()){
  68. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
  69. $k++;
  70. $l++;
  71. if ($l%6==0) echo "<br>";
  72. }
  73. ?>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td colspan="2" align="center">
  78. <button type="submit" class="btn btn-success btn-sm">保存</button>
  79. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </form>
  86. </div>
  87. </div>
  88. </div>
  89. </body>
  90. </html>