</nav>

                </div>

                <!--  END TOPBAR  -->



            </ul>



            <ul class="navbar-item flex-row ml-auto">

                <li class="nav-item align-self-center search-animated">

                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search toggle-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>

                    <form class="form-inline search-full form-inline search" role="search">

                        <div class="search-bar">

                            <input type="text" class="form-control search-form-control  ml-lg-auto" placeholder="Search...">

                        </div>

                    </form>

                </li>

            </ul>



            <ul class="navbar-item flex-row nav-dropdowns">

               



               



                <li class="nav-item dropdown notification-dropdown">

                    <a href="javascript:void(0);" class="nav-link dropdown-toggle" id="notificationDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg><span class="badge badge-success"></span>

                    </a>

                    <div class="dropdown-menu position-absolute" aria-labelledby="notificationDropdown">

                        <div class="notification-scroll">

						  <?

		   





							 $query_not = $mysqli->prepare("select heading, content from notice");



													$query_not->execute();



													$query_not->bind_result($heading, $content);

		   

		   ?>

		   <?

		                                 while ($query_not->fetch()){

		                                  ?>



                            <div class="dropdown-item">

                                <div class="media server-log">

                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-server"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6" y2="6"></line><line x1="6" y1="18" x2="6" y2="18"></line></svg>

                                    <div class="media-body">

                                        <div class="data-info">

                                            <h6 class=""><? echo $heading;?></h6>

                                            <p class=""><? echo $content;?></p>

                                        </div>



                                        <div class="icon-status">

                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>

                                        </div>

                                    </div>

                                </div>

                            </div>

							<? } ?>



                            



                            

                        </div>

                    </div>

                </li>

				

											<?

$member_id=$_SESSION['member_id'];

$qry2=$mysqli->prepare("select name,ewallet  from member where member_id=?");



$qry2->bind_param("s", $member_id);



  $qry2->execute();



$qry2->bind_result($name,$ewallet); 



	while($qry2->fetch())



	{



	

	$name=$name;

	$ewallet=$ewallet;



	}

?>



                <li class="nav-item dropdown user-profile-dropdown order-lg-0 order-1">

                    <a href="javascript:void(0);" class="nav-link dropdown-toggle user" id="user-profile-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                        <div class="media">

                            <img src="assets/img/90x90.jpg" class="img-fluid" alt="admin-profile">

                        </div>

                    </a>

                    <div class="dropdown-menu position-absolute" aria-labelledby="userProfileDropdown">

                        <div class="user-profile-section">

                            <div class="media mx-auto">

                                <div class="media-body">

                                    <h5>Name : <? echo $name;?></h5>

                                    <p>User Name : <? echo $member_id;?></p>

                                </div>

                            </div>

                        </div>

                        <div class="dropdown-item">

                            <a href="update_profile.php">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> <span>Profile</span>

                            </a>

                        </div>

                       

                        <div class="dropdown-item">

                            <a href="logout.php">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg> <span>Log Out</span>

                            </a>

                        </div>

                    </div>



                </li>

            </ul>

        </header>

    </div>

    <!--  END NAVBAR  -->



    <!--  BEGIN MAIN CONTAINER  -->

    <div class="main-container" id="container">



        <div class="overlay"></div>

        <div class="search-overlay"></div>

        

        <!--  BEGIN CONTENT PART  -->

        <div id="content" class="main-content">

            <div class="layout-px-spacing">



                <div class="page-header">

                    <div class="page-title">

                        <h3><? echo $name;?>(<? echo $member_id;?>)</h3>

                    </div>

                    

                    <div class="toggle-switch">

                        <label class="switch s-icons s-outline  s-outline-secondary">

                            <input type="checkbox" checked="" class="theme-shifter">

                            <span class="slider round">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>



                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>

                            </span>

                        </label>

                    </div>

                </div>



                <div class="row layout-top-spacing">



                 <div id="tableSimple" class="col-lg-12 col-12 layout-spacing">

                            <div class="statbox widget box box-shadow">

                                <div class="widget-header">

                                    <div class="row">

                                        <div class="col-xl-12 col-md-12 col-sm-12 col-12">

                                            <h4>Level View</h4>

                                        </div>

                                    </div>

                                </div>

                                <div class="widget-content widget-content-area">

                                    <div class="table-responsive">

									<table class="table table-bordered mb-4">

