display.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {template 'common/header'}
  2. {template 'founder/header'}
  3. <div class="keyword-list-head clearfix we7-margin-bottom">
  4. <form action="" method="get">
  5. <input type="hidden" name="c" value="founder">
  6. <input type="hidden" name="a" value="display">
  7. <div class="input-group pull-left col-sm-4">
  8. <input type="text" name="username" id="" value="{$_GPC['username']}" class="form-control" placeholder="搜索副创始人" />
  9. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  10. </div>
  11. </form>
  12. <div class="pull-right">
  13. <a href="{php echo url('founder/create')}" class="btn btn-primary">+添加副创始人</a>
  14. </div>
  15. </div>
  16. <table class="table we7-table table-hover table-manage vertical-middle" id="js-users-display" ng-controller="UsersDisplay" ng-cloak>
  17. <col width="120px"/>
  18. <col width="150px">
  19. <col width="200px"/>
  20. <col width="120px"/>
  21. <col width="120px"/>
  22. <col width="120px"/>
  23. <col width="150px"/>
  24. <col width="120px"/>
  25. <col width="150px"/>
  26. <tr>
  27. <th></th>
  28. <th class="text-left">用户名</th>
  29. <th>用户权限组</th>
  30. <th>创建公众号</th>
  31. <th>创建小程序</th>
  32. <th>创建pc</th>
  33. <th>创建APP</th>
  34. <th>注册时间</th>
  35. <th>到期时间</th>
  36. <th class="text-right">操作</th>
  37. </tr>
  38. <tr ng-repeat="user in users" ng-if="users">
  39. <td class="td-link">
  40. <a ng-href="{{links.edit}}uid={{user.uid}}">
  41. <img src="{{user.avatar}}" alt="" class="img-responsive icon"/>
  42. </a>
  43. </td>
  44. <td class="text-left" ng-bind="user.username">{$user['username']}</td>
  45. <td>
  46. <span class="color-default" ng-if="user.founder">管理员</span>
  47. <span class="color-default" ng-if="user.groupname && !user.founder" ng-bind="user.groupname"></span>
  48. <span class="color-default" ng-if="!user.groupname && !user.founder">未分配</span>
  49. </td>
  50. <td class="color-default" ng-bind="user.maxaccount"></td>
  51. <td class="color-default" ng-bind="user.maxwxapp"></td>
  52. <td class="color-default" ng-bind="user.maxwebapp"></td>
  53. <td class="color-default" ng-bind="user.maxphoneapp"></td>
  54. <td>
  55. <span ng-bind="user.joindate"></span>
  56. </td>
  57. <td>
  58. <span ng-bind="user.endtime"></span>
  59. </td>
  60. <td class="vertical-middle table-manage-td">
  61. <div class="link-group" ng-if="!user.founder">
  62. <a ng-href="{{links.edit}}uid={{user.uid}}" ng-if="type == 'display'">编辑</a>
  63. <a href="javascript:;" ng-click="operate(user.uid, '')" class="del" ng-if="type == 'display'">删除</a>
  64. </div>
  65. <div class="manage-option text-right" ng-if="!user.founder">
  66. <a href="{{links.edit}}uid={{user.uid}}">基础信息</a>
  67. <a href="{{links.edit}}&do=edit_modules_tpl&uid={{user.uid}}">应用模板权限</a>
  68. <a href="{{links.edit}}&do=edit_account&uid={{user.uid}}">使用账号列表</a>
  69. </div>
  70. </td>
  71. </tr>
  72. <tr ng-if="!users">
  73. <td colspan="7" class="text-center">暂无数据</td>
  74. </tr>
  75. </table>
  76. <div class="text-right">
  77. {$pager}
  78. </div>
  79. <script type="text/javascript">
  80. $(function(){
  81. $('[data-toggle="tooltip"]').tooltip();
  82. });
  83. angular.module('userManageApp').value('config', {
  84. type: "{php echo !empty($_GPC['type']) ? $_GPC['type'] : 'display'}",
  85. users: {php echo !empty($users) ? json_encode($users) : 'null'},
  86. usergroups: {php echo !empty($usergroups) ? json_encode($usergroups) : 'null'},
  87. links: {
  88. link: "{php echo url('founder/display/del')}",
  89. edit: "{php echo url('founder/edit')}",
  90. },
  91. });
  92. angular.bootstrap($('#js-users-display'), ['userManageApp']);
  93. </script>
  94. {template 'common/footer'}