<table width="100%" class="topmenu">
	<tr><td>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/admins.php?action=add','添加管理员','550','220')"><em>添加管理员</em></a>
	</td></tr>
</table>
<table width="100%" class="grid">
	<caption>管理员管理</caption>
	<tr>
		<th>ID</th>
		<th>账号</th>
		<th>状态</th>
		<th>角色</th>
		<th>最后登录时间</th>
		<th>最后登录IP</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr>
		<td>{?$rows[i].id?}</td>
		<td>{?$rows[i].account?}</td>
		<td>{?$rows[i].str_status?}</td>
		<td>{?if $rows[i].isfounder==1?}<span class="blue">创始人</span>{?else?}{?$rows[i].rolename?}{?/if?}</td>
		<td>{?$rows[i].lasttime|date:"Y-m-d H:i:s"?}</td>
		<td>{?$rows[i].lastip?}</td>
		<td>
			{?if $rows[i].isfounder==1?}
			{?function saxue_geticon:'edit':'修改管理员':0?}
			{?function saxue_geticon:'del':'删除管理员':0?}
			{?else?}
			<a href="javascript:doDialog('{?$saxue_admin_url?}/admins.php?action=add&id={?$rows[i].id?}','修改管理员——{?$rows[i].account?}','550','220')">{?function saxue_geticon:'edit':'修改管理员'?}</a>
			<a href="?action=delete&id={?$rows[i].id?}" onclick="return confirm('你确定要删除管理员 {?$rows[i].account?} 吗？')">{?function saxue_geticon:'del':'删除管理员'?}</a>
			{?/if?}
		</td>
	</tr>
	{?/section?}
	</tbody>
</table>