ad639ea920d0af43c2f2d5db31a34b5f.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  9. <link rel="mobile-prefetch" href=""/>
  10. <title><?php echo get_system_config('web','admin_title'); ?></title>
  11. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  12. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  13. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  14. <style>
  15. .left-note{vertical-align:top; padding-top:20px!important; text-align:center}
  16. .layui-form-checked.layui-checkbox-disabled[lay-skin=primary] i {background-color:#808080; border-color: #808080;}
  17. .layui-checkbox-disabled[lay-skin=primary] span {color: #808080!important;}
  18. </style>
  19. </head>
  20. <body class="main-body">
  21. <!-- 主体 -->
  22. <form class="layui-form p-4">
  23. <h3 class="pb-3">管理员信息</h3>
  24. <table class="layui-table layui-table-form">
  25. <tr>
  26. <td class="layui-td-gray">登录账号</td>
  27. <td>
  28. <?php echo htmlentities($admin['username']); ?>
  29. </td>
  30. <td class="layui-td-gray">用户名</td>
  31. <td>
  32. <?php echo htmlentities($admin['nickname']); ?>
  33. </td>
  34. <td rowspan="4" class="layui-td-gray">头像</td>
  35. <td rowspan="4" valign="top" style="width: 150px;">
  36. <div class="layui-upload">
  37. <img src="<?php echo htmlentities($admin['thumb']); ?>" width="150" height="150" style="max-width:150px;" />
  38. </div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="layui-td-gray">手机号码</td>
  43. <td>
  44. <?php echo htmlentities($admin['mobile']); ?>
  45. </td>
  46. <td class="layui-td-gray">电子邮箱</td>
  47. <td>
  48. <?php echo htmlentities($admin['email']); ?>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="layui-td-gray">所在部门</td>
  53. <td>
  54. <?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; ?>
  55. <?php endforeach; endif; else: echo "" ;endif; ?>
  56. </td>
  57. <td class="layui-td-gray">岗位职称</td>
  58. <td>
  59. <?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; ?>
  60. <?php endforeach; endif; else: echo "" ;endif; ?>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="layui-td-gray">用户角色
  65. </td>
  66. <td>
  67. <?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; ?>
  68. <?php endforeach; endif; else: echo "" ;endif; ?>
  69. </td>
  70. <td class="layui-td-gray">状态</td>
  71. <td>
  72. <?php if($admin['status'] == '1'): ?>正常<?php endif; if($admin['status'] == '0'): ?>禁止登录<?php endif; ?>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td class="layui-td-gray-2">最后登录时间</td>
  77. <td>
  78. <?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'])); ?>
  79. </td>
  80. <td class="layui-td-gray-2">最后登录IP</td>
  81. <td>
  82. <?php echo htmlentities($admin['last_login_ip']); ?>
  83. </td>
  84. <td class="layui-td-gray">累计登录</td>
  85. <td>
  86. <?php echo htmlentities($admin['login_num']); ?>次
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="layui-td-gray">备注</td>
  91. <td colspan="5">
  92. <?php echo htmlentities((isset($admin['desc']) && ($admin['desc'] !== '')?$admin['desc']:"")); ?>
  93. </td>
  94. </tr>
  95. </table>
  96. <h3 class="py-3">用户权限</h3>
  97. <table class="layui-table layui-table-form">
  98. <?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;?>
  99. <tr>
  100. <td class="left-note">
  101. <input type="checkbox" disabled value="<?php echo htmlentities($vo['id']); ?>" title="<?php echo htmlentities($vo['title']); ?>" <?php if($vo['checked'] == 'true'): ?>checked<?php endif; ?>>
  102. </td>
  103. <?php if(!(empty($vo['children']) || (($vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator ) && $vo['children']->isEmpty()))): ?>
  104. <td class="right-note">
  105. <div style="padding:0 0 0 10px;">
  106. <?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;?>
  107. <div class="checkbox16" style="padding:10px 0;">
  108. <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; ?>>
  109. </div>
  110. <?php if(!(empty($voo['children']) || (($voo['children'] instanceof \think\Collection || $voo['children'] instanceof \think\Paginator ) && $voo['children']->isEmpty()))): ?>
  111. <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; ?>">
  112. <?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;?>
  113. <div class="layui-input-inline" style="margin-right:10px;">
  114. <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; ?>>
  115. </div>
  116. <?php endforeach; endif; else: echo "" ;endif; ?>
  117. </div>
  118. <?php endif; ?>
  119. <?php endforeach; endif; else: echo "" ;endif; ?>
  120. </div>
  121. </td>
  122. <?php endif; ?>
  123. </tr>
  124. <?php endforeach; endif; else: echo "" ;endif; ?>
  125. </table>
  126. </form>
  127. <!-- /主体 -->
  128. <!-- 底部 -->
  129. <!-- /底部 -->
  130. <!-- 脚本 -->
  131. <!-- /脚本 -->
  132. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  133. <script src="/static/assets/layui/layui.js"></script>
  134. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  135. <script src="/static/assets/gougu/gouguInit.js"></script>
  136. <!-- 统计代码 -->
  137. <!-- /统计代码 -->
  138. </body>
  139. </html>