roleUserList.vm 2.24 KB
#set($page_title="用户列表")
#set($crumbs="首页:/home,用户列表")

##详情
#set($url_del = "/role/delUser.do")
##查询地址
#set($url_list = "/role/list.do")

<div class="row">
    <div class="col-xs-12">

        <div class="table-header">
            角色列表
        </div>

        <div class="table-responsive">
            <div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">

                <table id="sample-table-2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                    <thead>
                    <tr role="row">
                        <th>主键</th>
                        <th>用户名</th>
                        <th>真实姓名</th>
                        <th><i class="icon-time bigger-110 hidden-480"></i>操作</th>
                    </tr>
                    </thead>


                    <tbody role="alert" aria-live="polite" aria-relevant="all">
                        #foreach($obj in $!{users})
                        <tr>
                            <td>
                                $!{obj.id}
                            </td>
                            <td>
                                $!{obj.userName}
                            </td>
                            <td>
                                $!{obj.roleName}
                            </td>
                            <td>
                                <div class="action-buttons">
                                    <a class="red" href="${url_del}?userId=${obj.id}&roleId=${role.id}" onclick="return confirm('确定要删除!');">
                                        <i class="fa fa-trash  "></i>删除
                                    </a>
                                </div>
                            </td>

                        </tr>
                        #end
                    </tbody>
                </table>
                <div class="row">
                    <div class="col-sm-6">
                        <a href="$url_list" class="btn btn-success btn-sm ">返回</a>
                    </div>
                    <div class="col-sm-6">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>