<!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><?php echo V('-:tpl/title');?>管理后台</title>
<link href="<?php echo W_BASE_URL;?>css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/admin.js"></script>
</head>
<body>
     <!--header-->
     <?php include  "header.php"?>
     
     <!--content-->
     <div class="wrap">
              <div class="hspace1"></div>
              <!--left-->
              <div class="con_left">
                   <%include file = "admin/sys/sub_menu.tpl"%>
              </div>
              <!--right-->
              <div class="con_right">
                        <!--menu-->
                        <%include file = "admin/main_menu.tpl"%>
                        <div class="position">
                        您所在的位置：<b>系统管理</b>><b>管理员列表 </b>
                        </div>
                        <!--search-->
                        <div class="cr_nav">
			<form action="" method="get" name="form_search" id="form_search">
                             <ul><li><span>搜索：</span><input type="text" name="keyword" msg_title="关键字" value="<%$keyword%>"/></li><li>&nbsp;<input type="submit" class="search"  value="搜索"/></li></ul>
						</form>
                        </div>

						<%if $list|@count > 0%>
						<div class="cr_oplist">
							<div class="left">
                            <input name="checkall" type="checkbox" value="" onclick="checkAll('id[]', this.checked)"/>全选 
							<a href="#" onclick="doAction('del','id[]','form_check','/admin/sys/delete')">删除</a>
							</div>
							
							<div class="right">
							<%page per_page=$per_page total=$total%>
							</div>
						</div>
						<%/if%>

                        <!--搜索结果列表-->
                        <div class="cr_list">
			<form name="form_check" id="form_check" action="" method="post">
                             <table cellspacing="0"><tr>
			        <th class="text_l">编号</th>
                                <th>管理员名</th>
                                <th>真实姓名</th>
				<th>状态</th>
				<th>登录次数</th>
				<th width="20%">最后登录时间</th>
                                <th>操作</th>
                              </tr>
                              <%section name=index loop=$list%>
                              <tr<%if $smarty.section.index.index%2 neq 0%> style="background:#f5f6f3;"<%/if%>>
                                <td class="text_l"><input name="id[]" type="checkbox" value="<%$list[index].user_id%>" /><%$list[index].user_id%></td>
				<td class="text_l"><%$list[index].user_name%></td>
                                <td><%$list[index].real_name%></td>
				<td><%if $list[index].active eq 1%>激活<%else%>停止<%/if%></td>
				<td><%$list[index].user_logins%></td>
				<td><%$list[index].last_login|date_format:"%Y-%m-%d %H:%I:%S"%></td>
                                <td>
				[<a href="/admin/sys/edit/?id=<%$list[index].user_id%>">编辑</a>]
				[<a onclick="javascript:if(confirm('你确定要删除管理员[<%$list[index].user_name|html_adds%>]吗?')){this.href='/admin/sys/delete/?id=<%$list[index].user_id%>'}" href="#">删除</a>]
				</td>
                              </tr>
			      <%sectionelse%>
                              <tr >
                                <td colspan="7" style="text-align:left;padding-left:20px">没有任何记录</td>
			      </tr>
                              <%/section%>
                          </table>
			</form>
                    </div>

		<%if $smarty.section.index.total > 0%>
                    <div class="cr_oplist">
                        <div class="left">
                            <input name="checkall" type="checkbox" value="" onclick="checkAll('id[]', this.checked)"/>全选 
			<a href="#" onclick="doAction('del','id[]','form_check','/admin/sys/delete')">删除</a>
                        </div>
                        
                        <div class="right">
                               <%page per_page=$per_page total=$total%>
                        </div>
                    </div>
		<%/if%>
     </div>  
</body>
</html>
