国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

92 satır
3.4KB

  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. <ol class="breadcrumb">
  13. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  14. <li class="breadcrumb-item"><a href="sys_group.php">会员组管理</a></li>
  15. <li class="breadcrumb-item active">添加系统会员组</li>
  16. </ol>
  17. <div class="card shadow-sm">
  18. <div class="card-header">会员组管理</div>
  19. <div class="card-body">
  20. <form name="form1" action="sys_group_add.php" method="post">
  21. <input type="hidden" name="dopost" value="save">
  22. <div class="table-responsive">
  23. <table class="table table-borderless">
  24. <tbody>
  25. <tr>
  26. <td width="160">组名称</td>
  27. <td><input type="text" name="groupname" id="groupname" class="admin-input-sm" required></td>
  28. </tr>
  29. <tr>
  30. <td>级别值</td>
  31. <td><input type="text" name="rankid" id="rankid" class="admin-input-sm" required>(系统已占用的级别值:<?php $dsql->SetQuery("SELECT `rank` FROM `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo $row->rank;?>,级别值必须小于10,超过或等于10所有权限设置无效)</td>
  32. </tr>
  33. <?php
  34. $start = 0;
  35. $k = 0;
  36. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  37. foreach($gouplists as $line)
  38. {
  39. $line = trim($line);
  40. if ($line=="") continue;
  41. if (preg_match("#^>>#", $line))
  42. {
  43. if ($start>0) echo "</td></tr>";
  44. $start++;
  45. $lhead = "<tr><td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
  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">
  81. <button type="submit" class="btn btn-success btn-sm">保存</button>
  82. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </form>
  89. </div>
  90. </div>
  91. </body>
  92. </html>