<tr>















								 















									  <th width="97">Sl No.</th>















									  <th width="139">User Name</th>















									  <th width="253">Associate Name</th>



									  



									   







 <th width="99">Joining Date</th>



<th width="121">Activation Date</th>

 <th width="256">Topup Amount</th>



 <th width="256">Status</th>



				  </tr>



						<?



$member_id=$_SESSION['member_id'];				





$main_intro=$member_id;

    



	



	$qq = $mysqli->prepare("select id,direct_join from member where member_id=?");



			$qq->bind_param('s', $member_id);



			$qq->execute();



			$qq->bind_result($id,$direct_join);



			 while ($qq->fetch())



			 {



			  $id=$id;

              $direct_join=$direct_join;

			 



			 }



			 $row=0;



			 $query = $mysqli->prepare("select member_id,id,pack_id,name,joining_date,active_date,active from member where intro_id=?");



			$query->bind_param('s', $member_id);



			$query->execute();



			$query->bind_result($member_id,$id,$pack_id,$name,$joining_date,$active_date,$active);



			 while ($query->fetch())



			 {



			 $row++;



			  $chan_mm[$row]=$member_id;



			  $idm[$row]=$id;

			  $pack[$row]=$pack_id;

			  $nam[$row]=$name;

			  $jn_date[$row]=$joining_date;

			  $ac_date[$row]=$active_date;

			  $act[$row]=$active;



			 



			 }











													$c=0;







?>



