-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskin_openbox.php
146 lines (118 loc) · 6.45 KB
/
skin_openbox.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
<?php
function classLoad($className)
{
$fileLoad = 'skin_include/class/'.$className.'.class.php';
if (is_file($fileLoad)) {
require_once ($fileLoad);
}
}
spl_autoload_register('classLoad');
/*加载PHP自定义类*/
include "skin_content/skin_config.php";//读取预设配置(不涉及安全设置)
include "skin_content/skin_safe_config.php";//读取预设安全设置
$getBoxOrderID=$_GET['let_block_number'];//接收箱子OrderID
/*接收值*/
$loadMysql=new mysql();//加载预设类 - MySQL预设类
$connectMysql=$loadMysql->connect(constant("SQL_SERVER_ADDRESS").':'.constant("SQL_SERVER_PORT"),constant("SQL_SERVER_USERNAME"),constant("SQL_SERVER_PASSWORD"),constant("SQL_SERVER_DATABASE"));
$queryMysql=$loadMysql->variable("SELECT box_name,box_inf.box_order_id,box_price,box_hot,image_preview_link FROM skin_boxes_informations box_inf INNER JOIN skin_boxes_images box_img ON box_inf.box_order_id = box_img.box_order_id");
$consultMysql=$loadMysql->choice(1);
/*
* connectMysql代表连接数据库,其使用了MySQL预设类
* queryMysql代表执行SQL语句
* consultMysql代表执行结果展示的方式,1为全体,2为只有一条*/
$getCopiesMod = constant("website_copies_mod"); // 获取版权显示值,1为显示,0为隐藏
?>
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><? echo constant("website_name"); ?> - 开箱 - CS2D武器箱</title>
<link rel="stylesheet" href="skin_style/skin_frame.css">
<link rel="stylesheet" href="skin_style/skin_roof.css">
<link rel="stylesheet" href="skin_style/skin_middle.css">
<link rel="stylesheet" href="skin_style/skin_feet.css">
<link rel="stylesheet" href="skin_style/market/skin_notice.css">
<link rel="stylesheet" href="skin_style/lottery/skin_openbox.css">
</head>
<body>
<? include "skin_content/roof.php"; ?>
<div class="openbox_middle">
<div class="core_middle_notice">
<img src="skin_images/smallpic/notice.png" alt="">
<a href="javascript:void(0)" onclick="notice()">测试测试</a>
</div>
<div class="core_middle_ads">
<img style="display: none;" src="" alt="">
<div style="color: white;">广告位招商,联系:CS2D中文站站长</div>
</div>
<div></div><!--设置空白-->
<div class="openbox_middle_title">
<div>----- CS2D武器箱 -----</div>
</div>
<div><hr></div>
<div class="openbox_middle_rolling">
<div><img src="skin_images/box/cs2dcase.png" alt=""></div>
<!--<div class="openbox_middle_rolling_frame">
<div class="openbox_middle_rolling_item">
<div class="openbox_middle_rolling_item_pic" style="background: radial-gradient(#ffffff 10%, #4b69ff 45%, #101822 95%)"><img src="skin_images/weapon/30006_big.png" alt="" style="width: 200px;"></div>
<div style="display: grid;grid-template-rows: repeat(2,50%);background-color: white;">
<div class="openbox_middle_rolling_item_inf">
<div class="openbox_middle_rolling_item_inf_name"><p>AK47 | 火神</p></div>
</div>
</div>
</div>
<div class="openbox_middle_rolling_item" style="bottom: 150px;right: 200px;z-index: -1;">
<div class="openbox_middle_rolling_item_pic" style="background: radial-gradient(#ffffff 10%, #4b69ff 45%, #101822 95%)"><img src="skin_images/weapon/30006_big.png" alt="" style="width: 200px;"></div>
<div style="display: grid;grid-template-rows: repeat(2,50%);background-color: white;">
<div class="openbox_middle_rolling_item_inf">
<div class="openbox_middle_rolling_item_inf_name"><p>AK47 | 火神</p></div>
</div>
</div>
</div>
</div>-->
<!--对应js文件为skin/content/javascripts/openbox.js-->
</div>
<div class="openbox_middle_button">
<div class="openbox_middle_button_block" id="openbox_1">
<button type="button">立即开箱</button>
</div>
<div class="openbox_middle_button_price">
<img src="skin_images/smallpic/power.png" alt="">
<p><strong>11</strong></p>
</div>
</div>
<div></div><!--设置空白-->
<div class="openbox_middle_title">
<div>----- 可能掉落物品 -----</div>
</div>
<div><hr></div>
<div class="openbox_middle_market">
<? for ($i=0;$i<15;$i++){ ?>
<div style="/*border: 1px solid gold*/">
<div class="openbox_middle_market_item">
<div class="openbox_middle_market_item_pic" style="background: radial-gradient(#ffffff 10%, #4b69ff 45%, #101822 95%)"><img src="skin_images/weapon/30006_big.png" alt="" style="width: 200px;"></div>
<div style="display: grid;grid-template-rows: repeat(2,50%);background-color: white;">
<div class="openbox_middle_market_item_inf">
<div class="openbox_middle_market_item_inf_name"><a href="#"><p>AK47 | 火神</p></a></div>
<div class="openbox_middle_market_item_inf_price">
<img src="skin_images/smallpic/power.png" alt="">
<p><strong>200</strong></p>
</div>
</div>
</div>
</div>
</div>
<? } ?>
</div>
</div>
<? include "skin_content/feet.php"; ?>
<? include "skin_content/notice.html"?>
</body>
<script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script>
<script src="skin_content/javascripts/roof.js"></script>
<script src="skin_content/javascripts/notice.js"></script>
<script src="skin_content/javascripts/openbox.js"></script>
</html>