<?php
	session_start();
	include "inc/chec.php";
	include "conn/conn.php";
?>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="10" colspan="5" align="center" valign="middle">管 理 员 设 置</td>
              </tr>
              <tr>
                <td height="10" colspan="5" align="right" valign="middle"><a href="#" onclick="javacript:Wopen=open('addmanager.php?action=addmanager','添加管理员','height=500,width=655,scrollbars=no');">管理员添加</a></td>
              </tr>
              <tr>
                <td height="30" align="center" valign="middle">ID</td>
                <td height="30" align="center" valign="middle">等级</td>
                <td height="30" align="center" valign="middle">名称                </td>
                <td height="30" align="center" valign="middle">真实姓名</td>
                <td height="30" align="center" valign="middle">操作</td>
              </tr>
<?php
			  	$m_sqlstr="select * from tb_manager where id<>1 order by id";
				$m_rst = $conn->execute($m_sqlstr);
				while(!$m_rst->EOF){ 
?>
              <tr>
                <td height="18" align="center" valign="middle"><?php echo $m_rst->fields[0]; ?></td>
                <td height="18" align="center" valign="middle"><?php echo $m_rst->fields[3]; ?></td>
                <td height="18" align="center" valign="middle"><?php echo $m_rst->fields[1]; ?></td>
                <td height="18" align="center" valign="middle"><?php echo $m_rst->fields[4]; ?></td>
                 <form name="form1" method="post" action="m_freeze_chk.php">
				 <td height="18" align="center" valign="middle">
<?php
	if($m_rst->fields[6] == "1") 
		$bt = "冻结"; 
	else 
		$bt = "解冻"; 

?>
					<input type="hidden" name="id" value="<?php echo $m_rst->fields[0]; ?>">
					<input type="hidden" name="whether" value="<?php echo $m_rst->fields[6]; ?>">
                    <input type="submit" name="Submit2" class="submit" value="<?php echo $bt; ?>">
                    <a href="del_mfreeze_chk.php?id=<?php echo $m_rst->fields[0]; ?>" onClick="return del_chk();">删除</a>                </td> 
				</form>
              </tr>
<?php
			  	$m_rst->movenext();
				}
?>
</table>
