<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>会员组管理</title>
		<link rel="stylesheet" href="/static/web/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 class="table shadow-sm 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 class="table shadow-sm mb-3">
				<tr>
					<td colspan="3">会员组管理</td>
				</tr>
				<tr 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>