manage-display.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {template 'common/header'}
  2. <div id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
  3. <div class="clearfix ">
  4. <div class="search-box we7-margin-bottom" ng-show="!showActionStatus">
  5. <select name="" class="we7-margin-right">
  6. <option data-url="{php echo filter_url('account_type:');}" >帐号类型筛选</option>
  7. {loop $account_all_type_sign $type_sign $type_sign_info}
  8. {if $type_sign_info['account_num'] && $type_sign_info['account_num'] > 0}
  9. <option data-url="{php echo filter_url('account_type:' . $type_sign);}" {if $_GPC['account_type'] == $type_sign} selected{/if}>{$type_sign_info['title']}</option>
  10. {/if}
  11. {/loop}
  12. </select>
  13. <select name="" id="" class="we7-margin-right">
  14. <option data-url="{php echo filter_url('order:asc');}" >创建时间正序</option>
  15. <option data-url="{php echo filter_url('order:desc');}" {if $_GPC['order'] == 'desc'} selected{/if}>创建时间倒序</option>
  16. </select>
  17. <select name="" id="" class="we7-margin-right">
  18. <option data-url="{php echo filter_url('type:all');}" {if $_GPC['type'] == 'all'} selected{/if}>到期筛选</option>
  19. <option data-url="{php echo filter_url('type:expire');}" {if $_GPC['type'] == 'expire'} selected{/if}>已到期</option>
  20. <option data-url="{php echo filter_url('type:unexpire');}" {if $_GPC['type'] == 'unexpire'} selected{/if}>未到期</option>
  21. </select>
  22. <form action="" class="search-form " method="get">
  23. <input type="hidden" name="c" value="account">
  24. <input type="hidden" name="a" value="manage">
  25. <div class="input-group" style="width: 400px;">
  26. <input type="text" name="keyword" value="{$_GPC['keyword']}" class="form-control" placeholder="搜索关键字"/>
  27. <span class="input-group-btn"><button class="btn btn-default"><i class="wi wi-search"></i></button></span>
  28. </div>
  29. </form>
  30. <a href="javascript:;" class="btn btn-default we7-padding-horizontal we7-margin-right" ng-click="showActionStatus = true">批量操作</a>
  31. <a href="javascript:;" data-toggle="modal" data-target="#owner-modal" class="btn btn-primary we7-padding-horizontal">添加平台</a>
  32. </div>
  33. <div class="search-box we7-margin-bottom action-box" ng-show="showActionStatus">
  34. <button href="javascript:;" ng-disabled="!checkNum" class="btn btn-default we7-padding-horizontal " ng-click="postAction('disabled')">停用</button>
  35. <form action="" class="search-form " method="get">
  36. </form>
  37. <a href="javascript:;" class="btn btn-default we7-padding-horizontal " ng-click="showActionStatus = false">退出批量操作</a>
  38. </div>
  39. </div>
  40. <!-- 列表数据 start -->
  41. <table class="table we7-table table-hover vertical-middle table-manage">
  42. <col width="100px" ng-if="showActionStatus">
  43. <col width="100px" />
  44. <col width="400px"/>
  45. <col width=""/>
  46. <col width=""/>
  47. <col width="260px" />
  48. <tr>
  49. <th class="we7-form" ng-if="showActionStatus">
  50. <input type="checkbox" we7-check-all="1" id="uid-all" ng-model="$parent.checkAllStatus" ng-change="checkAll()" class="">
  51. <label for="uid-all">已选{{checkNum}}个</label>
  52. </th>
  53. <th colspan="2" class="text-left">名称</th>
  54. <th>平台过期时间</th>
  55. <th>主管理员</th>
  56. <th class="text-right">操作</th>
  57. </tr>
  58. <tr class="color-gray" ng-repeat="list in lists" ng-show="list.current_user_role != 'clerk'">
  59. <td class="we7-form table-action-td" ng-if="showActionStatus" >
  60. <input type="checkbox" we7-check-all="1" id="{{'uid-' + list.acid}}" class="" ng-model="list['checked']" ng-change="checkItem(list['checked'])">
  61. <label for="{{'uid-' + list.acid}}">&nbsp;</label>
  62. </td>
  63. <td class="text-left td-link">
  64. <a href="javascript:;"><img ng-src="{{list.logo}}" class="img-responsive account-img icon"></a>
  65. </td>
  66. <td class="text-left">
  67. <p class="color-dark" ng-bind="list.name"></p>
  68. <div ng-if="list.type_sign == 'account'">
  69. <span class="color-gray" ng-if="list.level == 1">类型:普通订阅号</span>
  70. <span class="color-gray" ng-if="list.level == 2">类型:普通服务号</span>
  71. <span class="color-gray" ng-if="list.level == 3">类型:认证订阅号</span>
  72. <span class="color-gray" ng-if="list.level == 4" title="认证服务号/认证媒体/政府订阅号">类型:认证服务号</span>
  73. <span class="color-red" ng-if="list.isconnect == 0" ><i class="wi wi-error-sign"></i>未接入</span>
  74. <span class="color-green" ng-if="list.isconnect == 1"><i class="wi wi-right-sign"></i>已接入</span>
  75. </div>
  76. <div ng-if="list.type_sign != 'account'">
  77. <span class="color-gray">类型:{{ list.type_name }}</span>
  78. </div>
  79. </td>
  80. <td>
  81. <p ng-bind="list.end"></p>
  82. </td>
  83. <td><p ng-bind="list.owner_name"></p></td>
  84. <td class="vertical-middle table-manage-td">
  85. <div class="link-group">
  86. <a ng-href="{{links.switch}}uniacid={{list.uniacid}}&type={{list.type}}" ng-if="!list.support_version" class="">进入{{ list.type_name }}</a>
  87. <a ng-href="{{links.switch}}uniacid={{list.uniacid}}&version_id={{list.current_version.id}}&type={{list.type}}" ng-if="list.support_version" class="">进入{{ list.type_name }}</a>
  88. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}" ng-if="list.manage_premission">管理设置</a>
  89. </div>
  90. <div class="manage-option text-right" ng-if="list.manage_premission">
  91. <a href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}">基础信息</a>
  92. <a href="{{links.post}}&do=sms&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}" ng-if="list.type_sign == 'account'">短信信息</a>
  93. <a href="{{links.postUser}}&do=edit&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">使用者管理</a>
  94. <a href="{{links.post}}&do=modules_tpl&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">可用应用模板/模块</a>
  95. <a href="javascript:void(0);" ng-click="receiveAccount(links.del, [list.uniacid], '')" class="del">停用</a>
  96. </div>
  97. </td>
  98. </tr>
  99. </table>
  100. <!-- 列表数据 end -->
  101. <div class="text-right">
  102. {$pager}
  103. </div>
  104. <!-- 添加帐号弹窗 start -->
  105. <div class="modal fade modal-type" tabindex="-1" role="dialog" id="owner-modal">
  106. <div class="modal-dialog" role="document">
  107. <div class="modal-content">
  108. <div class="modal-header clearfix">
  109. 新建
  110. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  111. </div>
  112. <div class="modal-body">
  113. <div class="type-list">
  114. <a class="item" ng-href="{{item.createurl}}" ng-if="item.can_create" ng-repeat="item in createInfo">
  115. <i class="{{item.icon}}"></i>
  116. <div class="name">新建{{item.title}}</div>
  117. <div class="mark">去新建</div>
  118. </a>
  119. </div>
  120. </div>
  121. <div class="modal-footer">
  122. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <!-- 添加帐号弹窗 end -->
  128. </div>
  129. <script>
  130. $(function(){
  131. $('[data-toggle="tooltip"]').tooltip();
  132. });
  133. angular.module('accountApp').value('config', {
  134. lists: {php echo !empty($list) ? json_encode($list) : 'null'},
  135. links: {
  136. switch: "{php echo url('account/display/switch')}",
  137. getAccountDetailInfo: "{php echo url('account/manage/account_detailinfo')}",
  138. post: "{php echo url('account/post')}",
  139. postUser: "{php echo url('account/post-user')}",
  140. del: "{php echo url('account/manage/delete')}",
  141. accountCreateInfo: "{php echo url('account/manage/account_create_info')}",
  142. },
  143. });
  144. angular.bootstrap($('#js-system-account-display'), ['accountApp']);
  145. </script>
  146. {template 'common/footer'}