|
|
|
@ -11,8 +11,10 @@
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css"/>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/jquery.mousewheel.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
@ -26,6 +28,41 @@
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
|
|
<div class="input-list search-title-box">
|
|
|
|
|
<label>搜索:</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<input type="text" name="order_id" class="" placeholder="请输入支付订单" value="{:I('order_id')}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<input type="text" name="account" class="" placeholder="请输入玩家账号" value="{:I('account')}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
|
<select name="promote_level" style="color:#444" class="select_gallery" id="promote_level">
|
|
|
|
|
<option value="">请选择推广员等级</option>
|
|
|
|
|
<option value="1" <?php if ($_GET['promote_level'] == 1):?>selected<?php endif;?>>会长</option>
|
|
|
|
|
<option value="2" <?php if ($_GET['promote_level'] == 2):?>selected<?php endif;?>>部门长</option>
|
|
|
|
|
<option value="3" <?php if ($_GET['promote_level'] == 3):?>selected<?php endif;?>>组长</option>
|
|
|
|
|
<option value="4" <?php if ($_GET['promote_level'] == 4):?>selected<?php endif;?>>组员</option>
|
|
|
|
|
</select>
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
|
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
|
|
|
|
|
<option value="">请选择推广员</option>
|
|
|
|
|
<option value="0" <?php if ($_POST['promote_id'] == 0):?>selected<?php endif;?>>官方渠道</option>
|
|
|
|
|
<option value="UC" <?php if ($_POST['promote_id'] == 'UC'):?>selected<?php endif;?>>UC用户</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" name="" value="" class="sortBy">
|
|
|
|
|
|
|
|
|
|
<div class="input-list search_item">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search"
|
|
|
|
|
url="{:U('SuperStatistical/superDetail','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
|
<div class="data_list box_mt">
|
|
|
|
|
<div class="">
|
|
|
|
@ -74,4 +111,54 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$("#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;
|
|
|
|
|
}
|
|
|
|
|
var start = $("#time_start").val();
|
|
|
|
|
var end = $("#time_end").val();
|
|
|
|
|
if(start !='' && end != ''){
|
|
|
|
|
if (Date.parse(start) > Date.parse(end)){
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
});
|
|
|
|
|
var promote_id = "{:I('promote_id')}";
|
|
|
|
|
$("#promote_level").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getPromotersByLevel')}",
|
|
|
|
|
type:"get",
|
|
|
|
|
data:{level:$("#promote_level option:selected").val()},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(response){
|
|
|
|
|
str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option><option value="UC"'+(promote_id && 'UC' == promote_id?'selected':'')+'>UC渠道</option>';
|
|
|
|
|
// $.each(response.data, function(index, item){
|
|
|
|
|
// console.log(item.id);
|
|
|
|
|
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>';
|
|
|
|
|
// });
|
|
|
|
|
data = response.data;
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#promote_id").empty();
|
|
|
|
|
$("#promote_id").append(str);
|
|
|
|
|
$("#promote_id").select2();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
$("#promote_level").change();
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</html>
|