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

107 lines
4.5KB

  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. <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_add.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="groupname" type="text" id="groupname">
  25. </td>
  26. </tr>
  27. <tr>
  28. <td width="9%" height="30">级别值:</td>
  29. <td width="91%" style="text-align:left;"> <input name="rankid" type="text" id="rankid" size="6">
  30. (数字,系统已占用的级别值:
  31. <?php
  32. $dsql->SetQuery("Select rank From #@__admintype");
  33. $dsql->Execute();
  34. while($row = $dsql->GetObject()) echo '<font color=red>'.$row->rank.'</font>、';
  35. ?>
  36. ,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足你的要求,允许使用小数) </td>
  37. </tr>
  38. <?php
  39. $start = 0;
  40. $k = 0;
  41. $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
  42. foreach($gouplists as $line)
  43. {
  44. $line = trim($line);
  45. if($line=="") continue;
  46. if(preg_match("#^>>#", $line))
  47. {
  48. if($start>0) echo " </td></tr>\r\n";
  49. $start++;
  50. $lhead = "
  51. <tr>
  52. <td height='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left; line-height: 22px;'>{$start}、".str_replace('>>','',$line)."</td></tr>
  53. <tr><td height='25' colspan='2' style='text-align:left; line-height: 22px;'>
  54. ";
  55. echo $lhead;
  56. }
  57. else if(preg_match("#^>#", $line))
  58. {
  59. $ls = explode('>',$line);
  60. $tag = $ls[1];
  61. $tagname = str_replace('[br]', '<br />', $ls[2]);
  62. if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>";
  63. else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname);
  64. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'> $tagname</label>\r\n";
  65. $k++;
  66. }
  67. }
  68. $start++;
  69. ?>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td>
  74. </tr>
  75. <tr>
  76. <td height='25' colspan='2' style='text-align:left;'>
  77. <?php
  78. $l = 0;
  79. $dsql->SetQuery('Select plusname From #@__plus');
  80. $dsql->Execute();
  81. while($row=$dsql->GetObject()){
  82. echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label>\r\n";
  83. $k++;
  84. $l++;
  85. if($l%6==0) echo "<br />";
  86. }
  87. ?>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td height="50" align="center">&nbsp;</td>
  92. <td height="50" style="text-align:left;">
  93. <button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')"
  94. class="coolbg np">保存</button>
  95. </td>
  96. </tr>
  97. </table>
  98. </td>
  99. </tr>
  100. </form>
  101. </table>
  102. </body>
  103. </html>