include ("qyadmin/conn.php");
include ("checklogin.php");
$_SESSION['session_time'] = time();
$week = date('w',strtotime('-1 day'));
$cf_key = 'cfbl'.$week;
$cfbl = $config[$cf_key];
$zongshu = $huiyuan['zz_jinbi'] + $huiyuan['ck_jinbi'];
if($zongshu <= 0){
$zongshu = 0;
}
$all_shouyi = $huiyuan['wy_shouyi'] + $huiyuan['cs_shouyi'];
$total_lu = $huiyuan['xfjb'];
if($total_lu == 0){
$lu_xishu = 0;
}else{
$lu_xishu = round($all_shouyi/$total_lu,2);
}
$ckeck = lg_sql("select * from pc_jjbili", 2);
$time = time();
while ($rs = mysql_fetch_array($ckeck)) {
$id = $rs['id'];
if($time >= $rs['clean_time']){
lg_sql("update `pc_jjbili` set clean = 0,clean_time = '' where id = '$id'", 2);
}
}
//双方没确认24小时后自动返回卖家
$csjl = lg_sql("select * from pc_csjl where zhuangtai = 0", 2);
$time = time();
while ($rs = mysql_fetch_array($csjl)) {
$id = $rs['id'];
$tui_id = $rs['huiyuan_id'];
$cssj = strtotime($rs['sj']);
$cha = $time - $cssj;
$sl = $rs['sl'] + $rs['sxf'];
if($cha >= 24*60*60){
lg_sql("update `pc_csjl` set zhuangtai = 3 where id = '$id'", 2);
lg_sql("update `pc_huiyuan` set ck_jinbi = ck_jinbi + $sl where id = '$tui_id'", 2);
}
}
$rsjqr = lg_sql("select * from pc_jjbili where huiyuan_id = '$huiyuan_id'", 1);
?>
lg_index(0);
?>
function doxgmm() {
$(".shadow_changemima").css("display","block");
}
id="audio1" loop="loop" >
![](img/horn.png)
= $sygonggao['nr'] ?>
$url = $_SERVER["REQUEST_URI"];
$indexarr = explode("echart", $lock_url);
?>
// $goods_sql = "select * from pc_goods order by id desc";
// $goods_rss = lg_sql_list ( $goods_sql, 10 );
// $mysql = $goods_rss [0];
// while ( $rs = mysql_fetch_array ( $mysql ) ) {
$goods_sql = lg_sql("select * from pc_goods order by id desc", 2);
while ($rs_goods = mysql_fetch_array($goods_sql)) {
?>
= $rs_goods['title']?>
¥ = $rs_goods['price'] ?>
![bt_buy.png](img/bt_buy.png)
$order_sql = lg_sql("select * from pc_order where huiyuan_id='$huiyuan_id' order by id desc", 2);
while ($rs_order = mysql_fetch_array($order_sql)) {
if($rs_order['status'] == 1){
$status = '待发货';
}elseif($rs_order['status'] == 2){
$status = '待收货';
}elseif($rs_order['status'] == 3){
$status = '交易完成';
}elseif($rs_order['status'] == 4){
$status = '取消';
}else{
$status = '代付款';
}
?>
购买时间: <?php echo date('Y-m-d H:i:s',$rs_order['time']);?>
= $rs_order['goods_name']?>
X = $rs_order['goods_num']?>
订单状态:= $status?>
订单编号:= $rs_order['order_id']?>
购买数量
姓名:
手机号:
地址:
备注:
手续费:111
支付总额:0
$sql_gonggao = lg_sql("select * from pc_gonggao order by id desc", 2);
while ($rs_gonggao = mysql_fetch_array($sql_gonggao)) {
?>
= substr($rs_gonggao['sj'], 0, 10) ?>
= $rs_gonggao['ms'] ?>
}
?>
$sql = "select * from pc_gonggao order by id desc";
$gg_rss = lg_sql_list ( $sql, 10 );
$mysql = $gg_rss [0];
while ( $gg_rs = mysql_fetch_array ( $mysql ) ) {
?>
= date('Y-m-d',strtotime($gg_rs['sj']))?>
= $gg_rs['nr']?>
}
?>
//游戏规则循环开始
//$sql = "select * from pc_rule order by id desc";
//$rss = lg_sql_list($sql, 10);
//$mysql = $rss [0];
$mysql = lg_sql("select * from pc_rule order by id asc limit 0,20",2);
$i = 1;
while ($rs = mysql_fetch_array($mysql)) {
$ss = explode(':', $rs['content']);
$title = $ss[0] . ':';
unset($ss[0]);
$body = implode(':', $ss);
?>
$i++;
}
?>
function docz(){
var r=confirm("确定重置矿场么?")
if (r==true){
$.ajax({
type: 'POST',
url: "ajaxclear.php",
// dataType: "json",
success: function(data) {
alert(data)
location.reload()
// $(".sp_con").html(data);
},
});
}else{
return false;
}
}
$(function () {
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('echart'));
option = {
title: {
text: '堆叠区域图'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
type: 'category',
boundaryGap: false,
data: [<?php echo $date_time;?>],
splitLine: {
show: true,
lineStyle: {
// 虚线
type: 'dashed'
}
}
}
],
yAxis: {
axisLine: {
show: false
},
axisTick: {
show: false
},
axisLabel: {
show: false
},
splitLine: {
show: false
}
},
label: {
normal: {
show: true,
position: 'top'
}
},
textStyle: {
fontSize: 10
// 主标题文字颜色
},
series: [
{
name: '邮件营销',
type: 'line',
itemStyle: {
normal: {
lineStyle: {
color: '#ff795d'
//线条颜色
}
}
},
// 是否堆叠
stack: '总量',
// 区域颜色
areaStyle: {normal: {color: '#fcedd6'}},
data: [<?php echo $sj_number;?>]
},
{
name: '联盟广告',
type: 'line',
itemStyle: {
normal: {
lineStyle: {
color: '#8bcdf0'
//线条颜色
}
}
},
data: [<?php echo $gg_number;?>]
},
]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
var browser = {
versions: function () {
var u = navigator.userAgent, app = navigator.appVersion;
return {//移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1, //IE内核
presto: u.indexOf('Presto') > -1, //opera内核
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
iPad: u.indexOf('iPad') > -1, //是否iPad
webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
//document.writeln("语言版本: "+browser.language);
//document.writeln(" 是否为移动终端: "+browser.versions.mobile);
//document.writeln(" ios终端: "+browser.versions.ios);
//document.writeln(" android终端: "+browser.versions.android);
//document.writeln(" 是否为iPhone: "+browser.versions.iPhone);
//document.writeln(" 是否iPad: "+browser.versions.iPad);
//document.writeln(navigator.userAgent);
var pagewidth = $(".echart").width();
var pageheight = $(".echart").height();
if (browser.versions.mobile) {
//window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", hengshuping, false);
$("#echart").height(pageheight);
$("#echart").width(pagewidth);
} else {
$("#echart").height("500px");
$("#echart").width("700px");
}
/*
*
*/
})
window.addEventListener("pause", function(event) {
document.getElementById('audio1').pause()
});
window.addEventListener("play", function(event) {
document.getElementById('audio1').play()
});
function goumai(id){
$.ajax({
url:'ajax_order_goods.php',
type:'post',
data:{gid:id},
dateType:'json',
success:function(data){
$("#order_goods").empty();
$("#order_goods").append(data.data);
$(".orderMask").show();
},
error:function(){
alert("网络错误");
return false;
}
})
}
function buy(){
var goods_id = $('#goods_id').val();
var goods_num = $('#goods_num').text();
var name = $('#name').val();
var phone = $('#phone').val();
var address = $('#address').val();
var note = $('#note').val();
$.ajax({
url:'ajax_buy_goods.php',
type:'post',
data:{goods_id:goods_id,goods_num:goods_num,name:name,phone:phone,address:address,note:note},
dateType:'json',
success:function(data){
if(data.data.code == 1){
alert(data.data.msg);
$(".orderMask").hide();
}else{
alert(data.data.msg);
}
},
error:function(){
alert("网络错误");
return false;
}
})
}
一键复制
编辑
Web IDE
原始数据
按行查看
历史