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