人人商城

manage-display-webapp.tpl.php 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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">PC管理</div>
  3. <ul class="we7-page-tab">
  4. <li class="active"><a href="<?php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_WEBAPP_NORMAL))?>">PC列表</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_WEBAPP_NORMAL))?>">PC回收站</a></li>
  7. <?php } ?>
  8. </ul>
  9. <div class="clearfix we7-margin-bottom">
  10. <?php if(!$_W['isfounder'] && !empty($account_info['webapp_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['maxwebapp'];?> </span>个PC,已创建<span class="text-strong"> <?php echo $account_info['webapp_num'];?> </span>个,还可创建 <span class="text-strong"><?php echo $account_info['webapp_limit'];?> </span>个PC。
  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. <div class="input-group form-group" style="width: 400px;">
  23. <input type="text" name="keyword" value="<?php echo $_GPC['keyword'];?>" class="form-control" placeholder="搜索关键字"/>
  24. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  25. </div>
  26. </form>
  27. <?php if(!empty($account_info['webapp_limit']) && (!empty($account_info['founder_webapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()) { ?>
  28. <div class="pull-right">
  29. <a href="<?php echo url('webapp/manage/create_display');?>" class="btn btn-primary we7-padding-horizontal">添加PC</a>
  30. </div>
  31. <?php } ?>
  32. </div>
  33. <table class="table we7-table table-hover vertical-middle table-manage" id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
  34. <col width="120px" />
  35. <col/>
  36. <col width="200px"/>
  37. <col width="100px"/>
  38. <col width="260px" />
  39. <tr>
  40. <th colspan="5" class="text-left filter">
  41. <div class="dropdown dropdown-toggle we7-dropdown">
  42. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  43. 时间排序
  44. <span class="caret"></span>
  45. </a>
  46. <ul class="dropdown-menu" aria-labelledby="dLabel">
  47. <li><a href="<?php echo filter_url('order:asc');?>" class="active">创建时间正序</a></li>
  48. <li><a href="<?php echo filter_url('order:desc');?>">创建时间倒序</a></li>
  49. </ul>
  50. </div>
  51. <div class="dropdown dropdown-toggle we7-dropdown">
  52. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  53. PC筛选
  54. <span class="caret"></span>
  55. </a>
  56. <ul class="dropdown-menu" aria-labelledby="dLabel">
  57. <li><a href="<?php echo filter_url('type:all');?>" class="active">全部</a></li>
  58. <li><a href="<?php echo filter_url('type:expire');?>" class="active">已到期</a></li>
  59. </ul>
  60. </div>
  61. </th>
  62. </tr>
  63. <tr>
  64. <th colspan="2" class="text-left">帐号</th>
  65. <th>平台过期时间</th>
  66. <th>短信数(条)</th>
  67. <th class="text-right">操作</th>
  68. </tr>
  69. <tr class="color-gray" ng-repeat="list in lists">
  70. <td class="text-left td-link">
  71. <?php if($role_type) { ?>
  72. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}"></a>
  73. <?php } else { ?>
  74. <a href="javascript:;">
  75. <?php } ?>
  76. <img ng-src="{{list.logo}}" class="img-responsive icon">
  77. </a>
  78. </td>
  79. <td class="text-left">
  80. <p class="color-dark" ng-bind="list.name"></p>
  81. </td>
  82. <td>
  83. <p ng-bind="list.end"></p>
  84. </td>
  85. <td><p ng-bind="list.sms"></p></td>
  86. <td class="vertical-middle table-manage-td">
  87. <div class="link-group">
  88. <a ng-href="{{links.switch}}&uniacid={{list.uniacid}}">进入PC</a>
  89. <?php if($role_type) { ?>
  90. <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>
  91. <?php } ?>
  92. </div>
  93. <?php if($role_type) { ?>
  94. <div class="manage-option text-right">
  95. <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>
  96. <!--<a href="{{links.post}}&do=sms&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">短信信息</a>-->
  97. <a href="{{links.postUser}}&do=edit&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">使用者管理</a>
  98. <a href="{{links.post}}&do=modules_tpl&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">可用应用模板/模块</a>
  99. <a ng-href="{{links.del}}&acid={{list.acid}}&uniacid={{list.uniacid}}&account_type={{list.type}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'" onclick="if(!confirm('确认放入回收站吗?')) return false;" class="del">停用</a>
  100. </div>
  101. <?php } ?>
  102. </td>
  103. </tr>
  104. </table>
  105. <div class="text-right">
  106. <?php echo $pager;?>
  107. </div>
  108. <script>
  109. $(function(){
  110. $('[data-toggle="tooltip"]').tooltip();
  111. });
  112. switch_url = "<?php echo url('account/display/switch', array('type' => ACCOUNT_TYPE_WEBAPP_NORMAL))?>";
  113. angular.module('accountApp').value('config', {
  114. lists: <?php echo !empty($list) ? json_encode($list) : 'null'?>,
  115. links: {
  116. switch: switch_url,
  117. post: "<?php echo url('account/post')?>",
  118. postUser: "<?php echo url('account/post-user')?>",
  119. del: "<?php echo url('account/manage/delete')?>",
  120. }
  121. });
  122. angular.bootstrap($('#js-system-account-display'), ['accountApp']);
  123. </script>
  124. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>