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

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