人人商城

group-display.html 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {template 'common/header'}
  2. <div class="we7-page-title">用户权限组管理</div>
  3. <ul class="we7-page-tab"></ul>
  4. <div class="clearfix we7-margin-bottom">
  5. <form action="" method="get">
  6. <div class="input-group pull-left col-sm-4">
  7. <input type="hidden" name="c" value="user">
  8. <input type="hidden" name="a" value="group">
  9. <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索用户权限组"/>
  10. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  11. </div>
  12. </form>
  13. <div class="pull-right">
  14. <a href="{php echo url('user/group/post')}" class="btn btn-primary">+添加用户组</a>
  15. </div>
  16. </div>
  17. <table class="table we7-table table-hover" id="js-user-group-display" ng-controller="UserGroupDisplay" ng-cloak>
  18. <col width="120px"/>
  19. <col width="220px"/>
  20. <col width="40px"/>
  21. <col width="40px"/>
  22. <col width="40px"/>
  23. <col width="40px"/>
  24. <col width="40px"/>
  25. <col width="40px"/>
  26. <col width="280px"/>
  27. <tr>
  28. <th class="text-left">用户组</th>
  29. <th>有限期</th>
  30. <th class="text-center"><i class="wi wi-wechat" style="font-size: 24px"></i></th>
  31. <th class="text-center"><i class="wi wi-wxapp" style="font-size: 24px"></i></th>
  32. <th class="text-center"><i class="wi wi-pc" style="font-size: 24px"></i></th>
  33. <th class="text-center"><i class="wi wi-app" style="font-size: 24px"></i></th>
  34. <th class="text-center"><i class="wi wi-xzapp" style="font-size: 24px"></i></th>
  35. <th class="text-center"><i class="wi wi-aliapp" style="font-size: 24px"></i></th>
  36. <th class="text-right">操作</th>
  37. </tr>
  38. <tr ng-repeat="list in lists">
  39. <td class="text-left" ng-bind="list.name"></td>
  40. <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
  41. <td class="text-center">
  42. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建公众号">
  43. <span ng-if="list.maxaccount == 0">0</span><span ng-if="list.maxaccount != 0" ng-bind="list.maxaccount"></span>
  44. </span>
  45. </td>
  46. <td class="text-center">
  47. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建小程序">
  48. <span ng-if="list.maxwxapp == 0">0</span><span ng-if="list.maxwxapp != 0" ng-bind="list.maxwxapp"></span>
  49. </span>
  50. </td>
  51. <td class="text-center">
  52. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建PC">
  53. <span ng-if="list.maxwebapp == 0">0</span><span ng-if="list.maxwebapp != 0" ng-bind="list.maxwebapp"></span>
  54. </span>
  55. </td>
  56. <td class="text-center">
  57. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建APP">
  58. <span ng-if="list.maxphoneapp == 0">0</span><span ng-if="list.maxphoneapp != 0" ng-bind="list.maxphoneapp"></span>
  59. </span>
  60. </td>
  61. <td class="text-center">
  62. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建熊掌号">
  63. <span ng-if="list.maxxzapp == 0">0</span><span ng-if="list.maxxzapp != 0" ng-bind="list.maxxzapp"></span>
  64. </span>
  65. </td>
  66. <td class="text-center">
  67. <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建支付宝小程序">
  68. <span ng-if="list.maxaliapp == 0">0</span><span ng-if="list.maxaliapp != 0" ng-bind="list.maxaliapp"></span>
  69. </span>
  70. </td>
  71. <td>
  72. <div class="link-group">
  73. <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
  74. <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
  75. </div>
  76. </td>
  77. </tr>
  78. </table>
  79. <div class="pull-right">
  80. {$pager}
  81. </div>
  82. <script>
  83. angular.module('userGroup').value('config', {
  84. lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
  85. links: {
  86. groupPost: "{php echo url('user/group/post')}",
  87. groupDel: "{php echo url('user/group/del')}",
  88. }
  89. });
  90. angular.bootstrap($('#js-user-group-display'), ['userGroup']);
  91. </script>
  92. {template 'common/footer'}