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.

197 lines
5.8 KiB
HTML

5 years ago
<extend name="Public/head-foot-new" />
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
<script type="text/javascript" src="__JS__/select2.min.js"></script>
<!--内容start-->
<div class="page-search normal_list query-register-search jssearch">
<div class="trunk-title">
<div class="location">
<div class="location-container">当前位置:<span>注册查询</span></div>
</div>
<img src="__IMG__/icon_zhuce.png">
<span class="title_main">注册查询</span>
</div>
<div class="trunk-content article rightcontainer">
<div class="trunk-search clearfix">
<form action="" method="post">
<div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询">
</div>
<div class="form-group normal_space fr">
<label class="form-title select-title">注册时间:</label>
<div class="select-time">
<input type="text" name="begtime" class="txt" id="sdate" value="{:I('begtime')}" placeholder="开始时间">
</div>
<label class="form-title select-title zhi_color">&nbsp;&nbsp;</label>
<div class="select-time">
<input type="text" name="endtime" class="txt" id="edate" value="{:I('endtime')}" placeholder="结束时间">
</div>
</div>
<div class="form-group normal_space fr">
<select id="promote_id" name="promote_id" class="select_gallery" style="width:215px;">
<option value="" selected="true">请选择推广员</option>
<volist name=":get_map_promote_list($uid)" id="vo">
<option value="{$vo.id}" <if condition="I('promote_id') eq $vo['id']"> selected="true" </if> > {$vo.account}</option>
</volist>
</select>
</div>
<div class="form-group fr">
<input type="text" name="username" class="user-input txt normal_txt" id="username" placeholder="请输入用户名" value="{:I('username')}">
</div>
</form>
</div>
</div>
<div class="page-list query-register-list">
<div class="trunk-content article">
<div class="trunk-list list_normal" style="min-height: 56vh;">
<table class="table normal_table">
<tr class="num1">
<td>ID</td>
<td>用户名</td>
<td>注册游戏</td>
<td>注册时间</td>
<td>推广员账号</td>
</tr>
<empty name="list_data">
<tr>
<td class="num2" colspan="6">
<p class="empty_p">
暂无数据
</p>
</td>
</tr>
<else/>
<volist name="list_data" id="data">
<tr class="num2">
<td>{$data.id}</td>
<td>{$data.account}</td>
<td title="{$data.fgame_name}">{:msubstr2($data['fgame_name'],0,10)}</td>
<td>{:date("Y-m-d H:i:s",$data['register_time'])}</td>
<td>{$data.promote_account}</td>
</tr>
</volist>
</empty>
</table>
<div class="import fr">
<span class="btn"><a href="javascript:;" url="{:U('Buydetail/exportReg',array('p'=>$_GET['p']))}" id="exportData">导出数据(excel格式)</a></span>
</div>
</div>
<div class="pagenation clearfix">{$_page}</div>
</div>
</div>
</div>
<!--内容end-->
</block>
<block name="script">
<script type="text/javascript" src="__JS__/jquery.datetimepicker.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/p_jquery.datetimepicker.css">
<script type="text/javascript">
$(document).ready(function() {
var promote_id = $("#promote_id option").length;
if(promote_id == 1) {
$("#promote_id option:last").remove();
$("#promote_id").append("<option value='' selected='true'>暂无推广员</option>");
}
$(".select_gallery").select2();
})
//回车自动提交
$('.rightcontainer').find('input').keyup(function(event) {
if(event.keyCode === 13) {
$("#search").click();
}
});
$('#sdate').datetimepicker({
lang: 'ch',
format: 'Y-m-d',
formatDate: 'Y-m-d',
scrollMonth: false,
scrollTime: false,
scrollInput: false,
timepicker: false
});
$('#edate').datetimepicker({
lang: 'ch',
format: 'Y-m-d',
formatDate: 'Y-m-d',
scrollMonth: false,
scrollTime: false,
scrollInput: false,
timepicker: false
});
function check() {
var sdate = $("#sdate").val();
var edate = $("#edate").val();
if(sdate > edate) {
// layer.msg('开始时间必须小于等于结束时间');return false;
return true;
} else {
return true;
}
};
//搜索功能
$("#search").click(function() {
if(!check()) {
return false;
}
var url = $(this).attr('url');
console.log(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;
});
//导出数据
$("#exportData").click(function() {
var url = $(this).attr('url');
console.log(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;
});
//退出登录
$('.loginout').click(function() {
$.ajax({
type: "POST",
url: "{:U('Index/logout')}",
success: function(res) {
if(res.status == 3) {
layer.msg('退出成功', {
icon: 1,
});
setTimeout(function() {
window.location.href = "{:U('Index/index')}";
}, 1500);
}
},
error: function() {
alert(333);
}
})
});
</script>
</block>