<?php if (!defined('APP_PATH')) exit;?><!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="http://127.0.0.5/magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/main.js"></script>
</head>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li>首页</li>
		<li>系统设置</li>
		<li>网站管理员</li>
	</ul>
</div>
<div class="rightinfo">
    <div class="tools">
		<ul class="toolbar">
			<li><a href="?r=admin-index-edit"><span><img src="http://127.0.0.5/magic/Data/Public/images/t01.png" /></span>添加管理员</a></li>
			<li><a href="?r=admin-group-index"><span><img src="http://127.0.0.5/magic/Data/Public/images/icon5.png" width="24" height="24"/></span>管理员组</a></li>
		</ul>
    </div>  
   <div class="formtitle1"><span>管理员列表</span></div>
   <iframe id="blank" name="blank"  style="display:none" ></iframe>
    <table class="tablelist">
		<thead>
    	<tr>
			<th width="80" align="center">ID</th>
			<th align="center">账号</th>
			<th align="center">昵称</th>
			<th align="center">登陆时间</th>
			<th align="center">注册时间</th>
			<th align="center">状态</th>
			<th align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<?php foreach ($list as $vo){?>
		<tr>
			<td align="center"><?php echo $vo['uid'];?></td>
			<td align="center"><?php echo $vo['uname'];?></td>
			<td align="center"><?php echo $vo['nickname'];?></td>
			<td align="center"><?php echo date('Y-m-d H:s:i',$vo['logtime']);?></td>
			<td align="center"><?php echo date('Y-m-d H:s:i',$vo['regtime']);?></td>
			<td align="center"><img src="http://127.0.0.5/magic/Data/Public/images/ico-0<?php echo $vo['status'];?>.png" width="15" height="15"></td>
			<td align="center"><a href="?r=admin-index-edit&id=<?php echo $vo['uid'];?>">编辑</a> | 
			<?php if($vo['uid']==1){ ?>
			<i style="color:#ccc;font-style:normal">删除</i>
			<?php }else{ ?>
			<a href="javascript:" onclick="confirms('账号删除后将无法恢复，<br>请谨慎操作，确认删除？','?r=admin-index-del&id=<?php echo $vo['uid'];?>')">删除</a>
			<?php }?>
			</td>
		</tr>
		<?php }?>
		 </tbody>
		</table>
</div>
 <script type="text/javascript">$('.tablelist tbody tr:odd').addClass('odd');</script>
</body>
</html>
