1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- {template 'common/header'}
- <div class="we7-page-title">用户权限组管理</div>
- <ul class="we7-page-tab"></ul>
- <div class="clearfix we7-margin-bottom">
- <form action="" method="get">
- <div class="input-group pull-left col-sm-4">
- <input type="hidden" name="c" value="user">
- <input type="hidden" name="a" value="group">
- <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索用户权限组"/>
- <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
- </div>
- </form>
- <div class="pull-right">
- <a href="{php echo url('user/group/post')}" class="btn btn-primary">+添加用户组</a>
- </div>
- </div>
- <table class="table we7-table table-hover" id="js-user-group-display" ng-controller="UserGroupDisplay" ng-cloak>
- <col width="120px"/>
- <col width="220px"/>
- <col width="40px"/>
- <col width="40px"/>
- <col width="40px"/>
- <col width="40px"/>
- <col width="40px"/>
- <col width="40px"/>
- <col width="280px"/>
- <tr>
- <th class="text-left">用户组</th>
- <th>有限期</th>
- <th class="text-center"><i class="wi wi-wechat" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-wxapp" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-pc" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-app" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-xzapp" style="font-size: 24px"></i></th>
- <th class="text-center"><i class="wi wi-aliapp" style="font-size: 24px"></i></th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="list in lists">
- <td class="text-left" ng-bind="list.name"></td>
- <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建公众号">
- <span ng-if="list.maxaccount == 0">0</span><span ng-if="list.maxaccount != 0" ng-bind="list.maxaccount"></span>
- </span>
- </td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建小程序">
- <span ng-if="list.maxwxapp == 0">0</span><span ng-if="list.maxwxapp != 0" ng-bind="list.maxwxapp"></span>
- </span>
- </td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建PC">
- <span ng-if="list.maxwebapp == 0">0</span><span ng-if="list.maxwebapp != 0" ng-bind="list.maxwebapp"></span>
- </span>
- </td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建APP">
- <span ng-if="list.maxphoneapp == 0">0</span><span ng-if="list.maxphoneapp != 0" ng-bind="list.maxphoneapp"></span>
- </span>
- </td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建熊掌号">
- <span ng-if="list.maxxzapp == 0">0</span><span ng-if="list.maxxzapp != 0" ng-bind="list.maxxzapp"></span>
- </span>
- </td>
- <td class="text-center">
- <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="可创建支付宝小程序">
- <span ng-if="list.maxaliapp == 0">0</span><span ng-if="list.maxaliapp != 0" ng-bind="list.maxaliapp"></span>
- </span>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
- <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
- </div>
- </td>
- </tr>
- </table>
- <div class="pull-right">
- {$pager}
- </div>
- <script>
- angular.module('userGroup').value('config', {
- lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
- links: {
- groupPost: "{php echo url('user/group/post')}",
- groupDel: "{php echo url('user/group/del')}",
- }
- });
- angular.bootstrap($('#js-user-group-display'), ['userGroup']);
- </script>
- {template 'common/footer'}
|