<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-1</font></b></td><td><? if($direct_join>0){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>
					
					



					



					



		</tr>



					<?















													if($row>0)







														{	  











															for($i=1;$i<=$row;$i++)







															  {



$countt2++;



															   $chan_mem=$chan_mm[$i]; 







																$c++;



															 $a[$c]=$chan_mem;

															 

															  $pack_id=$pack[$i];

															  

															  $name=$nam[$i];

			                                                  $joining_date=$jn_date[$i];

			                                                    $active_date=$ac_date[$i];



$active=$act[$i];

														



											  $qry=$mysqli->prepare("select rwallet from member where member_id=?");



											$qry->bind_param('s', $chan_mem);



											$qry->execute();



											$qry->bind_result($rwallet);



											while ($qry->fetch())



											{



											$rwallet=$rwallet;



											

											}

											

											

?>



<tr>

<td><? echo $i;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

											





																



<?																







															   }















														}



														



													?>



													<tr>



					<td width="97" height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $c;?></td>







					



					</tr>

					

					



													<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-2</font></b></td><td><? if($direct_join>0){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$d=0;











$countt2=0;



















													if($c>0)







														{



														



													 for($n=1;$n<=$c;$n++)







														 {	

														 $z=0;	



														   $mid=$a[$n];

														   $countt2=0;



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 

															   $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 



															   $pack_id=$pack_id; 

															   $mintro_id=$mintro_id;

															  $active=$active;

$rwallet=$rwallet;

																 $d++;

																



															 $b[$d]=$chan_mem;

                                                               

															  ?>

															  

															  									<tr>

<td><? echo $d;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															  <?



															   }

															 

															   

													

											

											?>

															  										

		

															  

															  <?



}



															







														}























										?>



										<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $d;?></td>



					





					



					</tr>







						



													<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-3</font></b></td><td><? if($direct_join>0){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$e=0;



$total_amt=0;







$countt2=0;











													if($d>0)







														{



														



													 for($n=1;$n<=$d;$n++)







														 {		



														    $mid=$b[$n];

														

														



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



                                                                $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id; 

															    $active=$active;



																$e++;



															 $cb[$e]=$member_id;

															 $rwallet=$rwallet;



															 

?>

<tr>

<td><? echo $e;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>



<?

		



																







															   }



 



															}







														}























										?>







												<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $e;?></td>







					



					</tr>

	



													



													<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-4</font></b></td><td><? if($direct_join>1){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$f=0;



$total_amt=0;







$countt2=0;











													if($e>0)







														{



														



													 for($n=1;$n<=$e;$n++)







														 {		



														   $mid=$cb[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 

															   

															    $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

$rwallet=$rwallet;





																$f++;



															 $cd[$f]=$member_id;



															?>

															<tr>

<td><? echo $f;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															<?



		



																







															   }





											



															}







														}























										?>







									<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $f;?></td>



					

					



					</tr>

	

												`

												

													



													<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-5</font></b></td><td><? if($direct_join>1){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$g=0;



$total_amt=0;







$countt2=0;











													if($f>0)







														{



														



													 for($n=1;$n<=$f;$n++)







														 {		



														   $mid=$cd[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;



																$g++;

$rwallet=$rwallet;

															 $ce[$g]=$member_id;



															?>

															

																						<tr>

<td><? echo $g;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															<?



		



																







															   }

															   

												

										



															}







														}























										?>







												<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $g;?></td>



					



					



					</tr>



												





		<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-6</font></b></td><td><? if($direct_join>1){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$h=0;



$total_amt=0;







$countt2=0;











													if($g>0)







														{



														



													 for($n=1;$n<=$g;$n++)







														 {		



														   $mid=$ce[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;



																$h++;

$rwallet=$rwallet;

															 $cf[$h]=$member_id;



															?>

															

															<tr>

<td><? echo $h;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															<?



		



																







															   }

															   

													

	



															}







														}























										?>







												<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $h;?></td>



					

					



					</tr>

						





													



													

													



		<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-7</font></b></td><td><? if($direct_join>2){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$k=0;



$total_amt=0;







$countt2=0;











													if($h>0)







														{



														



													 for($n=1;$n<=$h;$n++)







														 {		



														   $mid=$cf[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$k++;



															 $cg[$k]=$member_id;



															?>

																										<tr>

<td><? echo $k;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															<?



		



																







															   }

															   

											

										



															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $k;?></td>



					



					



					</tr>								



																				











	<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-8</font></b></td><td><? if($direct_join>2){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$l=0;



$total_amt=0;







$countt2=0;











													if($k>0)







														{



														



													 for($n=1;$n<=$k;$n++)







														 {		



														   $mid=$cg[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 

 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

$rwallet=$rwallet;



																$l++;



															 $ch[$l]=$member_id;

?>



	<tr>

<td><? echo $l;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>



<?

															



		



																







															   }

													

											



															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $l;?></td>



					

					



					</tr>								



														

													

<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-9</font></b></td><td><? if($direct_join>2){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$m=0;



$total_amt=0;







$countt2=0;











													if($l>0)







														{



														



													 for($n=1;$n<=$l;$n++)







														 {		



														   $mid=$ch[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$m++;



															 $ci[$m]=$member_id;



															?>

															

																										<tr>

<td><? echo $m;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															<?





																







															   }

															   

												



															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $m;?></td>



					

					



					</tr>								



										

													

<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-10</font></b></td><td><? if($direct_join>3){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p=0;



$total_amt=0;







$countt2=0;











													if($m>0)







														{



														



													 for($n=1;$n<=$m;$n++)







														 {		



														   $mid=$ci[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p++;



															 $cj[$p]=$member_id;



															?>

																	<tr>

<td><? echo $p;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p;?></td>



					



					



					</tr>

					

						

												



	

												



							

						

<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-11</font></b></td><td><? if($direct_join>3){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p11=0;



$total_amt=0;







$countt2=0;











													if($p>0)







														{



														



													 for($n=1;$n<=$p;$n++)







														 {		



														   $mid=$cj[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p11++;



															 $ck[$p11]=$member_id;



															?>

																	<tr>

<td><? echo $p11;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p11;?></td>



					



					



					</tr>											



				

					



				<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-12</font></b></td><td><? if($direct_join>3){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p12=0;



$total_amt=0;







$countt2=0;











													if($p11>0)







														{



														



													 for($n=1;$n<=$p11;$n++)







														 {		



														   $mid=$ck[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p12++;



															 $cl[$p12]=$member_id;



															?>

																	<tr>

<td><? echo $p12;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p12;?></td>



					



					



					</tr>	

					

					

											

		<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-13</font></b></td><td><? if($direct_join>4){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p13=0;



$total_amt=0;







$countt2=0;











													if($p12>0)







														{



														



													 for($n=1;$n<=$p12;$n++)







														 {		



														   $mid=$cl[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p13++;



															 $cm[$p13]=$member_id;



															?>

																	<tr>

<td><? echo $p13;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p13;?></td>



					



					



					</tr>							

					







<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-14</font></b></td><td><? if($direct_join>4){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p14=0;



$total_amt=0;







$countt2=0;











													if($p13>0)







														{



														



													 for($n=1;$n<=$p13;$n++)







														 {		



														   $mid=$cm[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p14++;



															 $cn[$p14]=$member_id;



															?>

																	<tr>

<td><? echo $p14;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}























										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p14;?></td>



					



					



					</tr>													

																		



					

<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-15</font></b></td><td><? if($direct_join>4){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>



													<?	







													$p15=0;



$total_amt=0;







$countt2=0;











													if($p14>0)







														{



														



													 for($n=1;$n<=$p14;$n++)







														 {		



														   $mid=$cn[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);





											$query->execute();





											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p15++;



															 $co[$p15]=$member_id;



															?>

																	<tr>

<td><? echo $p15;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p15;?></td></tr>



				<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-16</font></b></td><td><? if($direct_join>5){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>	



					



	<?	







													$p16=0;



$total_amt=0;







$countt2=0;











													if($p15>0)







														{



														



													 for($n=1;$n<=$p15;$n++)







														 {		



														   $mid=$co[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p16++;



															 $cp[$p16]=$member_id;



															?>

																	<tr>

<td><? echo $p16;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p16;?></td></tr>																	

																		





							

					

					



<tr>

					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-17</font></b></td><td><? if($direct_join>5){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



					</tr>	



					



	<?	







													$p17=0;



$total_amt=0;







$countt2=0;











													if($p16>0)







														{



														



													 for($n=1;$n<=$p16;$n++)







														 {		



														   $mid=$cp[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p17++;



															 $cq[$p17]=$member_id;



															?>

																	<tr>

<td><? echo $p17;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p17;?></td></tr>																	

																		





<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-18</font></b></td><td><? if($direct_join>5){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p18=0;



$total_amt=0;







$countt2=0;











													if($p17>0)







														{



														



													 for($n=1;$n<=$p17;$n++)







														 {		



														   $mid=$cq[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p18++;



															 $crr[$p18]=$member_id;



															?>

																	<tr>

<td><? echo $p18;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p18;?></td></tr>

							



	<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-19</font></b></td><td><? if($direct_join>6){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p19=0;



$total_amt=0;







$countt2=0;











													if($p18>0)







														{



														



													 for($n=1;$n<=$p18;$n++)







														 {		



														   $mid=$crr[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p19++;



															 $crq[$p19]=$member_id;



															?>

																	<tr>

<td><? echo $p19;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p19;?></td></tr>

							

																		





	<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-20</font></b></td><td><? if($direct_join>6){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p20=0;



$total_amt=0;







$countt2=0;











													if($p19>0)







														{



														



													 for($n=1;$n<=$p19;$n++)







														 {		



														   $mid=$crq[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p20++;



															 $crqq[$p20]=$member_id;



															?>

																	<tr>

<td><? echo $p20;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p20;?></td></tr>

	

	

	<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-21</font></b></td><td><? if($direct_join>6){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p21=0;



$total_amt=0;







$countt2=0;











													if($p20>0)







														{



														



													 for($n=1;$n<=$p20;$n++)







														 {		



														   $mid=$crqq[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p21++;



															 $crqr[$p21]=$member_id;



															?>

																	<tr>

<td><? echo $p21;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p21;?></td></tr>

					

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-22</font></b></td><td><? if($direct_join>7){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p22=0;



$total_amt=0;







$countt2=0;











													if($p21>0)







														{



														



													 for($n=1;$n<=$p21;$n++)







														 {		



														   $mid=$crqr[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p22++;



															 $crqt[$p22]=$member_id;



															?>

																	<tr>

<td><? echo $p22;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p22;?></td></tr>

					

					

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-23</font></b></td><td><? if($direct_join>7){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>



					



					



				  </tr>	



					



	<?	







													$p23=0;



$total_amt=0;







$countt2=0;











													if($p22>0)







														{



														



													 for($n=1;$n<=$p22;$n++)







														 {		



														   $mid=$crqt[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p23++;



															 $crqp[$p23]=$member_id;



															?>

																	<tr>

<td><? echo $p23;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p23;?></td></tr>

					

					

					

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-24</font></b></td><td><? if($direct_join>7){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p24=0;



$total_amt=0;







$countt2=0;











													if($p23>0)







														{



														



													 for($n=1;$n<=$p23;$n++)







														 {		



														   $mid=$crqp[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p24++;



															 $crqo[$p24]=$member_id;



															?>

																	<tr>

<td><? echo $p24;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p24;?></td></tr>

					

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-25</font></b></td><td><? if($direct_join>8){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p25=0;



$total_amt=0;







$countt2=0;











													if($p24>0)







														{



														



													 for($n=1;$n<=$p24;$n++)







														 {		



														   $mid=$crqo[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p25++;



															 $crqop[$p25]=$member_id;



															?>

																	<tr>

<td><? echo $p25;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p25;?></td></tr>	

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-26</font></b></td><td><? if($direct_join>8){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p26=0;



$total_amt=0;







$countt2=0;











													if($p25>0)







														{



														



													 for($n=1;$n<=$p25;$n++)







														 {		



														   $mid=$crqop[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p26++;



															 $crsvn[$p26]=$member_id;



															?>

																	<tr>

<td><? echo $p26;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p26;?></td></tr>	

					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-27</font></b></td><td><? if($direct_join>8){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p27=0;



$total_amt=0;







$countt2=0;











													if($p26>0)







														{



														



													 for($n=1;$n<=$p26;$n++)







														 {		



														   $mid=$crsvn[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p27++;



															 $creght[$p27]=$member_id;



															?>

																	<tr>

<td><? echo $p27;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p27;?></td></tr>					

					<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-28</font></b></td><td><? if($direct_join>9){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p28=0;



$total_amt=0;







$countt2=0;











													if($p27>0)







														{



														



													 for($n=1;$n<=$p27;$n++)







														 {		



														   $mid=$creght[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p28++;



															 $crnine[$p28]=$member_id;



															?>

																	<tr>

<td><? echo $p28;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p28;?></td></tr>					
		


<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-29</font></b></td><td><? if($direct_join>9){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p29=0;



$total_amt=0;







$countt2=0;











													if($p28>0)







														{



														



													 for($n=1;$n<=$p28;$n++)







														 {		



														   $mid=$crnine[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p29++;



															 $crten[$p29]=$member_id;



															?>

																	<tr>

<td><? echo $p29;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p29;?></td></tr>					
		
				
				
				<tr>



					<td height="23" align="left" valign="middle" colspan="6"><b><font size="+1" color="#CBA967">Level-30</font></b></td><td><? if($direct_join>9){?><b><font size="+1" color="#009900">Open</font></b><? }else{ ?><b><font size="+1" color="#CC0000">Lock</font></b><? } ?></td>





					



					



				  </tr>	



					



	<?	







													$p30=0;



$total_amt=0;







$countt2=0;











													if($p29>0)







														{



														



													 for($n=1;$n<=$p29;$n++)







														 {		



														   $mid=$crten[$n];



											$query = $mysqli->prepare("select member_id,id,name,joining_date,active_date,pack_id,intro_id,active,rwallet from member where intro_id=?");



											$query->bind_param('s', $mid);



											$query->execute();



											$query->bind_result($member_id,$id,$name,$joining_date,$active_date,$pack_id,$mintro_id,$active,$rwallet);



											 







															 while ($query->fetch())







															  {



															$countt2++;



															   $chan_mem=$member_id; 



 $name=$name; 

															   $joining_date=$joining_date; 

															   $active_date=$active_date; 

															   $pack_id=$pack_id;

															    $active=$active;

																$rwallet=$rwallet;



																$p30++;



															 $creleven[$p30]=$member_id;



															?>

																	<tr>

<td><? echo $p30;?></td>



<td><? echo $chan_mem;?></td>



<td><? echo $name;?></td>



<td><? echo $joining_date;?></td>



<td><? echo $active_date;?></td>



<td>$ <? echo $rwallet;?></td>

<td><? if($active=="y"){ echo "Active";}else{echo "In-Active";}?></td>

</tr>

															

															

															

															<?





																







															   }

															   

												

															}







														}







										?>







											<tr>



					<td height="23" align="left" valign="middle"><b>Total User </b></td>

					<td colspan="7"><? echo $p30;?></td></tr>					
					

															

				</table>

									

									

                                        

                                    </div>



                                    



                                </div>

                            </div>

                        </div>



                    

                



                    



                    



                </div>