人人商城

permission.html 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {template 'common/header'}
  2. <div class="we7-page-title">用户管理</div>
  3. <ul class="we7-page-tab">
  4. <li><a href="{php echo url('user/display');}">用户列表</a></li>
  5. <li><a href="{php echo url('user/create');}">添加用户</a></li>
  6. <li><a href="{url 'user/edit' array('uid' => $uid)}">编辑用户</a></li>
  7. <li class="active"><a href="{php echo url('user/permission', array('uid' => $uid));}">查看用户权限</a></li>
  8. </ul>
  9. <div class="clearfix">
  10. <div class="form form-horizontal" >
  11. <div class="panel panel-default">
  12. <div class="panel-heading">用户组基本权限</div>
  13. <div class="panel-body table-responsive">
  14. <table class="table table-hover">
  15. <tr>
  16. <td style="width:250px">用户组名</td>
  17. <td>
  18. <p class="form-control-static">{$group['name']}&nbsp;&nbsp;<a href="{php echo url('user/group/post', array('id' => $group['id']));}" title="编辑当前用户所在用户组"><i class="fa fa-edit"></i></a></p>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td>最多公众号数量</td>
  23. <td>{$group['maxaccount']}</td>
  24. </tr>
  25. </table>
  26. </div>
  27. </div>
  28. <div class="panel panel-default">
  29. <div class="panel-heading">可使用公众号</div>
  30. <div class="panel-body table-responsive">
  31. <table class="table table-hover">
  32. <thead>
  33. <tr>
  34. <th style="width:250px;">公众号</th>
  35. <th>角色</th>
  36. <th style="width:450px;">操作</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. {loop $wechats $item}
  41. <tr>
  42. <td>{$item['name']}</td>
  43. <td>{if $weids[$item['uniacid']]['role'] == 'operator'}<span class="label label-success">操作员{else}<span class="label label-info">管理员{/if}</span></td>
  44. <td><a href="{url 'account/post' array('uniacid' => $item['uniacid'])}" target="_blank">编辑公众号</a>&nbsp;|&nbsp;<a href="{url 'account/permission' array('uniacid' => $item['uniacid'], 'fromuid' => $uid)}" target="_blank">编辑权限</a></td>
  45. </tr>
  46. {/loop}
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <div class="panel panel-default">
  52. <div class="panel-heading">当前用户所在用户组可使用的公众号权限</div>
  53. <div class="panel-body table-responsive">
  54. <table class="table table-hover">
  55. <thead>
  56. <tr>
  57. <th style="width:250px;">公众服务套餐</th>
  58. <th>模块权限</th>
  59. <th style="width:450px;">模板权限</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. {loop $group['package'] $item}
  64. <tr>
  65. <td style="line-height:30px;width:250px;">{$item['name']}</td>
  66. <td style="line-height:30px; white-space:normal;">
  67. <span class="label label-success">系统模块</span>
  68. {loop $item['modules'] $module}
  69. <span class="label label-info">{$module['title']}</span>
  70. {/loop}
  71. </td>
  72. <td style="line-height:30px; white-space:normal;">
  73. <span class="label label-success">微站默认模板</span>
  74. {loop $item['templates'] $template}
  75. <span class="label label-info">{$template['title']}</span>
  76. {/loop}
  77. </td>
  78. </tr>
  79. {/loop}
  80. </tbody>
  81. </table>
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <div class="col-xs-12 col-sm-10 col-md-10 col-lg-10">
  86. <a class="btn btn-primary" href="{url 'user/edit' array('uid' => $uid)}">编辑当前用户资料</a>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. {template 'common/footer'}