<?php
//$projectRootPath = "../../";	//相对当前应用程序根的位置
//require_once("../include/checkPurview.php");
require_once("../web.config.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 name="robots" content="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
    <link href="../themes/<?php echo $themes_Path; ?>/main.css" rel="stylesheet" type="text/css" />
</head>
<body  id="bodyBg1">
<br />
&nbsp; <a href="adminUser_Manage.php">用户管理</a> | <a href="adminUser_Add.php">添加用户</a>
<hr color="#0099FF" size="1" />
<br />
<dl class="manageContent">
    <dt>用户管理</dt>
    <dd>
    	<br />

			<table width="95%"class="tableBoder01">
              <tr>
                <th>序号</th>
                <th>用户名称</th>
                <th>最后登录IP</th>
                <th>最后登录时间</th>
                <th>登录次数</th>
                <th>管  理</th>
              </tr>
          <?php
		  $sql_adminName="select * from deep_Admin order by fpurview";
		  $stmt=$conn->query($sql_adminName);
		  $iNum=1;
		  while($row=$stmt->fetch() ){
		  ?>
              <tr>
                <td><?php echo $iNum++; ?></td>
                <td><?php echo $row["fuserName"]; ?></td>
                <td><?php echo $row["flastLoginIP"]; ?></td>
                <td><?php echo $row["flastLoginTime"]; ?></td>
                <td><?php echo $row["floginTimes"]; ?></td>
                <td><a href="adminUser_Update.php?id=<?php echo $row["id"]; ?>">修改</a> |
                <?php if ($_SESSION["adminName"]==$row["fuserName"]) { ?>
                    <font color="#CCCCCC">删除</font>
                <?php }else{ ?>
                    <a href="adminUser_Del.php?id=<?php echo $row["id"]; ?>" onclick="return confirm('你确定删除么？')">删除</a>
                <?php } ?>
                
                </td>
              </tr>
              <?php 
		  		}
			  ?>
            </table>
		  
          
        <br />
    </dd>
</dl>
<br />
</body>
</html>
