/
member_genealogy.php
56 lines (51 loc) · 3.81 KB
/
member_genealogy.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
<?
require( "label.php" );
dbConnect();
if( !verifyUser() ) header( "Location: index.php" );
$result = mysql_query( "SELECT * FROM member where username_upline='$username'" ) or error( mysql_error() );
$memnum = mysql_num_rows( $result );
displayHeader( "Member Area > Genealogy View" );
echo "<p align=\"center\"><font size=\"4\">Jumlah Downline langsung anda = ($memnum) Orang</font></p>\n";
if( $memnum != 0 )
{
echo "<div align=\"center\">\n";
echo " <center>\n";
echo " <table border=\"0\" cellspacing=\"0\" width=\"700\" cellpadding=\"0\"><font size=\"1\" face=\"Tahoma\" >\n";
echo " <tr class=\"frame\">\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Nama</b></font></td>\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>E-mail</b></font></td>\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Alamat</b></font></td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Nomor ID</b></font></td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Username</b></font></td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Status</b></font></td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Kota</b></font></td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\"><font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\"><b>Next level</b></font></td>\n";
echo " </tr>\n";
$i = 1;
while( $row = mysql_fetch_array( $result ) )
{
$i % 2 == 0 ? $bgColor = "#FFFFFF" : $bgColor = "#E6E6E6";
echo " <tr>\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['nama']}</td>\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['email']}</a></td>\n";
echo " <td width=\"15%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['alamat']}</td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['nomor_id']}</td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['username']}</td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['stat']}</td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\">{$row['kota']}</td>\n";
echo " <td width=\"10%\" height=\"25\" align=\"center\" bgcolor=\"$bgColor\"><font face=\"Tahoma\" size=\"1\" color=\"#000080\"><a href='member_genealogy1.php?user={$row['username']}'>Next<font size=\"1\"></td>\n";
echo " </tr>\n";
$i=$i+1;
}
echo " <tr>\n";
echo " <td width=\"100%\" height=\"1\" bgcolor=\"#808080\" colspan=\"10\"></td>\n";
echo " </td>\n";
echo " </table>\n";
echo " </center>\n";
echo "</div>\n";
}
else
{
echo "<p align=\"center\"><b>Maaf Anda belum mempunyai downline</b></a></p>\n";
}
?>