人人商城

manage-display.tpl.php 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <div class="we7-page-title"><?php echo $account->typeName?>管理</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->typeName?>列表</a></li>
  5. <?php 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))?>">公众号回收站</a></li>
  7. <?php } ?>
  8. </ul>
  9. <div class="clearfix we7-margin-bottom">
  10. <?php if(!$_W['isfounder'] && !empty($account_info['uniacid_limit']) || user_is_vice_founder()) { ?>
  11. <div class="alert alert-warning hidden">
  12. 温馨提示:
  13. <i class="fa fa-info-circle"></i>
  14. Hi,<span class="text-strong"><?php echo $_W['username'];?></span>,您所在的会员组: <span class="text-strong"><?php echo $account_info['group_name'];?></span>,<?php if(!user_is_vice_founder() && !empty($account_info['vice_group_name'])) { ?> <span class="text-strong"><?php echo $account_info['vice_group_name'];?>,</span><?php } ?>
  15. 账号有效期限:<span class="text-strong"><?php echo date('Y-m-d', $_W['user']['starttime'])?> ~~ <?php if(empty($_W['user']['endtime'])) { ?>无限制<?php } else { ?><?php echo date('Y-m-d', $_W['user']['endtime'])?><?php } ?></span>,
  16. 可创建 <span class="text-strong"><?php echo $account_info['maxaccount'];?> </span>个公众号,已创建<span class="text-strong"> <?php echo $account_info['uniacid_num'];?> </span>个,还可创建 <span class="text-strong"><?php echo $account_info['uniacid_limit'];?> </span>个公众号。
  17. </div>
  18. <?php } ?>
  19. <form action="" class="form-inline pull-left" method="get">
  20. <input type="hidden" name="c" value="account">
  21. <input type="hidden" name="a" value="manage">
  22. <input type="hidden" name="account_type" value="<?php echo ACCOUNT_TYPE;?>">
  23. <div class="input-group form-group" style="width: 400px;">
  24. <input type="text" name="keyword" value="<?php echo $_GPC['keyword'];?>" class="form-control" placeholder="搜索关键字"/>
  25. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  26. </div>
  27. </form>
  28. <?php if(!empty($account_info['uniacid_limit']) && (!empty($account_info['founder_uniacid_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()) { ?>
  29. <div class="pull-right">
  30. <a href="<?php echo url('account/post-step');?>" class="btn btn-primary we7-padding-horizontal">添加公众号</a>
  31. </div>
  32. <?php } ?>
  33. </div>
  34. <table class="table we7-table table-hover vertical-middle table-manage" id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
  35. <col width="120px" />
  36. <col/>
  37. <col width="200px"/>
  38. <col width="100px"/>
  39. <col width="260px" />
  40. <tr>
  41. <th colspan="5" class="text-left filter">
  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('order:asc');?>" class="active">创建时间正序</a></li>
  49. <li><a href="<?php echo filter_url('order:desc');?>">创建时间倒序</a></li>
  50. </ul>
  51. </div>
  52. <div class="dropdown dropdown-toggle we7-dropdown">
  53. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  54. 公众号筛选
  55. <span class="caret"></span>
  56. </a>
  57. <ul class="dropdown-menu" aria-labelledby="dLabel">
  58. <li><a href="<?php echo filter_url('type:all');?>" class="active">全部公众号</a></li>
  59. <li><a href="<?php echo filter_url('type:expire');?>" class="active">公众号已到期</a></li>
  60. <li><a href="<?php echo filter_url('type:noconnect');?>" class="active">未接入公众号</a></li>
  61. </ul>
  62. </div>
  63. </th>
  64. </tr>
  65. <tr>
  66. <th colspan="2" class="text-left">帐号</th>
  67. <th>平台过期时间</th>
  68. <th>短信数(条)</th>
  69. <th class="text-right">操作</th>
  70. </tr>
  71. <tr class="color-gray" ng-repeat="list in lists">
  72. <td class="text-left td-link">
  73. <?php if($role_type) { ?>
  74. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}"></a>
  75. <?php } else { ?>
  76. <a href="javascript:;">
  77. <?php } ?>
  78. <img ng-src="{{list.logo}}" class="img-responsive icon">
  79. </a>
  80. </td>
  81. <td class="text-left">
  82. <p class="color-dark" ng-bind="list.name"></p>
  83. <span class="color-gray" ng-if="list.level == 1">类型:普通订阅号</span>
  84. <span class="color-gray" ng-if="list.level == 2">类型:普通服务号</span>
  85. <span class="color-gray" ng-if="list.level == 3">类型:认证订阅号</span>
  86. <span class="color-gray" ng-if="list.level == 4" title="认证服务号/认证媒体/政府订阅号">类型:认证服务号</span>
  87. <span class="color-red" ng-if="list.isconnect == 0" data-toggle="tooltip" data-placement="right" title="公众号接入状态显示“未接入”解决方案:进入微信公众平台,依次选择: 开发者中心 -> 修改配置,然后将对应公众号在平台的url和token复制到微信公众平台对应的选项,公众平台会自动进行检测"><i class="wi wi-error-sign"></i>未接入</span>
  88. <span class="color-green" ng-if="list.isconnect == 1"><i class="wi wi-right-sign"></i>已接入</span>
  89. </td>
  90. <td>
  91. <p ng-bind="list.end"></p>
  92. </td>
  93. <td><p ng-bind="list.sms"></p></td>
  94. <td class="vertical-middle table-manage-td">
  95. <div class="link-group">
  96. <a ng-href="{{links.switch}}uniacid={{list.uniacid}}&type={{list.type}}">进入公众号</a>
  97. <?php if($role_type) { ?>
  98. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}" ng-show="list.role == 'manager' || list.role == 'owner' || list.role == 'founder'|| list.role == 'vice_founder'">管理设置</a>
  99. <?php } ?>
  100. </div>
  101. <?php if($role_type) { ?>
  102. <div class="manage-option text-right">
  103. <a href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">基础信息</a>
  104. <a href="{{links.post}}&do=sms&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">短信信息</a>
  105. <a href="{{links.postUser}}&do=edit&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">使用者管理</a>
  106. <a href="{{links.post}}&do=modules_tpl&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">可用应用模板/模块</a>
  107. <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>
  108. </div>
  109. <?php } ?>
  110. </td>
  111. </tr>
  112. </table>
  113. <div class="text-right">
  114. <?php echo $pager;?>
  115. </div>
  116. <script>
  117. $(function(){
  118. $('[data-toggle="tooltip"]').tooltip();
  119. });
  120. switch_url = "<?php echo url('account/display/switch')?>";
  121. angular.module('accountApp').value('config', {
  122. lists: <?php echo !empty($list) ? json_encode($list) : 'null'?>,
  123. links: {
  124. switch: switch_url,
  125. post: "<?php echo url('account/post')?>",
  126. postUser: "<?php echo url('account/post-user')?>",
  127. del: "<?php echo url('account/manage/delete', array('account_type' => ACCOUNT_TYPE))?>",
  128. }
  129. });
  130. angular.bootstrap($('#js-system-account-display'), ['accountApp']);
  131. </script>
  132. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>