edit-account.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {template 'common/header'}
  2. {if empty($user['founder_groupid'])}
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{url 'user/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
  5. <li><a href="{url 'user/display'}">用户管理</a></li>
  6. <li>编辑用户详情</li>
  7. </ol>
  8. {else}
  9. <ol class="breadcrumb we7-breadcrumb">
  10. <a href="{url 'founder/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
  11. <li><a href="{url 'founder/display'}">副创始人管理</a></li>
  12. <li>编辑副创始人详情</li>
  13. </ol>
  14. {/if}
  15. <div id="js-user-edit-account" ng-controller="UserEditAccount" ng-cloak>
  16. <div class="user-head-info" >
  17. <img ng-src="{{profile.avatar || ''}}" class="img-circle user-avatar">
  18. <div class="info">
  19. <h3 class="title" ng-bind="user.username"></h3>
  20. </div>
  21. {if $user['founder_groupid'] != ACCOUNT_MANAGE_GROUP_VICE_FOUNDER}
  22. <a href="javascript:;" class="btn btn-primary" ng-click="recycleUser()">禁用</a>
  23. {/if}
  24. </div>
  25. <div class="btn-group we7-btn-group we7-padding-bottom">
  26. <a href="{php echo url('user/edit/edit_base', array('uid' => $_GPC['uid']))}" class="btn btn-default">基础信息</a>
  27. {if empty($user['founder_groupid'])}
  28. <a href="{php echo url('user/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
  29. {/if}
  30. {if !empty($user['founder_groupid'])}
  31. <a href="{php echo url('founder/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
  32. {/if}
  33. <a href="{php echo url('user/edit/edit_create_account_list', array('uid' => $_GPC['uid']))}" class="btn btn-default">账号创建权限</a>
  34. <a href="{php echo url('user/edit/edit_account_dateline', array('uid' => $_GPC['uid']))}" class="btn btn-default">账号使用期限</a>
  35. {if empty($user['founder_groupid'])}
  36. <a href="{php echo url('user/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
  37. {/if}
  38. {if !empty($user['founder_groupid'])}
  39. <a href="{php echo url('founder/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
  40. {/if}
  41. </div>
  42. <table class="table we7-table table-hover vertical-middle">
  43. <col width="70px"/>
  44. <col width="400px"/>
  45. <col />
  46. <col width="240px"/>
  47. <tr>
  48. <th colspan="2" class="text-left">可使用的账号</th>
  49. <th></th>
  50. <th class="text-right">操作</th>
  51. </tr>
  52. <tr ng-repeat="account in account_list" ng-if="account_list">
  53. <td class="text-left"><img ng-src="{{account.thumb}}" class="img-responsive account-img__list"/></td>
  54. <td class="text-left">
  55. <p ng-bind="account.name"></p>
  56. <span class="color-gray" ng-if="account.type_name == 'wechats'">
  57. <i class="wi wi-account"></i>
  58. <span ng-if="wechat.level == 1">普通订阅号</span>
  59. <span ng-if="wechat.level == 2">普通服务号</span>
  60. <span ng-if="wechat.level == 3">认证订阅号</span>
  61. <span ng-if="wechat.level == 4">认证服务号/认证媒体/政府订阅号</span>
  62. </span>
  63. <span class="color-gray" >
  64. <i class="wi wi-{{we7TypeDefault[account.type_name]['icon']}}"></i>
  65. <span >{{we7TypeDefault[account.type_name]['name']}}</span>
  66. </span>
  67. </td>
  68. <td>
  69. <span ng-if="account.role == 'founder'">创始人</span>
  70. <span ng-if="account.role == 'vice_founder'">副创始人</span>
  71. <span ng-if="account.role == 'owner'">主管理员</span>
  72. <span ng-if="account.role == 'manager'">管理员</span>
  73. <span ng-if="account.role == 'operator'" class="label-versions">操作员</span>
  74. <span ng-if="account.role == 'clerk'">应用操作员</span>
  75. </td>
  76. <td>
  77. <div class="link-group">
  78. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{account.uniacid}}&acid={{account.acid}}&account_type={{account.type}}" class="color-default">设置</a>
  79. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{account.uniacid}}&acid={{account.acid}}&account_type={{account.type}}" class="color-default">操作员设置</a>
  80. </div>
  81. </td>
  82. </tr>
  83. <tr ng-if="!account_list">
  84. <td colspan="100">
  85. <div class="we7-empty-block">
  86. 暂无可使用账号
  87. </div>
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. <script>
  93. require(['daterangepicker'], function() {
  94. angular.module('userManageApp').value('config', {
  95. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  96. account_list : {php echo !empty($account_list) ? json_encode($account_list) : 'null'},
  97. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  98. links: {
  99. recycleUser: "{php echo url('user/display/operate', array('type' => 'recycle'))}",
  100. },
  101. });
  102. angular.bootstrap($('#js-user-edit-account'), ['userManageApp']);
  103. });
  104. </script>
  105. {template 'common/footer'}