<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li>
			<i class="home-icon fa fa-home"></i>
			<a href="#">系统</a>
		</li>
		<li>
			<a href="#">权限管理</a>
		</li>
		<li class="active">管理员列表</li>
	</ul>
</div>
<div class="content">
	<form name='admin_list' method='post' action='{url:/system/admin_update/recycle/del}'>
	<table class="table list-table">
		<colgroup>
			<col width="35px" />
			<col width="150px" />
			<col width="100px" />
			<col width="200px" />
			<col />
		</colgroup>
		<caption>
            <a class="btn btn-default" href='{url:/system/admin_edit}'>
                <i class="fa fa-plus"></i>添加管理员
            </a>
            <a class="btn btn-default" onclick="selectAll('id[]');">
                <i class="fa fa-check"></i>全选
            </a>
            <a class="btn btn-default" onclick="delModel({msg:'是否把信息放到回收站内？'});">
                <i class="fa fa-close"></i>批量删除
            </a>
            <a class="btn btn-default" href='{url:/system/admin_recycle}'>
                <i class="fa fa-trash"></i>回收站
            </a>
		</caption>
		<thead>
			<tr>
				<th></th>
				<th>用户名</th>
				<th>角色</th>
				<th>Email</th>
				<th>上次登录IP</th>
				<th>上次登录时间</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
            {set:$queryObj=Api::run('getListByAdmin',array('is_del'=>'0'));$resultData=$queryObj->find()}
            {foreach:items=$resultData}
			<tr>
				<td><input type='checkbox' name='id[]' value='{$item['id']}' /></td>
				<td>{$item['admin_name']}</td>
				<td>{echo:$item['role_name'] ? $item['role_name'] : '超级管理员'}</td>
				<td>{$item['email']}</td>
				<td>{$item['last_ip']}</td>
				<td>{$item['last_time']}</td>
				<td>
					<a href='{url:/system/admin_edit/id/$item['id']}'><i class='operator fa fa-edit'></i></a>
					<a href="javascript:void(0);" onclick="delModel({link:'{url:/system/admin_update/recycle/del/id/$item['id']}',msg:'是否把信息放到回收站内？'});"><i class='operator fa fa-close'></i></a>
				</td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	</form>
</div>
{$queryObj->getPageBar()}