forked from xserve98/xmweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myhead.php
345 lines (323 loc) · 12.9 KB
/
myhead.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<?php
session_start();
include_once("include/mysqli.php");
include_once("include/config.php");
include_once("common/function.php");
include_once("class/user.php");
$_SESSION["uid"] = intval($_SESSION["uid"]);
$uid = $_SESSION["uid"];
$name='guest_'.rand(100000,999999);
?>
<?php
$sql = "select msg from k_notice where end_time>now() and is_show=1 order by `sort` desc,nid desc";
$query = $mysqli->query($sql);
while ($rs = $query->fetch_array()) {
$msg = $rs['msg'];
$msg2 = '<span class="listpart"><a href="javascript:void(0);" class="ShowNewsMore" article_id="">'.$rs['msg'].'</a></span><span class="time">'.$rs["add_time"].'</span> ';
}
?>
<?php
$sql = "select title from k_notice where end_time>now() and is_show=1 order by `sort` desc,nid desc";
$query = $mysqli->query($sql);
while ($rs = $query->fetch_array()) {
$title = $rs['title'];
$title1 = '<li id="notice_infoa_30"><span class="listpart"><a href="javascript:void(0);" class="ShowNews" notice_id="30">'.$rs['title'].'</a></span><span class="time"><font color="red"></font></span>';
}
?>
<?php
$sql = "select msg from k_notice where end_time>now() and is_show=1 order by `sort` desc,nid desc";
$query = $mysqli->query($sql);
while ($rs = $query->fetch_array()) {
$msg = $rs['msg'];
$msg22 = '<p>'.$rs['msg'].'</p>';
}
?>
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name=”renderer” content=”webkit” />
<title><?=$web_site['web_title']?></title>
<meta name="keywords" content="<?=$web_site['web_name']?>" />
<meta name="description" content="<?=$web_site['web_name']?>致力于打造彩票第一品牌,与您共同打造高品质的游戏平台,彩票游戏,我们更专业!" />
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="/xmIndex/css/mymain.css"/>
<link rel="stylesheet" href="/xmIndex/css/pulic.css"/>
<link media="all" href="/newdsn/css/kefu.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="/js/jquery-ui/styles/jquery-ui.css">
<link rel="stylesheet" href="/newdsn/css/fonts/stylesheet.css">
<link rel="stylesheet" href="/newdsn/css/cash/main.css">
<link rel="stylesheet" href="/newdsn/css/cash/style.css">
<link rel="stylesheet" href="/newdsn/css/cash/index.css">
<link rel="stylesheet" href="/newdsn/css/cash/jquery.bxslider.css"/>
<link rel="stylesheet" href="/newdsn/css/notice_popup.css"/>
<script src="/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="/js/dialog.js"></script>
<script type="text/javascript" src="/js/libs.js"></script>
<script type="text/javascript" src="/newdsn/js/cash/common.js"></script>
<script type="text/javascript" src="https://imgcdn.hazdmj.com/xy00001/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="https://imgcdn.hazdmj.com/xy00001/js/layer-v2.4/layer.js"></script>
<script>
var stat1 = 25;
var statprogress1 = 25; // 25%, percentage
var stat2 = 120;
var statprogress2 = 65; // 65%, e
var stat3 = 34;
var affType = 0;
</script>
<script>
/*---------返回顶部----------*/
$(function() {
$(".btn_top").hide();
$(".btn_top").live("click",function(){
$('html, body').animate({scrollTop: 0},300);return false;
})
$(window).bind('scroll resize',function(){
if($(window).scrollTop()<=300){
$(".btn_top").hide();
}else{
$(".btn_top").show();
}
})
})
/*---------返回顶部 end----------*/
</script>
</head>
<body id="bodyid" marginwidth="0" marginheight="0">
<div class="big-box">
<!--头部开始-->
<div class="header-box">
<div class="header-ts">
<div class="ts-play">
<img src="/xmindex/img/laba.png" alt="shibai">
<div class="NewSlides">
<div id="NewSl">
<ul id="NewSl_begin">
<li>
<?=$msg2;?>
</li>
</ul>
<ul id="NewSl_end"></ul>
</div>
</div>
</div>
</div>
<!--头部结束-->
<div class="top">
<div class="g_w1">
<div class="time_box">
<span class="date showTime"></span> 营业时间:白天07:30 - 凌晨04:00 / 全年无休</div>
<div class="oper_box">
<?php
if(!$uid){
?>
<div class="login">
<form class="login-form" id="loginForm" name="form1" action="/login.php" method="post" onsubmit="check_login();">
<a href="/register"><button type="button" id="btn-register" class="btn btn-red" title="注册">注册</button></a>
<div class="userid form-control">
<input id="username" type="text" name="username" value="" placeholder="用户名">
</div>
<div class="password form-control">
<input id="password" type="password" name="passwd" value="" placeholder="******">
<a onclick="alert("如忘记密码请问联系在线客服!"); return false;" class="btn btn-sm btn-white">忘记?</a>
</div>
<input type="hidden" name="act" value="login">
<input type="submit"id="loginBtn" title="登录" name="rmNumm" value="登录" onClick="loginBtn" class="btn btn-red">
<button type="button" onclick="javaScript:alert('游客盘口只供试玩,与正式会员盘口无关!');top.location.href='/guest.php';" class="btn btn-blue">试玩登录</button>
<a target="_blank" href="<?=$web_site["web_kf"]?>"><div" class="btn btn-yellow">
<div style="margin-top:5px; "><img src="/xmindex/img/mic.png"></div><div style="margin-left:4px; margin-top: 0px;" title="点击即可联系在线客服">在线客服</div></div"></a>
</form>
</div>
</div>
<?php
} else {
?>
<div class="header-links">
<ul>
<li><span class="username">
<?php if(strpos($_SESSION["username"],'guest_')===false) {?>
用户名:<?=$_SESSION['username']?>
<? }else{ ?>
欢迎试玩
<? } ?>
<?
$sql = "select money as s from k_user where uid=$uid limit 1"; //余额
$query = $mysqli->query($sql);
$rs = $query->fetch_array();
$user_money = sprintf("%.2f", $rs['s']);
?>
<li><span class="tesing">额度:<?=$user_money?><span></li>
<li class="header-center" style="display: none;"><a href="/member/index?page=center/index">个人中心</a></li>
<li class="header-payment" style="display: none;"><a href="/member/index?page=payment/deposit">资金管理</a></li>
<li><a href="/member/index">进入游戏</a></li>
<li><a href="/member/logout">退出</a></li>
</ul>
<a target="_blank" href="<?=$web_site["web_kf"]?>"><div" class="btn btn-yellow floatright"><div style="margin-top:2px; "><img src="/newdsn/images/cash/mic.png"></div> <div style="margin-left:4px; margin-top: 0;">在线客服</div></div"></a>
</div></div>
<?php
}
?>
<div class="g_glear"></div>
</div>
<div class="g_glear"></div>
</div>
<div class="topmenu">
<div class="g_w1" style="width: 1050px;">
<div class="logo">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="320" height="70">
<param name="movie" value="/newdsn/images/small_logo.jpg" >
<param name="quality" value="high">
<embed src="/newdsn/images/small_logo.jpg" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="95" style="position:absolute;top:-8px;"></object>
</div>
<div class="menulinks clearfix">
<a href="/main" class="sublinks">网站首页</a>
<a href="/register" class="sublinks" >开户注册</a>
<a href="/promo" class="sublinks">优惠活动
<img src="/xmIndex/img/hot.gif" ondragstart="return false;" style="position:absolute;top:10px;">
</a>
<?php
if(!$uid){
?>
<a onclick="alert("您尚未登录,请先登录后在进行存款取款!"); return false;" class="trade sublinks">存款取款</a>
<?php
} else {
?>
<a href="/member/index" class="trade sublinks">存款取款</a>
<?php
}
?>
<a href="/deposit" class="sublinks">常见问题</a>
<a href="/mobile" class="sublinks">手机投注</a>
<a href="/agency" target="_blank" class="sublinks">代理加盟</a>
</div>
</div>
</div>
<!-- 最新公告弹出层 -->
<div class="layer_containerMore" id="layer_containerMore" style="display:none">
<!-- 右侧内容部分 -->
<div class="MoreNewsCont">
<div class="popNewsLayer" id="notice_info_30">
<h2><?php echo $title;?></h2><?php echo $msg22;?>
<h2></h2>
</div></div>
<!-- 左侧信息列表 -->
<div class="MainListUl_More">
<ul><?php echo $title1;?></ul>
</div>
</div>
<script>
$(function () {
function showNotice(notice_id) {
$(".popNewsLayer").hide();
$("#notice_info_" + notice_id).show();
$("#notice_infoa_"+notice_id).css({'border-right': '2px solid red'});
var i = layer.open({
type: 1,
title: '最新公告',
skin: 'layui-layer-rim newsbg',
shade: [0.3, '#000'],
style:'background-color',
offset: ['50px', ''],
area: ['490px', '400px'],
content: $('#layer_containerMore'), //.html(),
success: function(dom,index) {
$(".ShowNews").click(function() {
$(".popNewsLayer").hide();
$(".MainListUl_More >ul >li").css({'border-right': '2px solid white'});
var notice_id = $(this).attr('notice_id');
$("#notice_info_"+notice_id).show();
$("#notice_infoa_"+notice_id).css({'border-right': '2px solid red'});
});
$(".MainListUl_More a").eq(0).click();
}
});
}
var flag;
setInterval(function () {
if (flag) {
$('.hot').css({'display': 'block'});
$('.hot1').css({'display': 'block'})
} else {
$('.hot1').css({'display': 'block'});
$('.hot').css({'display': 'block'})
}
flag = !flag;
}, 100);
/****************公告滚动begin***************/
function ScrollImgLeft(){
var speed=30;
var MyMar = null;
var scroll_begin = document.getElementById("NewSl_begin");
var scroll_end = document.getElementById("NewSl_end");
var scroll_div = document.getElementById("NewSl");
scroll_end.innerHTML=scroll_begin.innerHTML;
function Marquee(){
if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
scroll_div.scrollLeft-=scroll_begin.offsetWidth;
else
scroll_div.scrollLeft++;
}
MyMar=setInterval(Marquee,speed);
scroll_div.onmouseover = function(){
clearInterval(MyMar);
}
scroll_div.onmouseout = function(){
MyMar = setInterval(Marquee,speed);
}
}
ScrollImgLeft();
/****************公告滚动end***************/
//最新公告弹出层
$(".ShowNewsMore").live("click",function() {
var notice_id = $(this).attr('notice_id');
showNotice(notice_id);
});
});
</script>
<script type="text/javascript">
function check_login() {
var frm = $("#loginForm");
var opt = {
beforeSubmit: function() {
if($("#username").val() == "") {
layer.alert('请输入您的账号!', function(i) {
$("#username").focus();
layer.close(i);
});
return false;
}
if($("#passwd").val() == "") {
layer.alert('请输入您的密码!', function(i) {
$("#passwd").focus();
layer.close(i);
});
return false;
}
$("#loginBtn").attr("disabled", true);
},
success: function(data) {
if(data.indexOf("3") >= 0) {
layer.alert('帐号异常无法登陆,如有疑问请联系在线客服!', function(i) {
$("#passwd").val("");
$("#username").val("").focus();
$("#loginBtn").attr("disabled", false);
layer.close(i);
});
} else if(data.indexOf("2") >= 0) {
layer.alert('账号或密码错误,请重新输入!', function(i) {
$("#passwd").val("");
$("#username").val("").focus();
$("#loginBtn").attr("disabled", false);
layer.close(i);
});
} else if(data.indexOf("1") >= 0) {
top.location.href = "/member/agreement";
}
}
};
frm.ajaxSubmit(opt);
return false;
}
</script>