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.

208 lines
8.1 KiB
HTML

2 years ago
<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>
<!-- 标题栏 -->
<div class="main-place">
<span class="main-placetitle">位置</span>
<ul class="main-placeul">
<li><a href="{:U('Promote/lists')}">渠道</a></li>
<li><a href="{:U('Promote/ch_reg_list')}">数据管理</a></li>
<li><a href="#">代充额度</a></li>
</ul>
<div class="question">
<i class="question_mark">?</i>
<ul class="question_content">
<li class="question_title">功能以及数据相关说明</li>
<li class="question_list">
<span class="">代充额度</span>
<span class="">设置渠道代充额度的上限功能</span>
</li>
</ul>
</div>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class="" href="{:U('pay_limit_add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
<a class="ajax-post" target-form="ids" url="{:U('pay_limit_del?model='.$model['id'])}"><span class="button_icon button_icon2"></span>删除</a>
</div>
</empty>
</div>
<!-- 高级搜索 -->
<div class="jssearch fr cf search_list">
<div class="i_list" id="" >
</div>
<div class="input-list input-list-user search_label_rehab">
<label>推广员账号:</label>
<select id="user_id" name="user_id" class="select_gallery" >
<option value="">请选择推广员账号</option>
<volist name=":get_promote_list()" id="vo">
<option user-id="{$vo.account}" value="{$vo.account}">{$vo.account}</option>
</volist>
<input type="hidden" id="user_account" name="account" value=""></input>
</select>
</div>
<input type="hidden" name="" value="" class="sortBy">
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Promote/pay_limit','model='.$model['name'],false)}">搜索</a>
</div>
<div class="input-list">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>6,),I('get.')))}">导出</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>
<input class="check-all" type="checkbox">
</th>
<th>推广员账号</th>
<th>游戏名称</th>
<th ><a class="paixu" data-order='pay_limit'><if condition="$userarpu_order eq 4 and $userarpu_order_type eq 'pay_limit'">代充额度▲<elseif condition="$userarpu_order eq 3 and $userarpu_order_type eq 'pay_limit'"/>代充额度▼<else />代充额度<img src="__IMG__/up-down.png" width="13px"></if></a></th>
<th>更新时间</th>
<th>操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<volist name="list_data" id="data">
<tr>
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td>{$data.account}</td>
<td><if condition="$data.pay_limit_game eq 0 "><span style="color: #46A3FF">全部游戏</span><else/>{:get_game_name($data['pay_limit_game'])}</if></td>
<td>{$data.pay_limit}</td>
<td>{:set_show_time($data['set_pay_time'])}</td>
<td>
<a href="{:U('pay_limit_edit',array('ids'=>$data['id']))}" class="">编辑</a>
<a href="{:U('pay_limit_del',array('ids'=>$data['id']))}" class="ajax-get ">删除</a>
</td>
</tr>
</volist>
</tbody>
</table>
</div>
</div>
<div class="page">
{$_page|default=''}
</div>
</block>
<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
$(".select_gallery").select2();
$(".input-list-user").click(function(){
$('#select2-user_id-container').text('请选择推广员账号');
$("#user_account").val('');
});
$("#user_id").change(function() {
$("#user_account").val($("#user_id option:selected").val());
});
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Promote/pay_limit')}');
if('{$Think.get.account}'!=''){
$('#select2-user_id-container').text('{$Think.get.account}');
}
$(function(){
//搜索功能
$("#search").click(function(){
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
query = query.replace(/^&/g,'');
if( url.indexOf('?')>0 ){
url += '&' + query;
}else{
url += '?' + query;
}
window.location.href = url;
});
$(".paixu").click(function(){
var that=$(this);
$data_order=that.attr('data-order');
$order_type='{$userarpu_order}';
if($order_type==''||$order_type=='4'){
$(".sortBy").attr('name','data_order');
val='3,'+$data_order;
$(".sortBy").attr('value',val);
$("#search").click();
}else if($order_type=='3'){
$(".sortBy").attr('name','data_order');
val='4,'+$data_order;
$(".sortBy").attr('value',val);
$("#search").click();
}
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true
});
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
//下拉内容框
$(".drop-down2").on('click',function(event) {
var navlist = $(this).find('.i_list_li');
if (navlist.hasClass('hidden')) {
navlist.removeClass('hidden');
$('#i_list_id').focus().val('');
} else {
navlist.addClass('hidden');
}
$(document).one("click", function(){
navlist.addClass('hidden');
});
event.stopPropagation();
});
$('#i_list_id').on('keyup',function(event) {
var val = $.trim($(this).val()).toLowerCase();
$('#i_list_idh').val(val);
});
$("#i_list_li").find("a").each(function(){
$(this).click(function(){
var text = $.trim($(this).text()).toLowerCase();
$("#i_list_id").val(text);
$('#i_list_idh').val(text);
})
});
})
</script>
</block>