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

100 lines
4.2KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>组权限设置</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. </head>
  10. <body>
  11. <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3">
  12. <form name='form1' action='sys_group_add.php' method='post'>
  13. <input type='hidden' name='dopost' value='save'>
  14. <tr>
  15. <td height="26" background="../static/web/img/tbg.gif" align="left" style="padding-left:10px"><a href='sys_group.php'>系统用户组管理</a> &gt; 增加用户组</td>
  16. </tr>
  17. <tr>
  18. <td bgcolor="#ffffff" align="center">
  19. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  20. <tr>
  21. <td width="9%" height="30">组名称:</td>
  22. <td width="91%" style="text-align:left"> <input name="groupname" type="text" id="groupname">
  23. </td>
  24. </tr>
  25. <tr>
  26. <td width="9%" height="30">级别值:</td>
  27. <td width="91%" style="text-align:left"> <input name="rankid" type="text" id="rankid" size="6">
  28. (数字,系统已占用的级别值:
  29. <?php
  30. $dsql->SetQuery("Select `rank` From `#@__admintype`");
  31. $dsql->Execute();
  32. while($row = $dsql->GetObject()) echo '<span style=\'color:#e74d58\'>'.$row->rank.'</span>';
  33. ?>
  34. ,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足您的要求,允许使用小数)</td>
  35. </tr>
  36. <?php
  37. $start = 0;
  38. $k = 0;
  39. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  40. foreach($gouplists as $line)
  41. {
  42. $line = trim($line);
  43. if($line=="") continue;
  44. if(preg_match("#^>>#", $line))
  45. {
  46. if($start>0) echo "</td></tr>\r\n";
  47. $start++;
  48. $lhead = "
  49. <tr>
  50. <td height='26' colspan='2' bgcolor='#F9FAF3' style='text-align:left;line-height:22px'>{$start}、".str_replace('>>','',$line)."</td></tr>
  51. <tr><td height='26' colspan='2' style='text-align:left;line-height:22px'>
  52. ";
  53. echo $lhead;
  54. }
  55. else if(preg_match("#^>#", $line))
  56. {
  57. $ls = explode('>',$line);
  58. $tag = $ls[1];
  59. $tagname = str_replace('[br]', '<br>', $ls[2]);
  60. if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  61. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  62. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'> $tagname</label>\r\n";
  63. $k++;
  64. }
  65. }
  66. $start++;
  67. ?>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td height='26' colspan='2' bgcolor='#F9FAF3' style="text-align:left"><?php echo $start?>、插件权限</td>
  72. </tr>
  73. <tr>
  74. <td height='26' colspan='2' style='text-align:left'>
  75. <?php
  76. $l = 0;
  77. $dsql->SetQuery('Select plusname From #@__plus');
  78. $dsql->Execute();
  79. while($row=$dsql->GetObject()){
  80. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label>\r\n";
  81. $k++;
  82. $l++;
  83. if($l%6==0) echo "<br>";
  84. }
  85. ?>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td colspan="2" align="center" class="py-3">
  90. <button type="submit" class="btn btn-success" onClick="DoSubmit('gettag')" class="coolbg np">保存</button>
  91. </td>
  92. </tr>
  93. </table>
  94. </td>
  95. </tr>
  96. </form>
  97. </table>
  98. </body>
  99. </html>