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

223 lines
8.5 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/select2.min.js"></script>
<style>
.select2-container--default .select2-selection--single {
color: #000;
resize: none;
border-width: 1px;
border-style: solid;
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
height:28px;border-radius:3px;font-size:12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height:35px;
line-height:28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height:26px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
</style>
<div class="cf main-place top_nav_list navtab_list">
<div class="fr">
<a <if condition="(I('type') eq 1) or (I('type') eq '') "> class="tabchose" </if> href="{:U('PromoteCoin/deduct_lists',array('type'=>1))}">玩家收回</a>
<a <if condition="I('type') eq 2"> class="tabchose" </if> href="{:U('PromoteCoin/deduct_lists',array('type'=>2))}">推广员收回</a>
</div>
<h3 class="page_title">平台币收回</h3>
<if condition="(I('type',1) eq 1) ">
<p class="description_text">说明:显示收回玩家平台币的记录列表</p>
<else/>
<p class="description_text">说明:显示收回推广员平台币的记录列表</p>
</if>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class=" " href="{:U('deduct',array('type'=>I('type')))}"><span class="button_icon button_icon1"></span>立即收回</a>
</div>
</empty>
</div>
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<if condition="I('type') eq 2">
<div class="input-list input-list-game search_label_rehab">
<select name="promote_id" class="select_gallery" style="width:120px;">
<option value="">推广员帐号</option>
<volist name=":get_promote_listOther()" id="vo">
<option value="{$vo.id}">{$vo.account}</option>
</volist>
</select>
</div>
<div class="input-list">
<select id="promote_type" name="promote_type" style="width:120px;">
<option value="">推广员等级</option>
<option value="1">一级推广员</option>
<option value="2">二级推广员</option>
</select>
</div>
<else/>
<div class="input-list input-list-game search_label_rehab">
<input type="text" value="{:I('account')}" placeholder="玩家账号" name="account">
<!-- <select name="user_id" class="select_gallery" style="width:150px;">
<option value="">请选择玩家</option>
<volist name=":get_user_list()" id="vo">
<option value="{$vo.id}">{$vo.account}</option>
</volist>
</select> -->
</div>
</if>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('deduct_lists',array('model'=>$model['name'],'type'=>I('type'),'row'=>I('row')),false)}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<!-- <th>
<input class="check-all" type="checkbox">
</th> -->
<if condition="I('type') eq 2">
<th>所属推广员</th>
<th>推广员等级</th>
<else/>
<th>玩家账号</th>
<th>收回类型</th>
</if>
<th>收回数量</th>
<th>收回时间</th>
<th>收回人员</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name ="list_data">
<tr>
<td colspan="7" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
<else/>
<volist name="list_data" id="data">
<tr>
<!-- <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids"
status="{$data['status']}"></td> -->
<if condition="I('type') eq 2">
<td>{:get_promote_account($data['promote_id'])}</td>
<td>{:get_info_status($data['promote_type'],20)}</td>
<else/>
<?php $puid = get_user_big_info($data['user_account'], true); ?>
<td><notempty name="puid">{$puid.account}{$data['user_account']}<else />{$data['user_account']}</notempty></td>
<td>平台币</td>
</if>
<td>{$data['num']}</td>
<td>{:set_show_time($data['create_time'])}</td>
<td>{:get_nickname($data['op_id'])}</td>
</tr>
</volist>
</empty>
<tr class="data_summary">
<td>汇总</td>
<td colspan="8">今日收回:{$sum.to_day|default=0}个 昨日收回:{$sum.yse_day|default=0}个 累计收回:{$sum.all_num}个</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="page">
<a class="sch-btn" href="{:U('Export/deduct_list',array_merge(['xlsname'=>'平台币订单_平台币收回'.(I('type',1)==2?'_推广员收回':'_玩家收回')],I('get.')))}">导出</a>
{$_page|default=''}
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="PromoteCoin/deduct_lists">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<script type="text/javascript">
Think.setValue("promote_id","{:I('promote_id')}");
Think.setValue("promote_type","{:I('promote_type')}");
Think.setValue("user_id","{:I('user_id')}");
Think.setValue("row","{:I('row',10)}");
$(".select_gallery").select2();
</script>
<script type="text/javascript">
highlight_subnav('{:U('PromoteCoin/deduct_lists')}');
if('{$Think.get.game_name}'!=''){
$('#select2-game_id-container').text('{$Think.get.game_name}');
}
$(function(){
//搜索功能
$("#search").click(function(){
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&"+$('.jssearch').find('select').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
query = query.replace(/^&/g,'');
if( url.indexOf('?')>0 ){
url += '&' + query;
}else{
url += '?' + query;
}
window.location.href = url;
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
$("#promote_type").select2({
tags: true,
placeholder: '推广员等级',
allowClear: false,
minimumResultsForSearch: Infinity, // 永久隐藏搜索框
});
})
</script>
</block>