50 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
		
		
			
		
	
	
			50 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
| 
								 | 
							
								{layout name="manager/layout" /}
							 | 
						||
| 
								 | 
							
								<div class="layui-card layui-col-md12">
							 | 
						||
| 
								 | 
							
								    <div class="layui-card-body">
							 | 
						||
| 
								 | 
							
								        <div class=" top-operate" >
							 | 
						||
| 
								 | 
							
								            {if $member['groupId'] == 1}
							 | 
						||
| 
								 | 
							
								            <a class="layui-btn layui-btn-normal" data-href="{:url('manager.member/add')}" title="添加" >
							 | 
						||
| 
								 | 
							
								                <i class="layui-icon layui-icon-add-1"></i>新增用户
							 | 
						||
| 
								 | 
							
								            </a>
							 | 
						||
| 
								 | 
							
								            {/if}
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								        <table class="layui-table">
							 | 
						||
| 
								 | 
							
								            <colgroup>
							 | 
						||
| 
								 | 
							
								                <col>
							 | 
						||
| 
								 | 
							
								                <col>
							 | 
						||
| 
								 | 
							
								                <col>
							 | 
						||
| 
								 | 
							
								                <col width="50%">
							 | 
						||
| 
								 | 
							
								            </colgroup>
							 | 
						||
| 
								 | 
							
								            <thead>
							 | 
						||
| 
								 | 
							
								                <td>用户名</td>
							 | 
						||
| 
								 | 
							
								                <td>分组</td>
							 | 
						||
| 
								 | 
							
								                <td>最近登录时日期</td>
							 | 
						||
| 
								 | 
							
								                <td>操作</td>
							 | 
						||
| 
								 | 
							
								            </thead>
							 | 
						||
| 
								 | 
							
								            {foreach name="items" item="item"}
							 | 
						||
| 
								 | 
							
								            <tr>
							 | 
						||
| 
								 | 
							
								                <td>{$item.username} </td>
							 | 
						||
| 
								 | 
							
								                <td>{$item.title} </td>
							 | 
						||
| 
								 | 
							
								                <td>
							 | 
						||
| 
								 | 
							
								                    {:$item.login_time > 0 ? date('Y-m-d H:i:s', $item.login_time) : ''} 
							 | 
						||
| 
								 | 
							
								                </td>
							 | 
						||
| 
								 | 
							
								                <td>
							 | 
						||
| 
								 | 
							
								                    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="{:url('manager.member/menuAlloter',['id' => $item['id']])}" title="栏目分配 - {$item.username}">
							 | 
						||
| 
								 | 
							
								                        <i class=""></i>栏目分配
							 | 
						||
| 
								 | 
							
								                    </a>
							 | 
						||
| 
								 | 
							
								                    <a class="layui-btn layui-btn-warm layui-btn-xs" data-href="{:url('manager.member/edit',['id' => $item['id']])}" title="编辑">
							 | 
						||
| 
								 | 
							
								                        <i class=""></i>编辑
							 | 
						||
| 
								 | 
							
								                    </a>
							 | 
						||
| 
								 | 
							
								                    {if $member['groupId'] == 1}
							 | 
						||
| 
								 | 
							
								                    <a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.member/del')}" data-id="{$item.id}" href="javascript:void(0);">
							 | 
						||
| 
								 | 
							
								                        <i class=""></i>删除
							 | 
						||
| 
								 | 
							
								                    </a>
							 | 
						||
| 
								 | 
							
								                    {/if}
							 | 
						||
| 
								 | 
							
								                </td>
							 | 
						||
| 
								 | 
							
								            </tr>
							 | 
						||
| 
								 | 
							
								            {/foreach}
							 | 
						||
| 
								 | 
							
								        </table>
							 | 
						||
| 
								 | 
							
								        <div class="page top30">{$items->render()|raw}</div>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								</div>
							 |