国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

100 lignes
4.1KB

  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_add.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="groupname" type="text" id="groupname">
  22. </td>
  23. </tr>
  24. <tr>
  25. <td width="9%" height="30">级别值:</td>
  26. <td width="91%" style="text-align:left;"> <input name="rankid" type="text" id="rankid" size="6">
  27. (数字,系统已占用的级别值:
  28. <?php
  29. $dsql->SetQuery("Select rank From #@__admintype");
  30. $dsql->Execute();
  31. while($row = $dsql->GetObject()) echo '<font color=red>'.$row->rank.'</font>、';
  32. ?>
  33. ,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足你的要求,允许使用小数) </td>
  34. </tr>
  35. <?php
  36. $start = 0;
  37. $k = 0;
  38. $gouplists = file(dirname(__FILE__).'/../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 " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'>$tagname\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 " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'>{$row->plusname}\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" style="text-align:left;"><input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0">
  90. </td>
  91. </tr>
  92. </table>
  93. </td>
  94. </tr>
  95. </form>
  96. </table>
  97. </center>
  98. </body>
  99. </html>