-
Notifications
You must be signed in to change notification settings - Fork 0
/
luckmylist.php
166 lines (158 loc) · 9.1 KB
/
luckmylist.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
<?php
include_once("inc/conn.php");
include_once("inc/function.php");
login_check();
$intpage = 30;
if (isset($_GET['page'])) {
$rsnum = (intval($_GET['page']) -1)*$intpage;
}
else {
$rsnum = 0;
}
if($_GET["minNO"] && $_GET["maxNO"]){
$sql="Select {$web_dbtop}game28.id,{$web_dbtop}game28.kgtime,{$web_dbtop}game28.kgjg,{$web_dbtop}game28.zjpl,{$web_dbtop}game28.kj,{$web_dbtop}game28_users_tz.hdpoints,{$web_dbtop}game28_users_tz.points from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and {$web_dbtop}game28_users_tz.uid=".intval($_COOKIE["usersid"])." and {$web_dbtop}game28.id>=".intval($_GET["minNO"])." and {$web_dbtop}game28.id<=".intval($_GET["maxNO"])." and kj=1 Order by {$web_dbtop}game28.id desc";
}else{
$sql="Select {$web_dbtop}game28.id,{$web_dbtop}game28.kgtime,{$web_dbtop}game28.kgjg,{$web_dbtop}game28.zjpl,{$web_dbtop}game28.kj,{$web_dbtop}game28_users_tz.hdpoints,{$web_dbtop}game28_users_tz.points from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and {$web_dbtop}game28_users_tz.uid=".intval($_COOKIE["usersid"])." and kj=1 Order by {$web_dbtop}game28.id desc";
}
$query=$db->query($sql);
if($rs=$db->fetch_array($query)){
$maxid=$rs["id"];
$intnum=$db->num_rows($query);
}
//if($_GET["minNO"] && $_GET["maxNO"]){
//$query=$db->query("Select min({$web_dbtop}game28.id) as id,sum({$web_dbtop}game28_users_tz.hdpoints)as sumpoints,sum({$web_dbtop}game28_users_tz.tzpoints)as tzpoints from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and uid=".intval($_COOKIE["usersid"])." and {$web_dbtop}game28.id>=".intval($_GET["minNO"])." and {$web_dbtop}game28.id<=".intval($_GET["maxNO"]));
//}else{
//$query=$db->query("Select min({$web_dbtop}game28.id) as id,sum({$web_dbtop}game28_users_tz.hdpoints)as sumpoints,sum({$web_dbtop}game28_users_tz.tzpoints)as tzpoints from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and uid=".intval($_COOKIE["usersid"]));
//}
if($_GET["minNO"] && $_GET["maxNO"]){
$query=$db->query("Select min({$web_dbtop}game28.id) as id,sum({$web_dbtop}game28_users_tz.hdpoints)as sumpoints,sum({$web_dbtop}game28_users_tz.points)as tzpoints from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and uid=".intval($_COOKIE["usersid"])." and {$web_dbtop}game28.id>=".intval($_GET["minNO"])." and {$web_dbtop}game28.id<=".intval($_GET["maxNO"]));
}else{
$query=$db->query("Select min({$web_dbtop}game28.id) as id,sum({$web_dbtop}game28_users_tz.hdpoints)as sumpoints,sum({$web_dbtop}game28_users_tz.points)as tzpoints from {$web_dbtop}game28,{$web_dbtop}game28_users_tz where {$web_dbtop}game28.id={$web_dbtop}game28_users_tz.NO and uid=".intval($_COOKIE["usersid"]));
}
if($rs=$db->fetch_array($query)){
$minid=$rs["id"];
$tzpoints=$rs["tzpoints"];
$sumpoints=$rs["sumpoints"];
}
if($_GET["minNO"] && $_GET["maxNO"]){
$minid=$_GET["minNO"];
$maxid=$_GET["maxNO"];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Luck28-game center-<?=$web_name;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?=$web_keywords;?>" />
<meta name="description" content="<?=$web_description;?>" />
<META http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<link href="style/default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
table a{color:#285D0B;}
table a:hover{color:black;font-weight:bold;}
</style>
</head>
<?php include_once("top.php");?>
<script language="javascript">
qiehuan(2);
document.getElementById("qh_con2").getElementsByTagName('li')[0].className="current";
</script>
<DIV class="wrapper">
<DIV class="page_content">
<DIV class="webgame-info-title">
<UL>
<LI><A href="luck.php">Luck28 home</A></LI>
<LI><A href="luckhelp.php">Luck28 guide</A></LI>
<LI class="current"><A href="luckmylist.php">My press history</A></LI>
<LI><A href="luckmodel.php">Edit press pattern</A></LI>
<LI><A href="luckautoset.php">Autopress</A></LI>
<LI><A href="luckdirection.php">Trend chart</A></LI>
</UL>
</DIV>
<DIV class="webgame-info">
<DIV class="webgame-info-tabs">
<table width="100%" height="27" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="12"><img src="images/game2_03.jpg" width="12" height="27" /></td>
<td background="images/game2_04.jpg" class="font14">My press history:</td>
<td width="13"><img src="images/game2_06.jpg" width="13" height="27" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<form action="?" method="get">
<tr>
<td colspan="9">
<div style="color:white;"> Draw £º from
<input name="minNO" type="text" size="20" maxlength="10" value="<?=$minid?>"/>
To
<input name="maxNO" type="text" size="20" maxlength="10" value="<?=$maxid?>" />
<input type="submit" name="btnSearch" value=" view " />
</div>
</td>
</tr>
</form>
<tr>
<td colspan="9" height="30" style="color:white;">
From Draw #<?=$minid?> to Draw #<?=$maxid?>
you pressed <?=$tzpoints?> <?=$web_moneyname?>, gained <?=$sumpoints;?><?=$web_moneyname?>,
you earned/lossed <?=$sumpoints-$tzpoints?><?=$web_moneyname?>
<!--Ó¯¿÷±ÈΪ<?//=($sumpoints?number_format($sumpoints/$tzpoints*100,2):"00.00")?> %. --></td>
</tr>
<td bgcolor="#248301"><table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="80" height="28" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">Draw</td>
<td width="120" height="28" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">pressd time</td>
<td align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf" width="120px">winning number</td>
<td width="100" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">pressed <?//=$web_moneyname?></td>
<td width="100" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">gained<?//=$web_moneyname?></td>
<td width="80" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">odds</td>
<td width="80" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">gained/pressed</td>
<td width="60" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">detail</td>
<td width="120" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">save as press pattern</td>
</tr>
<?php
$query=$db->query($sql." limit $rsnum,$intpage");
while($rs=$db->fetch_array($query)){
$kgh=explode("|",$rs["kgjg"]);
$zjpl=explode("|",$rs["zjpl"]);
?>
<tr>
<td height="32" align="center" bgcolor="#E6F7E0" class="font12game"><?=$rs["id"]?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?=date("M d H:i:s",strtotime($rs["kgtime"]));?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?="<img src=\"images/luck/number_".$kgh[3].".gif\" />"?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?=number_format($rs["points"])?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?=number_format($rs["hdpoints"]).""?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?=$zjpl[$kgh[3]]?></td>
<td align="center" bgcolor="#FFFFFF" class="font12game"><?=number_format(($rs["hdpoints"]/$rs["points"]*100),2)."%"?></td>
<td align="center" bgcolor="#FFFFFF"><a href="luckmydetail.php?luckno=<?=$rs["id"]?>">view</a></td>
<td align="center" bgcolor="#FFFFFF"><a href="luckmodelsave.php?luckno=<?=$rs["id"]?>">save</a></td>
</tr>
<?
}
?>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
<tr>
<td align="center"><?php
include_once("inc/page_class.php");
$page=new page(array('total'=>$intnum,'perpage'=>$intpage));
echo $page->show(5,"","");?></td>
</tr>
</table>
</DIV>
<DIV class=cl></DIV>
</DIV>
<DIV class="area960-b h5px"></DIV>
<!--Flink End-->
<div class="blank10"></div>
<!--Footer Start-->
<?php include_once("footer.php");?>
</DIV>