<!--{include file="<!--{$salepath}-->public/header.tpl"}-->
	<body>
			<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-even lay-skin="nob">
							<colgroup>
								<col width="50">
								<col width="100">
								<col width="100">
								<col width="80">
								<col width="200">
								<col width="150">
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" lay-skin="primary" lay-filter="allChoose" data-id=""></th>
									
									<th>帐号</th>
									<th>类型</th>
									<th>状态</th>
									<th>登录时间</th>
									<th>登录IP</th>
									<th>登录次数</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
                                <!--{if empty($admin)}-->
                                    <tr>
                                        <td colspan="5" style="text-align: center;">没有符合条件的信息！</td>
                                    </tr>
                                <!--{else}-->
                                                              
                                    <!--{foreach $admin as $key=>$volist}-->
                                    <tr>
	                                    <td><input type="checkbox"  lay-skin="primary" data-id="<!--{$volist.productid}-->"></td>
										<td><!--{$volist.adminname}--></td>
										<!--{if $volist.super==1}-->
											<td>系统管理员</td>
										<!--{else}-->
											<td><!--{$volist.groupname}--></td>

										<!--{/if}-->
										<td>
										<!--{if $volist.flag==0}-->
											<input type="hidden" id="attr_flag<!--{$volist.adminid}-->" value="flagopen" />
											<img id="flag<!--{$volist.adminid}-->" src="<!--{$urlpath}-->tpl/static/images/no.gif" onClick="javascript:fetch_ajax('flag','<!--{$volist.adminid}-->','1');" style="cursor:pointer;">
										<!--{else}-->
											<input type="hidden" id="attr_flag<!--{$volist.adminid}-->" value="flagclose" />
											<img id="flag<!--{$volist.adminid}-->" src="<!--{$urlpath}-->tpl/static/images/yes.gif" onClick="javascript:fetch_ajax('flag','<!--{$volist.adminid}-->','1');" style="cursor:pointer;">	
										<!--{/if}-->
										</td>

										<td><!--{$volist.logintimeline|date_format:"%Y/%m/%d %H:%M:%S"}--></td>
										<td><!--{$volist.loginip}--></td>
										<td><!--{$volist.logintimes}--></td>
										
										<td>
											<div class="layui-inline">
												<button class="layui-btn layui-btn-small layui-btn-normal addBtn" data-id="<!--{$volist.id}-->" data-url="sale.php?c=Admin&a=edit&id=<!--{$volist.adminid}-->&page=<!--{$page}-->" data-text='编辑'><i class="layui-icon">&#xe642;</i></button>
												<button class="layui-btn layui-btn-small layui-btn-danger del-btn" data-id="<!--{$volist.id}-->" data-url="sale.php?c=Admin&a=del&id[]=<!--{$volist.adminid}-->"><i class="layui-icon">&#xe640;</i></button>
											</div>
										</td>
									</tr>
                                                               <!--{/foreach}--> 


                                                             
                                                          <!--{/if}-->
								
							
							</tbody>
						</table>



						<div class="page-wrap">
							<ul class="pagination">
                                                            <!--{$showpage}-->
								 <!--<li class="disabled"><span>«</span></li>
								<li class="active"><span>1</span></li>
								<li>
									<a href="#">2</a>
								</li>
								<li>
									<a href="#">»</a>
								</li>-->
							</ul>
						</div>
					</div>
				</div>
		</div>
	
		
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
                  <script src="<!--{$salepath}-->static/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
                  <script type="text/javascript">
                            $(document).ready(function () { 
                            $("#search").click(function(){
                                    document.getElementById("forms").submit();
                                           
                            }); 
                    }); 

					</script>
	</body>
</html>
