123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?php /*a:2:{s:66:"D:\phpstudy_pro\WWW\caiping\app\acctconnect\view\connect\view.html";i:1723541257;s:65:"D:\phpstudy_pro\WWW\caiping\app\acctconnect\view\common\base.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
-
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .left-note{vertical-align:top; padding-top:20px!important; text-align:center}
- .layui-form-checked.layui-checkbox-disabled[lay-skin=primary] i {background-color:#808080; border-color: #808080;}
- .layui-checkbox-disabled[lay-skin=primary] span {color: #808080!important;}
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <form class="layui-form p-4">
- <h3 class="pb-3">管理员信息</h3>
- <table class="layui-table layui-table-form">
- <tr>
- <td class="layui-td-gray">登录账号</td>
- <td>
- <?php echo htmlentities($admin['username']); ?>
- </td>
- <td class="layui-td-gray">用户名</td>
- <td>
- <?php echo htmlentities($admin['nickname']); ?>
- </td>
- <td rowspan="4" class="layui-td-gray">头像</td>
- <td rowspan="4" valign="top" style="width: 150px;">
- <div class="layui-upload">
- <img src="<?php echo htmlentities($admin['thumb']); ?>" width="150" height="150" style="max-width:150px;" />
- </div>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">手机号码</td>
- <td>
- <?php echo htmlentities($admin['mobile']); ?>
- </td>
- <td class="layui-td-gray">电子邮箱</td>
- <td>
- <?php echo htmlentities($admin['email']); ?>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">所在部门</td>
- <td>
- <?php if(is_array($department) || $department instanceof \think\Collection || $department instanceof \think\Paginator): $i = 0; $__LIST__ = $department;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['id'] == $admin['did']): ?><?php echo htmlentities($v['title']); ?><?php endif; ?>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </td>
- <td class="layui-td-gray">岗位职称</td>
- <td>
- <?php if(is_array($position) || $position instanceof \think\Collection || $position instanceof \think\Paginator): $i = 0; $__LIST__ = $position;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['id'] == $admin['position_id']): ?><?php echo htmlentities($v['title']); ?><?php endif; ?>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">用户角色
- </td>
- <td>
- <?php $_result=get_admin_group();if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if(is_array($admin['group_id']) || $admin['group_id'] instanceof \think\Collection || $admin['group_id'] instanceof \think\Paginator): $i = 0; $__LIST__ = $admin['group_id'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;if($a == $v['id']): ?><?php echo htmlentities($v['title']); ?>,<?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </td>
- <td class="layui-td-gray">状态</td>
- <td>
- <?php if($admin['status'] == '1'): ?>正常<?php endif; if($admin['status'] == '0'): ?>禁止登录<?php endif; ?>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray-2">最后登录时间</td>
- <td>
- <?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($admin['last_login_time'])? strtotime($admin['last_login_time']) : $admin['last_login_time'])); ?>
- </td>
- <td class="layui-td-gray-2">最后登录IP</td>
- <td>
- <?php echo htmlentities($admin['last_login_ip']); ?>
- </td>
- <td class="layui-td-gray">累计登录</td>
- <td>
- <?php echo htmlentities($admin['login_num']); ?>次
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray">备注</td>
- <td colspan="5">
- <?php echo htmlentities((isset($admin['desc']) && ($admin['desc'] !== '')?$admin['desc']:"")); ?>
- </td>
- </tr>
- </table>
- <h3 class="py-3">用户权限</h3>
- <table class="layui-table layui-table-form">
- <?php if(is_array($role_rule) || $role_rule instanceof \think\Collection || $role_rule instanceof \think\Paginator): $i = 0; $__LIST__ = $role_rule;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
- <tr>
- <td class="left-note">
- <input type="checkbox" disabled value="<?php echo htmlentities($vo['id']); ?>" title="<?php echo htmlentities($vo['title']); ?>" <?php if($vo['checked'] == 'true'): ?>checked<?php endif; ?>>
- </td>
- <?php if(!(empty($vo['children']) || (($vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator ) && $vo['children']->isEmpty()))): ?>
- <td class="right-note">
- <div style="padding:0 0 0 10px;">
- <?php if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator): $k = 0; $__LIST__ = $vo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voo): $mod = ($k % 2 );++$k;?>
- <div class="checkbox16" style="padding:10px 0;">
- <input type="checkbox" disabled lay-filter="rule" name="rule[]" value="<?php echo htmlentities($voo['id']); ?>" lay-skin="primary" title="<?php echo htmlentities($voo['title']); ?>" <?php if($voo['checked'] == 'true'): ?>checked<?php endif; ?>>
- </div>
- <?php if(!(empty($voo['children']) || (($voo['children'] instanceof \think\Collection || $voo['children'] instanceof \think\Paginator ) && $voo['children']->isEmpty()))): ?>
- <div style="padding:0 0 3px; <?php if($k != count($vo['children'])): ?>margin-bottom:3px; padding-bottom:16px; border-bottom:1px solid #eee;<?php endif; ?>">
- <?php if(is_array($voo['children']) || $voo['children'] instanceof \think\Collection || $voo['children'] instanceof \think\Paginator): $i = 0; $__LIST__ = $voo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vooo): $mod = ($i % 2 );++$i;?>
- <div class="layui-input-inline" style="margin-right:10px;">
- <input type="checkbox" disabled data-rule="<?php echo htmlentities($voo['id']); ?>" name="rule[]" value="<?php echo htmlentities($vooo['id']); ?>" lay-skin="primary" title="<?php echo htmlentities($vooo['title']); ?>" <?php if($vooo['checked'] == 'true'): ?>checked<?php endif; ?>>
- </div>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
- <?php endif; ?>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
- </td>
- <?php endif; ?>
- </tr>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </table>
- </form>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
-
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|