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

103 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/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href='css/base.css' rel='stylesheet' type='text/css'>
  9. </head>
  10. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  11. <center>
  12. <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered 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="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a
  17. href='sys_group.php'>系统用户组管理</a>&gt;&gt;更改用户组:</b></td>
  18. </tr>
  19. <tr>
  20. <td valign="top" bgcolor="#FFFFFF" align="center">
  21. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  22. <tr>
  23. <td width="9%" height="30">组名称:</td>
  24. <td width="91%" style="text-align:left;"> <input name="typename" type="text" id="typename"
  25. value="<?php echo $groupSet['typename']?>">
  26. </td>
  27. </tr>
  28. <tr>
  29. <td width="9%" height="30">级别值:</td>
  30. <td width="91%" style="text-align:left;">
  31. <input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>">
  32. <?php echo $groupSet['rank']?>
  33. </td>
  34. </tr>
  35. <?php
  36. $start = 0;
  37. $k = 0;
  38. $gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
  39. foreach($gouplists as $line)
  40. {
  41. $line = trim($line);
  42. if($line=="") continue;
  43. if(preg_match("#^>>#", $line))
  44. {
  45. if($start>0) echo " </td></tr>\r\n";
  46. $start++;
  47. $lhead = "
  48. <tr>
  49. <td height='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left;'>{$start}、".str_replace('>>','',$line)."</td></tr>
  50. <tr><td height='25' colspan='2' style='text-align:left;'>
  51. ";
  52. echo $lhead;
  53. }
  54. else if(preg_match("#^>#", $line))
  55. {
  56. $ls = explode('>',$line);
  57. $tag = $ls[1];
  58. $tagname = str_replace('[br]','<br>',$ls[2]);
  59. if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>";
  60. else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname);
  61. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label>\r\n";
  62. $k++;
  63. }
  64. }
  65. $start++;
  66. ?>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td>
  71. </tr>
  72. <tr>
  73. <td height='25' colspan='2' style="text-align:left;">
  74. <?php
  75. $l = 0;
  76. $dsql->SetQuery('SELECT plusname FROM #@__plus');
  77. $dsql->Execute();
  78. while($row=$dsql->GetObject()){
  79. 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";
  80. $k++;
  81. $l++;
  82. if($l % 6 == 0) echo "<br>";
  83. }
  84. ?>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td height="50" align="center">&nbsp;</td>
  89. <td height="50">
  90. <button type="submit" class="btn btn-success"
  91. class="coolbg np">保存</button>
  92. </td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. </form>
  98. </table>
  99. </center>
  100. </body>
  101. </html>