<?php
	include("../include/global.php");
	include("ZC_Check_admin.php");

?>
<!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=utf-8" />
<title></title>
<link href="css/Admin.css" rel="stylesheet" type="text/css" />
</head>
<body>

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="AdminTable">
 <tr>
	<th scope="col" width="7%">编号</th>
    <th scope="col" width="43%">用户名</th>
    <th scope="col" width="16%">UID</th>
    <th scope="col" width="19%">等级</th>
    <th scope="col" width="7%">修改</th>
    <th scope="col" width="8%">删除</th>
  </tr>
 <?php
	$sql="select * from `".PRE."admin`";
	$rs=$db->query($sql) or die("管理员列表出错！");
	while($row = $db->fetch_array($rs)){
 ?>
 <tr>
   <td scope="col"><?php echo $row['id']?></td>
   <td scope="col"><?php echo $row['name']?></td>
   <td scope="col"><?php echo $row['uid']?></td>
   <td scope="col"><?php echo $row['grade']?></td>
   <td scope="col"><a href="ZC_Admin_Manager.php?action=modify&aid=<?php echo $row['id']?>"><img src="Images/class_update.gif" alt="修改" /></a></td>
   <td scope="col"><a href="ZC_Admin_Edit.php?action=del&aid=<?php echo $row['id']?>"><img src="Images/class_del.gif" alt="删除" /></a></td>
  </tr>
 <?php
	}
 ?>
</table>

</body>
</html>

