test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

108 lines
4.8 KiB

{template 'common/header'}
<div id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
<div class="clearfix ">
<div class="search-box we7-margin-bottom" >
<select name="" id="" class="we7-margin-right">
<option data-url="{php echo filter_url('type:all');}" {if $_GPC['type'] == 'all'} selected{/if}>到期筛选</option>
<option data-url="{php echo filter_url('type:expire');}" {if $_GPC['type'] == 'expire'} selected{/if}>已到期</option>
<option data-url="{php echo filter_url('type:unexpire');}" {if $_GPC['type'] == 'unexpire'} selected{/if}>未到期</option>
</select>
<select name="" id="" class="we7-margin-right">
<option data-url="{php echo filter_url('order:desc');}">创建时间倒序</option>
<option data-url="{php echo filter_url('order:asc');}" {if $_GPC['order'] == 'asc'} selected{/if}>创建时间正序</option>
<option data-url="{php echo filter_url('order:endtime_asc');}" {if $_GPC['order'] == 'endtime_asc'} selected{/if}>到期时间正序</option>
<option data-url="{php echo filter_url('order:endtime_desc');}" {if $_GPC['order'] == 'endtime_desc'} selected{/if}>到期时间倒序</option>
</select>
<form action="" class="search-form " method="get">
<input type="hidden" name="c" value="account">
<input type="hidden" name="a" value="manage">
<div class="input-group" style="width: 400px;">
<input type="text" name="keyword" value="{$_GPC['keyword']}" class="form-control" placeholder="搜索关键字"/>
<span class="input-group-btn"><button class="btn btn-default"><i class="wi wi-search"></i></button></span>
</div>
</form>
<a href="./index.php?c=account&a=create&sign=account" class="btn btn-primary we7-padding-horizontal">添加平台</a>
</div>
</div>
<!-- 列表数据 start -->
<table class="table we7-table table-hover vertical-middle table-manage">
<col width="100px" >
<col width="100px" />
<col width="400px"/>
<col width=""/>
<col width=""/>
<col width="260px" />
<tr>
<th class="we7-form">
<input type="checkbox" we7-check-all="1" id="uid-all" ng-model="checkAllStatus" ng-change="checkAll()" class="">
<label for="uid-all"></label>
</th>
<th colspan="2" class="text-left">名称</th>
<th>平台过期时间</th>
<th>主管理员</th>
<th class="text-right">操作</th>
</tr>
<tr class="color-gray" ng-repeat="list in lists" ng-show="list.current_user_role != 'clerk'">
<td class="we7-form table-action-td" >
<input type="checkbox" we7-check-all="1" id="{{'uid-' + list.acid}}" class="" ng-model="list['checked']" ng-change="checkItem(list['checked'])">
<label for="{{'uid-' + list.acid}}">&nbsp;</label>
</td>
<td class="text-left td-link">
<a href="javascript:;"><img ng-src="{{list.logo}}" class="img-responsive account-img icon"></a>
</td>
<td class="text-left">
<span class="color-dark" ng-bind="list.name"></span>
</td>
<td>
<p ng-bind="list.end"></p>
</td>
<td><p ng-bind="list.owner_name"></p></td>
<td class="vertical-middle table-manage-td">
<div class="link-group">
<a ng-href="{{links.switch}}uniacid={{list.uniacid}}&type={{list.type}}" ng-if="!list.support_version" target="_blank">进入平台</a>
<a ng-href="{{links.post}}&uniacid={{list.uniacid}}&account_type={{list.type}}" ng-if="list.manage_premission">管理设置</a>
</div>
</td>
</tr>
<tr ng-if="lists | we7IsEmpty">
<td colspan="100" >
<div class="we7-empty-block">暂无数据</div>
</td>
</tr>
<tr style="height: 52px;"></tr>
</table>
<!-- 列表数据 end -->
<div class="we7-form" style="margin-left: 14px; margin-top: -30px;">
<input type="checkbox" we7-check-all="1" id="uid-all1" ng-model="checkAllStatus" ng-change="checkAll()" class="">
<label for="uid-all1">全选</label>
<span class="we7-margin-left">已选择{{checkNum}}个</span>
<button href="javascript:;" ng-disabled="!checkNum" class="btn btn-default we7-margin-left" ng-click="postAction('disabled')">删除</button>
<div id="pager" class="pull-right"></div>
</div>
</div>
<script>
$(function(){
$('[data-toggle="tooltip"]').tooltip();
});
angular.module('accountApp').value('config', {
searchParams: {
account_type: "{$_GPC['account_type']}",
order: "{$_GPC['order']}",
type: "{$_GPC['type']}",
keyword: "{$_GPC['keyword']}"
},
links: {
switch: "{php echo url('account/display/switch')}",
getAccountDetailInfo: "{php echo url('account/manage/account_detailinfo')}",
post: "{php echo url('account/post')}",
postUser: "{php echo url('account/post-user')}",
del: "{php echo url('account/manage/delete')}",
accountCreateInfo: "{php echo url('account/display/account_create_info')}",
getAccountList: "{php echo url('account/manage/account_list')}"
},
});
angular.bootstrap($('#js-system-account-display'), ['accountApp']);
</script>
{template 'common/footer'}