manage-display-aliapp.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {template 'common/header'}
  2. <div class="we7-page-title">{php echo ACCOUNT_TYPE_NAME}管理</div>
  3. <ul class="we7-page-tab">
  4. <li class="active"><a href="{php echo url ('account/manage', array('account_type' => ACCOUNT_TYPE))}">{php echo ACCOUNT_TYPE_NAME}列表</a></li>
  5. {if $_W['role'] == ACCOUNT_MANAGE_NAME_OWNER || $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER}
  6. <li><a href="{php echo url ('account/recycle', array('account_type' => ACCOUNT_TYPE))}">{php echo ACCOUNT_TYPE_NAME}回收站</a></li>
  7. {/if}
  8. </ul>
  9. <div class="clearfix we7-margin-bottom">
  10. <form action="" class="form-inline pull-left" method="get">
  11. <input type="hidden" name="c" value="account">
  12. <input type="hidden" name="a" value="manage">
  13. <input type="hidden" name="account_type" value="{php echo ACCOUNT_TYPE}">
  14. <div class="input-group form-group" style="width: 400px;">
  15. <input type="text" name="keyword" value="{$_GPC['keyword']}" class="form-control" placeholder="搜索关键字"/>
  16. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  17. </div>
  18. </form>
  19. {if !empty($account_info['wxapp_limit']) && (!empty($account_info['founder_wxapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  20. <div class="pull-right">
  21. <a href="{php echo url('miniapp/post', array('type' => ACCOUNT_TYPE_ALIAPP_NORMAL))}" class="btn btn-primary we7-padding-horizontal">添加支付宝小程序</a>
  22. </div>
  23. {/if}
  24. </div>
  25. <table class="table we7-table table-hover vertical-middle table-manage" id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
  26. <col width="120px" />
  27. <col />
  28. <col width="208px" />
  29. <col width="245px" />
  30. <tr>
  31. <th colspan="5" class="text-left filter">
  32. <div class="dropdown dropdown-toggle we7-dropdown">
  33. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  34. 时间排序
  35. <span class="caret"></span>
  36. </a>
  37. <ul class="dropdown-menu" aria-labelledby="dLabel">
  38. <li><a href="{php echo filter_url('order:asc');}" class="active">创建时间正序</a></li>
  39. <li><a href="{php echo filter_url('order:desc');}">创建时间倒序</a></li>
  40. </ul>
  41. </div>
  42. <div class="dropdown dropdown-toggle we7-dropdown">
  43. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  44. 到期筛选
  45. <span class="caret"></span>
  46. </a>
  47. <ul class="dropdown-menu" aria-labelledby="dLabel">
  48. <li><a href="{php echo filter_url('type:all');}" class="active">全部{php echo ACCOUNT_TYPE_NAME}</a></li>
  49. <li><a href="{php echo filter_url('type:expire');}" class="active">{php echo ACCOUNT_TYPE_NAME}已到期</a></li>
  50. </ul>
  51. </div>
  52. </th>
  53. </tr>
  54. <tr>
  55. <th colspan="2" class="text-left">帐号</th>
  56. <th>平台过期时间</th>
  57. <th class="text-right">操作</th>
  58. </tr>
  59. <tr class="color-gray" ng-repeat="list in lists">
  60. <td class="text-left td-link">
  61. {if $role_type}
  62. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}"></a>
  63. {else}
  64. <a href="javascript:;">
  65. {/if}
  66. <img ng-src="{{list.logo}}" class="img-responsive icon">
  67. </a>
  68. </td>
  69. <td class="text-left">
  70. <p class="color-dark" ng-bind="list.name"></p>
  71. </td>
  72. <td>
  73. <p ng-bind="list.end"></p>
  74. </td>
  75. <td class="vertical-middle vertical-middle table-manage-td">
  76. <div class="link-group">
  77. <a ng-href="{{links.switch}}uniacid={{list.uniacid}}&version_id={{list.current_version.id}}&type={{list.type}}">进入支付宝小程序</a>
  78. {if $role_type}
  79. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'manager' || list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">管理设置</a>
  80. {/if}
  81. </div>
  82. {if $role_type}
  83. <div class="manage-option text-right">
  84. <a href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">基础信息</a>
  85. <a href="{{links.postUser}}&do=edit&uniacid={{list.uniacid}}&acid={{list.acid}}">使用者管理</a>
  86. <a href="{{links.postVersion}}&do=display&uniacid={{list.uniacid}}&acid={{list.acid}}">版本管理</a>
  87. <a href="{{links.post}}&do=modules_tpl&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">可用应用模板/模块</a>
  88. {if $_W['role'] != ACCOUNT_MANAGE_NAME_MANAGER}
  89. <a ng-href="{{links.del}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'" onclick="if(!confirm('确认放入回收站吗?')) return false;" class="del">停用</a>
  90. {/if}
  91. </div>
  92. {/if}
  93. </td>
  94. </tr>
  95. </table>
  96. <div class="text-right">
  97. {$pager}
  98. </div>
  99. <script>
  100. $(function(){
  101. $('[data-toggle="tooltip"]').tooltip();
  102. });
  103. switch_url = "{php echo url('account/display/switch')}";
  104. angular.module('accountApp').value('config', {
  105. lists: {php echo !empty($list) ? json_encode($list) : 'null'},
  106. links: {
  107. switch: switch_url,
  108. post: "{php echo url('account/post', array('account_type' => ACCOUNT_TYPE))}",
  109. postUser: "{php echo url('account/post-user', array('account_type' => ACCOUNT_TYPE))}",
  110. postVersion: "{php echo url('miniapp/manage', array('account_type' => ACCOUNT_TYPE))}",
  111. del: "{php echo url('account/manage/delete', array('account_type' => ACCOUNT_TYPE))}",
  112. }
  113. });
  114. angular.bootstrap($('#js-system-account-display'), ['accountApp']);
  115. </script>
  116. {template 'common/footer'}