人人商城

group.html 4.2KB

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