<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:36:"themes/admin_h/admin\rbac\index.html";i:1615187961;s:61:"D:\jsur\quant-server\public\themes\admin_h\public\header.html";i:1615187961;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
    <link href="/themes/admin_h/public/assets/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="/themes/admin_h/public/assets/css/animate.css" rel="stylesheet">
    <link href="/themes/admin_h/public/assets/css/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <style type="text/css">
        .form-required{
            color:red;
        }
    </style>
    <script src="/themes/admin_h/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_h/public/assets/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/themes/admin_h/public/assets/js/content.js?v=1.0.0"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>

</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>角色列表</h5>
                    <div class="ibox-tools">
                        <a href="#" class="btn btn-primary btn-xs active">角色管理</a>
                        <a href="<?php echo url('rbac/roleAdd'); ?>" class="btn btn-primary btn-xs">添加角色</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-hover">
                    <thead>
                    <tr>
                        <th width="40">
                            ID
                        </th>
                        <th align="left">
                            <?php echo lang('ROLE_NAME'); ?>
                        </th>
                        <th align="left">
                            <?php echo lang('ROLE_DESCRIPTION'); ?>
                        </th>
                        <th width="60" align="left">
                            <?php echo lang('STATUS'); ?>
                        </th>
                        <th width="160">
                            <?php echo lang('ACTIONS'); ?>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($roles) || $roles instanceof \think\Collection || $roles instanceof \think\Paginator): if( count($roles)==0 ) : echo "" ;else: foreach($roles as $key=>$vo): ?>
                    <tr>
                        <td>
                            <?php echo $vo['id']; ?>
                        </td>
                        <td>
                            <?php echo $vo['name']; ?>
                        </td>
                        <td>
                            <?php echo $vo['remark']; ?>
                        </td>
                        <td>
                            <?php if($vo['status'] == 1): ?>
                            <font color="red">√</font>
                            <?php else: ?>
                            <font color="red">╳</font>
                            <?php endif; ?>
                        </td>
                        <td>
                            <?php if($vo['id'] == 1): ?>
                            <font color="#cccccc"><?php echo lang('ROLE_SETTING'); ?></font><!-- <a href="javascript:openIframeDialog('<?php echo url('rbac/member',array('id'=>$vo['id'])); ?>','成员管理');">成员管理</a> | -->
                            <font color="#cccccc"><?php echo lang('EDIT'); ?></font><font color="#cccccc"><?php echo lang('DELETE'); ?></font>
                            <?php else: ?>
                            <a href="<?php echo url('Rbac/authorize',array('id'=>$vo['id'])); ?>"><?php echo lang('ROLE_SETTING'); ?></a>
                            <!-- <a href="javascript:openIframeDialog('<?php echo url('rbac/member',array('id'=>$vo['id'])); ?>','成员管理');">成员管理</a>| -->
                            <a href="<?php echo url('Rbac/roleedit',array('id'=>$vo['id'])); ?>"><?php echo lang('EDIT'); ?></a>
                            <a class="js-ajax-delete" href="<?php echo url('Rbac/roledelete',array('id'=>$vo['id'])); ?>"><?php echo lang('DELETE'); ?></a>
                            <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/js/admin.js"></script>
</body>
</html>