/
admin_view_tree.php
167 lines (136 loc) · 24.8 KB
/
admin_view_tree.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
167
<?
require( "label.php" );
dbConnect();
if( !verifyAdmin() ) header( "Location: admin.php" );
$cats = mysql_query( "SELECT * FROM member WHERE username_upline='$USERNAME_DEFAULT'" ) or error( mysql_error() );
DisplayHeader( "Member Area > ViewTree" );
echo "<p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo "<p style=\"margin-top: 0; margin-bottom: 4\" align=\"center\"><font size=\"4\"> -- VIEW TREE (POHON JARINGAN) DEFAULT WEBSITE -- </font></p>\n";
echo "<p style=\"margin-top: 0; margin-bottom: 4\" align=\"center\"><font size=\"1\">===========[ Maksimal hingga kedalaman 15 level ]============= </font></p>\n";
// level 1
if( mysql_num_rows( $cats ) == 0 )
echo "<p align=\"center\"><font face=\"Verdana\" size=\"4\"> Maaf !!! Belum ada Jaringan</font></p>\n";
else
{
while( $row = mysql_fetch_array( $cats ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">|</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">|-<b>level 1</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 2
$subcats = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats );
while( $row = mysql_fetch_array( $subcats ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| |-<b>level 2</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 3
$subcats1 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats1 );
while( $row = mysql_fetch_array( $subcats1 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | |-<b>level 3</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 4
$subcats2 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats2 );
while( $row = mysql_fetch_array( $subcats2 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | |-<b>level 4</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 5
$subcats3 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats3 );
while( $row = mysql_fetch_array( $subcats3 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | |-<b>level 5</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 6
$subcats4 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats4 );
while( $row = mysql_fetch_array( $subcats4 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | |-<b>level 6</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 7
$subcats5 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats5 );
while( $row = mysql_fetch_array( $subcats5 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | |-<b>level 7</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 8
$subcats6 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats6 );
while( $row = mysql_fetch_array( $subcats6 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | |-<b>level 8</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 9
$subcats7 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats7 );
while( $row = mysql_fetch_array( $subcats7 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | |-<b>level 9</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 10
$subcats8 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats8 );
while( $row = mysql_fetch_array( $subcats8 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | |-<b>level 10</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 11
$subcats9 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats9 );
while( $row = mysql_fetch_array( $subcats9 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | |-<b>level 11</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 12
$subcats10 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats10 );
while( $row = mysql_fetch_array( $subcats10 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | |-<b>level 12</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 13
$subcats11 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats11 );
while( $row = mysql_fetch_array( $subcats11 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | |-<b>level 13</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 14
$subcats12 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats12 );
while( $row = mysql_fetch_array( $subcats12 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | | |-<b>level 14</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
// level 15
$subcats13 = mysql_query( "SELECT * FROM member WHERE username_upline='{$row['username']}'" ) or error( mysql_error() );
$member = mysql_num_rows( $subcats13 );
while( $row = mysql_fetch_array( $subcats13 ) )
{
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | | | |</font></pre> \n";
echo "<pre style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">| | | | | | | | | | | | | | |-<b>level 15</b>--><b><font color=\"#000080\"><i> </i></font><i><font color=\"#000000\">{$row['nama']}</font></i></b> - <font color=\"#008080\">{$row['nomor_id']}</font> - {$row['username']}</font> - <font face=\"Verdana\" style=\"font-size: 8pt; font-style: italic\" color=\"#FF0000\">({$row['stat']})</font></pre> \n";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
echo " <p align=\"center\">---------------------------------</p>";
echo "<p align=\"center\"><a href=\"admin_menu.php\"><b>Back to Admin</b></a></p>\n";
displayFooter();
?>