人人商城

display.html 3.9KB

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