|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <title>增加用户组</title>
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- </head>
- <body>
- <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-3">
- <form name="form1" action="sys_group_add.php" method="post">
- <input type="hidden" name="dopost" value="save">
- <tr>
- <td bgcolor="#f5f5f5" colspan="2"><a href="sys_group.php">用户组设定</a> > 增加用户组</td>
- </tr>
- <tr>
- <td width="90">组名称:</td>
- <td><input type="text" name="groupname" id="groupname" class="admin-input-sm"></td>
- </tr>
- <tr>
- <td>级别值:</td>
- <td><input type="text" name="rankid" id="rankid" class="admin-input-sm">(数字,系统已占用的级别值:<?php $dsql->SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo '<span class="text-primary">'.$row->rank.'</span>';?>,级别值必须小于10,超过或等于10所有权限设置将无效,如果10个组不能完全满足您的要求,允许使用小数)
- </td>
- </tr>
- <?php
- $start = 0;
- $k = 0;
- $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt');
- foreach($gouplists as $line)
- {
- $line = trim($line);
- if ($line=="") continue;
- if (preg_match("#^>>#", $line))
- {
- if ($start>0) echo "</td></tr>";
- $start++;
- $lhead = "<tr> <td colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr><tr><td colspan='2'>";
- echo $lhead;
- }
- else if (preg_match("#^>#", $line))
- {
- $ls = explode('>',$line);
- $tag = $ls[1];
- $tagname = str_replace('[br]', '<br>', $ls[2]);
- if (!preg_match("#<br \/>#", $tagname) ) $tagname .= "<span>($tag)</span>";
- else $tagname = str_replace('<br>', "<span>($tag)</span><br>", $tagname);
- echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='$tag'> $tagname</label> ";
- $k++;
- }
- }
- $start++;
- ?>
- <tr>
- <td colspan="2"><?php echo $start?>、插件权限</td>
- </tr>
- <tr>
- <td colspan="2">
- <?php
- $l = 0;
- $dsql->SetQuery('Select plusname From `#@__plus`');
- $dsql->Execute();
- while($row=$dsql->GetObject()){
- echo " <label><input name='purviews[]' type='checkbox' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label> ";
- $k++;
- $l++;
- if ($l%6==0) echo "<br>";
- }
- ?>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#f5f5f5" align="center" class="py-2"><button type="submit" onClick="DoSubmit('gettag')" class="btn btn-success btn-sm">保存</button></td>
- </tr>
- </form>
- </table>
- </body>
- </html>
|