人人商城

founder-display.html 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {template 'common/header'}
  2. {template 'founder/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="founderdisplay">
  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/foundercreate')}" 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="100px"/>
  23. <col width="120px"/>
  24. <col width="150px"/>
  25. <tr>
  26. <th></th>
  27. <th class="text-left">用户名</th>
  28. <th>用户权限组</th>
  29. <th>创建公众号</th>
  30. <th>使用公众号</th>
  31. <th>应用</th>
  32. <th>到期时间</th>
  33. <th class="text-right">操作</th>
  34. </tr>
  35. <tr ng-repeat="user in users" ng-if="users">
  36. <td><img src="{{user.avatar}}" alt="" class="img-responsive icon"/></td>
  37. <td class="text-left" ng-bind="user.username">{$user['username']}</td>
  38. <td>
  39. <span class="color-default" ng-if="user.founder">管理员</span>
  40. <span class="color-default" ng-if="user.groupname && !user.founder" ng-bind="user.groupname"></span>
  41. <span class="color-default" ng-if="!user.groupname && !user.founder">未分配</span>
  42. </td>
  43. <td class="color-default" ng-bind="user.maxaccount"></td>
  44. <td class="color-default" ng-bind="user.uniacid_num"></td>
  45. <td class="color-default">
  46. <span ng-if="!user.founder" ng-bind="user.module_nums"></span>
  47. <span ng-if="user.founder">全部</span>
  48. </td>
  49. <td>
  50. <span ng-bind="user.endtime"></span>
  51. </td>
  52. <td class="vertical-middle table-manage-td">
  53. <div class="link-group" ng-if="!user.founder">
  54. <a ng-href="{{links.edit}}uid={{user.uid}}" ng-if="type == 'display'">编辑</a>
  55. <a ng-href="{{links.recycleDel}}&uid={{user.uid}}" class="del" ng-if="type == 'display'">删除</a>
  56. </div>
  57. <div class="manage-option text-right" ng-if="!user.founder">
  58. <a href="{{links.edit}}uid={{user.uid}}">基础信息</a>
  59. <a href="{{links.edit}}&do=edit_modules_tpl&uid={{user.uid}}">应用模板权限</a>
  60. <a href="{{links.edit}}&do=edit_account&uid={{user.uid}}">使用账号列表</a>
  61. </div>
  62. </td>
  63. </tr>
  64. <tr ng-if="!users">
  65. <td colspan="7" class="text-center">暂无数据</td>
  66. </tr>
  67. </table>
  68. <div class="text-right">
  69. {$pager}
  70. </div>
  71. <script type="text/javascript">
  72. $(function(){
  73. $('[data-toggle="tooltip"]').tooltip();
  74. });
  75. angular.module('userManageApp').value('config', {
  76. type: "{php echo !empty($_GPC['type']) ? $_GPC['type'] : 'display'}",
  77. users: {php echo !empty($users) ? json_encode($users) : 'null'},
  78. usergroups: {php echo !empty($usergroups) ? json_encode($usergroups) : 'null'},
  79. links: {
  80. recycleDel: "{php echo url('founder/founderdisplay/del')}",
  81. edit: "{php echo url('founder/founderedit')}",
  82. },
  83. });
  84. angular.bootstrap($('#js-users-display'), ['userManageApp']);
  85. </script>
  86. {template 'common/footer'}