国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

78 rindas
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. <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所有权限设置无效)</td>
  25. </tr>
  26. <?php
  27. $start = 0;
  28. $k = 0;
  29. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  30. foreach($gouplists as $line)
  31. {
  32. $line = trim($line);
  33. if ($line=="") continue;
  34. if (preg_match("#^>>#", $line))
  35. {
  36. if ($start>0) echo "</td></tr>";
  37. $start++;
  38. $lhead = "<tr> <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
  39. echo $lhead;
  40. }
  41. else if (preg_match("#^>#", $line))
  42. {
  43. $ls = explode('>',$line);
  44. $tag = $ls[1];
  45. $tagname = str_replace('[br]', '<br>', $ls[2]);
  46. if (!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  47. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  48. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
  49. $k++;
  50. }
  51. }
  52. $start++;
  53. ?>
  54. <tr>
  55. <td colspan="2"><?php echo $start?>、插件权限</td>
  56. </tr>
  57. <tr>
  58. <td colspan="2">
  59. <?php
  60. $l = 0;
  61. $dsql->SetQuery('Select plusname From `#@__plus`');
  62. $dsql->Execute();
  63. while($row=$dsql->GetObject()){
  64. echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
  65. $k++;
  66. $l++;
  67. if ($l%6==0) echo "<br>";
  68. }
  69. ?>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" onclick="DoSubmit('gettag')" class="btn btn-success btn-sm">保存</button></td>
  74. </tr>
  75. </form>
  76. </table>
  77. </body>
  78. </html>