-
Notifications
You must be signed in to change notification settings - Fork 0
/
lists.php
executable file
·96 lines (69 loc) · 2.39 KB
/
lists.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
<?php
ob_start("ob_gzhandler");
include("connect.php");
include("functions.php");
include("track.php");
sheader("MegaLan.net Attendance List","MegaLan.net Attendance List");
$page = $stream->do_query("select pagecontents from site_english where pagename='lists'","one");
print $page;
$query1 = $stream->do_query("select * from site_lansignup order by id, username, payedmonies","array");
$notconfirmed = count($stream->do_query("select * from site_lansignup","array"));
$confirmed = count($stream->do_query("select * from site_lansignup where payedmonies='1'","array"));
$less = $notconfirmed - $confirmed;
if(count($query1)<1){
print "<font>Awaiting Registrants<br><br>";
}
else {
print "
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td><center><font>
<B>$confirmed</b> of <b>$notconfirmed</b> confirmed (awaiting payment from $less registrants) / <B>150</b>
</td></tr></table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td><font><b>Megalan Member</td>
<td><font><b>Signed up Date </td>
<td><font><b>Payment Status</td>
</tr>";
for ($x=0;$x<count($query1);$x++){
$tmp = $query1[$x];
$id = $tmp[0];
$username = $tmp[1];
$name = $tmp[2];
$time = $tmp[14];
$payed = $tmp[12];
$hhhh = $stream->do_query("select id from site_users where username='$username'","one");
if($payed==1){
$payed = "<img src='http://www.megalan.net/img/confirmed.gif' border=0>";
}
else {
$payed = "";
}
print "<tr><td><font><a href='players.php?code=member&id=$hhhh'>$username</a> ($name) </td><td><font> ($time)</td><td> $payed </td></tr>";
}
if(count($query1)>150){
print "<tr><td colspan=3><center><HR>Next on the list<hr></td></tr>";
for ($x=151;$x<153;$x++){
$tmp = $query1[$x];
$id = $tmp[0];
$username = $tmp[1];
$name = $tmp[2];
$time = $tmp[14];
$payed = $tmp[12];
$hhhh = $stream->do_query("select id from site_users where username='$username'","one");
if($payed==1){
$payed = "<img src='http://www.megalan.net/img/confirmed.gif' border=0>";
}
else {
$payed = "";
}
print "<tr><td><font><a href='players.php?code=member&id=$hhh'>$username</a> ($name) </td><td><font> ($time)</td><td> $payed </td></tr>";
}
}
print "</table></td></tr></table>";
}
footer();
?>