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

95 lines
3.8KB

  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. <center>
  12. <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3">
  13. <form name='form1' action='sys_group_edit.php' method='post'>
  14. <input type='hidden' name='dopost' value='save'>
  15. <tr>
  16. <td height="26" background="../static/web/img/tbg.gif" align="left" style="padding-left:10px"><a href='sys_group.php'>系统用户组管理</a> &gt; 修改用户组</td>
  17. </tr>
  18. <tr>
  19. <td bgcolor="#ffffff" align="center">
  20. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  21. <tr>
  22. <td width="9%" height="30">组名称:</td>
  23. <td width="91%" style="text-align:left"> <input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>">
  24. </td>
  25. </tr>
  26. <tr>
  27. <td width="9%" height="30">级别值:</td>
  28. <td width="91%" style="text-align:left">
  29. <input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>">
  30. <?php echo $groupSet['rank']?>
  31. </td>
  32. </tr>
  33. <?php
  34. $start = 0;
  35. $k = 0;
  36. $gouplists = file(DEDEADMIN.'/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>\r\n";
  44. $start++;
  45. $lhead = "
  46. <tr>
  47. <td height='26' colspan='2' bgcolor='#F9FAF3' style='text-align:left'>{$start}、".str_replace('>>','',$line)."</td></tr>
  48. <tr><td height='26' colspan='2' style='text-align:left'>
  49. ";
  50. echo $lhead;
  51. }
  52. else if(preg_match("#^>#", $line))
  53. {
  54. $ls = explode('>',$line);
  55. $tag = $ls[1];
  56. $tagname = str_replace('[br]','<br>',$ls[2]);
  57. if(!preg_match("#<br>#", $tagname) ) $tagname .= "<span>($tag)</span>";
  58. else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
  59. echo "<label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label>\r\n";
  60. $k++;
  61. }
  62. }
  63. $start++;
  64. ?>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td height='26' colspan='2' bgcolor='#F9FAF3' style="text-align:left"><?php echo $start?>、插件权限</td>
  69. </tr>
  70. <tr>
  71. <td height='26' colspan='2' style="text-align:left">
  72. <?php
  73. $l = 0;
  74. $dsql->SetQuery('SELECT plusname FROM #@__plus');
  75. $dsql->Execute();
  76. while($row=$dsql->GetObject()){
  77. echo " <label></label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label>\r\n";
  78. $k++;
  79. $l++;
  80. if($l % 6 == 0) echo "<br>";
  81. }
  82. ?>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success" class="coolbg np">保存</button></td>
  87. </tr>
  88. </table>
  89. </td>
  90. </tr>
  91. </form>
  92. </table>
  93. </center>
  94. </body>
  95. </html>