-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprizes_rank.php
112 lines (111 loc) · 3.81 KB
/
prizes_rank.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
<?php
include_once("inc/conn.php");
include_once("inc/function.php");
?>
<!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>Rankings-<?=$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" />
</head>
<?php include_once("top.php");?>
<script language="javascript">
qiehuan(4);
document.getElementById("qh_con4").getElementsByTagName('li')[4].className="current";
</script>
<DIV class="wrapper">
<DIV class="page_content">
<!--Ö÷Ìå×ó±ß Start-->
<div class="area690 fl" style="float:right;padding-top:15px;">
<div class="table690 h5px"></div>
<table class="ng_tab" width="100%" cellpadding="0" cellspacing="0">
<thead>
<th width="10%" align="center" height="30">Rank</th>
<th width="24%" align="center">AccountID</th>
<th width="15%" align="center">Records</th>
<th align="center">Total Amount (<?=$web_moneyname?>)</th>
<th width="15%" align="center">Detail</th>
</thead>
<tbody>
<?
$intpage = 20;
if (isset($_GET['page'])) {
$rsnum = (intval($_GET['page']) -1)*$intpage;
}else{
$rsnum = 0;
}
$i=$rsnum;
$sql="Select * from {$web_dbtop}users where djcs>0 Order by djpoints desc";
$query=$db->query($sql);
if($db->fetch_array($query))
$intnum=$db->num_rows($query);
$query=$db->query($sql." limit $rsnum,$intpage");
while($rs=$db->fetch_array($query)){
$i++;
?>
<tr>
<td><?=$i?></td>
<td><A href="user.php?id=<?=$rs["id"]?>" target="_blank"><?=$rs["id"]?></A></td>
<td><?=$rs["djcs"]?></td>
<td><?=number_format($rs["djpoints"])?><IMG src="<?=$web_moneypic?>" align=absMiddle></td>
<td><A href="prizes_rank_u.php?id=<?=$rs["id"]?>">View</A></td>
</tr>
<?
}
?>
</tbody>
</table>
<div class="area690-b h5px"></div>
<div class="pages" style="text-align:center;">
<?php
include_once("inc/page_class.php");
$page=new page(array('total'=>$intnum,'perpage'=>$intpage));
echo $page->show(5,"","");?>
</div>
</div>
<!--Ö÷Ìå×ó±ß End-->
<!--Ö÷ÌåÓÒ±ß Start-->
<div class="area260 fl" style="float:left;">
<DIV class="news-title">
<span><a href="news_lest.php">More»</a></span>
<H3 style="color:white;font-size:15px;">Latest News</H3>
</DIV>
<ul class="area260-info news-list">
<?
$query=$db->query("Select * from {$web_dbtop}news Order by top desc,id desc limit 10");
while($rs=$db->fetch_array($query)){
?>
<LI><A title="<?=$rs["title"]?>" href="news_content.php?id=<?=$rs["id"]?>"><?=$rs["title"]?></A></LI>
<?
}
?>
</ul>
<DIV class="area260-b h5px"></DIV>
<DIV class=blank10></DIV>
<DIV class="news-title">
<span><a href="help_lest.php">More»</a></span>
<H3 style="color:white;font-size:15px;">Users Guide</H3>
</DIV>
<ul class="area260-info news-list">
<?
$query=$db->query("Select * from {$web_dbtop}help Order by top desc,id desc limit 10");
while($rs=$db->fetch_array($query)){
?>
<LI><A title="<?=$rs["title"]?>" href="help_content.php?id=<?=$rs["id"]?>"><?=$rs["title"]?></A></LI>
<?
}
?>
</ul>
<DIV class="area260-b h5px"></DIV>
<DIV class=blank10></DIV>
</div>
</DIV>
<!--Flink End-->
<div class="blank10"></div>
<!--Footer Start-->
<?php include_once("footer.php");?>
</DIV>