国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

98 рядки
3.6KB

  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_edit.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="typename" id="typename" value="<?php echo $groupSet['typename']?>" class="admin-input-sm" required></td>
  29. </tr>
  30. <tr>
  31. <td>级别值</td>
  32. <td><input type="hidden" name="rank" id="rank" value="<?php echo $groupSet['rank']?>" class="admin-input-sm"><?php echo $groupSet['rank']?></td>
  33. </tr>
  34. <?php
  35. $start = 0;
  36. $k = 0;
  37. $gouplists = file(DEDEADMIN.'/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. $line = str_replace('>>','',$line);
  44. $ls = explode('>',$line);
  45. if (DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") {
  46. continue;
  47. }
  48. $start++;
  49. $lhead = "<tr> <td colspan='2'>{$start}、".$ls[0]."</td></tr><tr><td colspan='2'>";
  50. echo $lhead;
  51. } else if (preg_match("#^>#", $line)) {
  52. $ls = explode('>',$line);
  53. if (DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") {
  54. continue;
  55. }
  56. $tag = $ls[1];
  57. $tagname = str_replace('[br]','<br>',$ls[2]);
  58. if (!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  59. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  60. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label> ";
  61. $k++;
  62. }
  63. }
  64. $start++;
  65. ?>
  66. <tr>
  67. <td colspan="2"><?php echo $start?>、插件权限</td>
  68. </tr>
  69. <tr>
  70. <td colspan="2">
  71. <?php
  72. $l = 0;
  73. $dsql->SetQuery('SELECT plusname FROM `#@__plus`');
  74. $dsql->Execute();
  75. while($row=$dsql->GetObject()){
  76. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label> ";
  77. $k++;
  78. $l++;
  79. if ($l % 6 == 0) echo "<br>";
  80. }
  81. ?>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td colspan="2" align="center">
  86. <button type="submit" class="btn btn-success btn-sm">保存</button>
  87. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  88. </td>
  89. </tr>
  90. </tbody>
  91. </table>
  92. </div>
  93. </form>
  94. </div>
  95. </div>
  96. </div>
  97. </body>
  98. </html>