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

105 lines
4.2KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>组权限设置</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href='css/base.css' rel='stylesheet' type='text/css'>
  10. </head>
  11. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  12. <center>
  13. <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
  14. <form name='form1' action='sys_group_edit.php' method='post'>
  15. <input type='hidden' name='dopost' value='save'>
  16. <tr>
  17. <td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a
  18. href='sys_group.php'>系统用户组管理</a>&gt;&gt;更改用户组:</b></td>
  19. </tr>
  20. <tr>
  21. <td valign="top" bgcolor="#FFFFFF" align="center">
  22. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  23. <tr>
  24. <td width="9%" height="30">组名称:</td>
  25. <td width="91%" style="text-align:left;"> <input name="typename" type="text" id="typename"
  26. value="<?php echo $groupSet['typename']?>">
  27. </td>
  28. </tr>
  29. <tr>
  30. <td width="9%" height="30">级别值:</td>
  31. <td width="91%" style="text-align:left;">
  32. <input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>">
  33. <?php echo $groupSet['rank']?>
  34. </td>
  35. </tr>
  36. <?php
  37. $start = 0;
  38. $k = 0;
  39. $gouplists = file(DEDEADMIN.'/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='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left;'>{$start}、".str_replace('>>','',$line)."</td></tr>
  51. <tr><td height='25' colspan='2' style='text-align:left;'>
  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 .= "<font color='#888888'>($tag)</font>";
  61. else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname);
  62. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label>\r\n";
  63. $k++;
  64. }
  65. }
  66. $start++;
  67. ?>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td>
  72. </tr>
  73. <tr>
  74. <td height='25' 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></label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("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 height="50" align="center">&nbsp;</td>
  90. <td height="50">
  91. <button type="submit" class="btn btn-secondary"
  92. class="coolbg np">保存</button>
  93. </td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. </form>
  99. </table>
  100. </center>
  101. </body>
  102. </html>