<!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="3" cellspacing="1" align="center" class="table maintable my-3">
			<tr>
				<td>
					<a href="sys_group_add.php" class="btn btn-success btn-sm">添加会员组</a>
					<a href="sys_admin_user.php" class="btn btn-success btn-sm">系统会员管理</a>
				</td>
			</tr>
		</table>
		<form name="form1" action="content_att.php" method="post">
			<input type="hidden" name="dopost" value="save">
			<table cellpadding="3" cellspacing="1" align="center" class="table maintable mb-3">
				<tr>
					<td bgcolor="#f5f5f5" colspan="3">系统会员组管理</td>
				</tr>
				<tr bgcolor="#e9ecef" align="center">
					<td width="6%">等级</td>
					<td width="60%">组名称</td>
					<td>管理</td>
				</tr>
				<?php
				$dsql->SetQuery("Select `rank`,typename,`system` From `#@__admintype`");
				$dsql->Execute();
				while($row = $dsql->GetObject())
				{
				?>
				<tr align="center">
					<td><?php echo $row->rank?></td>
					<td><?php echo $row->typename?></td>
					<td>
						<a href="sys_group_edit.php?rank=<?php echo $row->rank?>" class="btn btn-success btn-sm">权限设定</a>
						<a href="sys_admin_user.php?rank=<?php echo $row->rank?>" class="btn btn-success btn-sm">组会员</a>
						<?php if ($row->system==0) {?><a href='sys_group_edit.php?dopost=del&rank=<?php echo $row->rank;?>'>删除组</a><?php }?>
					</td>
				</tr>
				<?php }?>
			</table>
		</form>
	</body>
</html>