<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>系统用户组管理</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
  <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
    <form name="form1" action="content_att.php" method="post">
      <input type="hidden" name="dopost" value="save">
      <tr>
        <td height="26" colspan="3" background="../static/web/img/tbg.gif">
          <table width="96%" cellspacing="1" cellpadding="1" class="table table-borderless">
            <tr>
              <td width="24%" style="padding-left:10px">系统用户组管理 </td>
              <td width="76%" align="right">
                  <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>
        </td>
      </tr>
      <tr bgcolor="#F8FCF1" align="center">
        <td width="20%" height="26">等级</td>
        <td width="45%">组名称</td>
        <td width="35%">管理</td>
      </tr>
      <?php
	$dsql->SetQuery("Select `rank`,typename,`system` From #@__admintype");
	$dsql->Execute();
	while($row = $dsql->GetObject())
	{
	?>
      <tr align="center">
        <td height="26">
          <?php echo $row->rank?>
        </td>
        <td height="26">
          <?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
	}
	?>
    </form>
  </table>
</body>
</html>