|
|
@@ -29,29 +29,25 @@ |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>级别值</td> |
|
|
|
<td><input type="text" name="rankid" id="rankid" class="admin-input-sm" required>(系统已占用的级别值:<?php $dsql->SetQuery("SELECT `rank` FROM `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo $row->rank;?>,级别值必须小于10,超过或等于10所有权限设置无效)</td> |
|
|
|
<td><input type="text" name="rankid" id="rankid" class="admin-input-sm" required>(已占用级别值:1、5、10,级别值必须小于10,大于或等于10所有权限设置无效)</td> |
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
$start = 0; |
|
|
|
$k = 0; |
|
|
|
$gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt'); |
|
|
|
foreach($gouplists as $line) |
|
|
|
{ |
|
|
|
foreach($gouplists as $line) { |
|
|
|
$line = trim($line); |
|
|
|
if ($line=="") continue; |
|
|
|
if (preg_match("#^>>#", $line)) |
|
|
|
{ |
|
|
|
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)) |
|
|
|
{ |
|
|
|
} 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>"; |
|
|
|
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++; |
|
|
|