group-display.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {template 'common/header'}
  2. <ul class="we7-page-tab hidden">
  3. <li class="active"><a href="{php echo url('user/group/display') }">用户权限套餐列表 </a></li>
  4. </ul>
  5. <div class="search-box we7-margin-bottom">
  6. <form action="" method="get" class="search-form">
  7. <div class="input-group">
  8. <input type="hidden" name="c" value="user">
  9. <input type="hidden" name="a" value="group">
  10. <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索用户权限组"/>
  11. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  12. </div>
  13. </form>
  14. <a href="{php echo url('user/group/post')}" class="btn btn-primary">+添加用户组</a>
  15. </div>
  16. <table class="table we7-table table-hover user-group-display-page" id="js-user-group-display" ng-controller="UserGroupDisplay" ng-cloak>
  17. <col width="200px"/>
  18. <col width="120px"/>
  19. <col width="200px">
  20. <tr>
  21. <th class="text-left">用户组</th>
  22. <th>有限期</th>
  23. <th>应用权限组个数</th>
  24. <th>可创建账号类型/个数</th>
  25. <th class="text-right">操作</th>
  26. </tr>
  27. <tr ng-repeat="list in lists" ng-if="!(lists | we7IsEmpty)">
  28. <td class="text-left" ng-bind="list.name"></td>
  29. <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
  30. <td>
  31. {{list.package.length || 0}}
  32. </td>
  33. <td >
  34. <span ng-repeat="(key, item) in we7TypeDefault" class="group-type" ng-if="list['max' + key] > 0">
  35. <i ng-class="item.icon" ></i> {{list['max' + key]}}
  36. </span>
  37. </td>
  38. <td>
  39. <div class="link-group">
  40. <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
  41. <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
  42. </div>
  43. </td>
  44. </tr>
  45. <tr ng-if="lists | we7IsEmpty">
  46. <td colspan="5">
  47. 暂无用户权限组合
  48. </td>
  49. </tr>
  50. </table>
  51. <div class="pull-right">
  52. {$pager}
  53. </div>
  54. <script>
  55. angular.module('userGroup').value('config', {
  56. lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
  57. links: {
  58. groupPost: "{php echo url('user/group/post')}",
  59. groupDel: "{php echo url('user/group/del')}",
  60. }
  61. });
  62. angular.bootstrap($('#js-user-group-display'), ['userGroup']);
  63. </script>
  64. {template 'common/footer'}