sys_group_edit.htm
3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>组权限设置</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<center>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center">
<form name='form1' action='sys_group_edit.php' method='post'>
<input type='hidden' name='dopost' value='save'>
<tr>
<td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a href='sys_group.php'>系统用户组管理</a>>>更改用户组:</b></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9%" height="30">组名称:</td>
<td width="91%" style="text-align:left;"> <input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>">
</td>
</tr>
<tr>
<td width="9%" height="30">级别值:</td>
<td width="91%" style="text-align:left;">
<input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>">
<?php echo $groupSet['rank']?>
</td>
</tr>
<?php
$start = 0;
$k = 0;
$gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
foreach($gouplists as $line)
{
$line = trim($line);
if($line=="") continue;
if(preg_match("#^>>#", $line))
{
if($start>0) echo " </td></tr>\r\n";
$start++;
$lhead = "
<tr>
<td height='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left;'>{$start}、".str_replace('>>','',$line)."</td></tr>
<tr><td height='25' colspan='2' style='text-align:left;'>
";
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 .= "<font color='#888888'>($tag)</font>";
else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname);
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag).">$tagname\r\n";
$k++;
}
}
$start++;
?>
</td>
</tr>
<tr>
<td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td>
</tr>
<tr>
<td height='25' colspan='2' style="text-align:left;">
<?php
$l = 0;
$dsql->SetQuery('SELECT plusname FROM #@__plus');
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}").">{$row->plusname}\r\n";
$k++;
$l++;
if($l % 6 == 0) echo "<br>";
}
?>
</td>
</tr>
<tr>
<td height="50" align="center"> </td>
<td height="50"><input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0">
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</center>
</body>
</html>