qa-ifish7/web/Application/Admin/View/User/index.html

82 lines
3.5 KiB
HTML

<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_h1"><h1>{$pagetitle}</h1></div>
<div class="main_add">
<a class="btn btn-inverse iframe" href="{:U('add')}">增加用户</a>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-striped">
<thead>
<tr>
<th width="10%">ID</th>
<th>用户名</th>
<th>对应角色</th>
<th>登录次数</th>
<th>最后登录时间</th>
<th>最后登录IP</th>
<th>状态</th>
<th>查看日志</th>
<th>复核权限</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{$v['user_id']}</td>
<td class="center tab-title">{$v['user_name']}</td>
<td class="center">
<if condition="$v['user_id']==C('USER_ADMINISTRATOR')">
<button class="btn btn-primary btn-mini">超级管理员</button>
<else />
<foreach name="v.role" item="role_rs">
<button class="btn btn-inverse btn-mini" style="margin-left:4px;">{$role_rs['name']}</button>
</foreach>
</if>
</td>
<td class="center">{$v['login_num']}</td>
<td class="center"><?=$v['last_login_time']?date("Y-m-d",$v['last_login_time']):"-"?></td>
<td class="center">{$v['last_login_ip']?$v['last_login_ip']:"-"}</td>
<td class="center">
<if condition="$v.status eq 1 ">
<span class="label label-success">正常</span>
<else />
<span class="label">禁用</span>
</if>
</td>
<td class="center tab-title"><a href="{:U('UserLoginLog/index',array('userid'=>$v[user_id]))}">[登录日志]</a> &nbsp; <a href="{:U('UserLog/index',array('userid'=>$v[user_id]))}">[操作日志]</a></td>
<td class="center">
<if condition="$v.can_check eq 1 ">
<span class="label label-success">有权限</span>
<else />
<span class="label"></span>
</if>
</td>
<td class="center">
<a href="{:U("editor",array("user_id"=>$v[user_id]))}" class="btn btn-primary btn-mini iframe">修改</a>
<a href="{:U("del",array("user_id"=>$v[user_id]))}" class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>