<?php
if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)){
echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";
echo "<meta http-equiv=\"refresh\" content=\"2; url=../index.php\">";
exit();} 
?>
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Genealogy
      </h1>
      <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="breadcrumb-item active">Genealogy</li>
      </ol>
    </section>


    <section class="content">
    
    
    <div class="row">
            <div class="col-md-6" style="margin-bottom:15px;">
                <div class="input-group p-b-10">
                    <input id="ref_url" class="form-control" name="ref_url" type="text" value="https://<?php echo $domain; ?>/?<?php echo $reffa; ?>=<?php echo $user_session; ?>">
                    <span class="input-group-btn">
                        <button id="copy-ref-url" class="btn btn-<?php echo $buttone; ?>" type="button" style="height:46px;">Copy Reff URL</button>
                    </span>
                </div>
                </div>

            </div>
<script>
  function confirmActionxvcc(){
   swal('Oops...', 'Upline inactive, You can not add members under the user inactive!', 'error').done();
 
}
</script>
<script>
  function confirmActionxvccc(){
   swal('Oops...', 'Upline not found, you can not add users without referrers!', 'error').done();
 
}
</script>
<script>
  function confirmActionreg(){
   swal('Oops...', 'Registration of new members being disabled by an administrator!', 'error').done();
 
}
</script>
<style type="text/css">
.imgFloats	{ padding:3px; background:#fff; box-shadow:0 2px 12px #000000; 
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
-ms-border-radius: 50px	;}

.imgFloatsx	{ padding:3px; background:#fff; box-shadow:0 2px 12px #FF0000; 
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
-ms-border-radius: 50px	;}

.imgFloatsy	{ padding:3px; background:#fff; box-shadow:2px 2px 15px #000000; 
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
-ms-border-radius: 50px	;}

</style>
        <style type="text/css">
#pingul {
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 5px 5px 5px black;
-webkit-box-shadow: 5px 5px 5px black;
box-shadow: 5px 5px 5px black;
width:100%;
}
</style>

<?php
if($db->dataku("status", $user_session) == 0 || $db->dataku("blokir", $user_session) == 1) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'></button>".$LANG["status0"]."</div>";
}else{
	
$tgl_skre = (date("Y-m-d"));
$dtfrome = "$tgl_skre 00:00:00";
$dttoe = "$tgl_skre 23:59:59";	
?>
<?
if(!$awal) $awal = $user_session;
?>
<?
if(isset($_GET["mid"])){ 
$getmid = $_GET["mid"];
$mid = $_GET["mid"];
}else {
$mid = $user_session;
}

$sql_sp3 = mysql_query("select username from upline where username='".$mid."'");
$ada_sp3 = mysql_num_rows($sql_sp3);
if(!$ada_sp3){
	echo "<div class='alert alert-danger'><strong>Error!</strong> Username ".$mid." Not Found.</div>";
}else{
	



$queryupline = "SELECT username FROM upline WHERE 
username='$getmid' and upline0='$user_session' or 
username='$getmid' and upline1='$user_session' or username='$getmid' and upline2='$user_session' or 
username='$getmid' and upline3='$user_session' or username='$getmid' and upline4='$user_session' or 
username='$getmid' and upline5='$user_session' or username='$getmid' and upline6='$user_session' or 
username='$getmid' and upline7='$user_session' or username='$getmid' and upline8='$user_session' or 
username='$getmid' and upline9='$user_session' or username='$getmid' and upline10='$user_session' or 
username='$getmid' and upline11='$user_session' or username='$getmid' and upline12='$user_session' or 
username='$getmid' and upline13='$user_session' or username='$getmid' and upline14='$user_session' or 
username='$getmid' and upline15='$user_session' or username='$getmid' and upline16='$user_session' or 
username='$getmid' and upline17='$user_session' or username='$getmid' and upline18='$user_session' or 
username='$getmid' and upline19='$user_session' or username='$getmid' and upline20='$user_session' or 
username='$getmid' and upline21='$user_session' or username='$getmid' and upline22='$user_session' or 
username='$getmid' and upline23='$user_session' or username='$getmid' and upline24='$user_session' or 
username='$getmid' and upline25='$user_session' or username='$getmid' and upline26='$user_session' or 
username='$getmid' and upline27='$user_session' or username='$getmid' and upline28='$user_session' or 
username='$getmid' and upline29='$user_session' or username='$getmid' and upline30='$user_session' or 
username='$getmid' and upline31='$user_session' or username='$getmid' and upline32='$user_session' or 
username='$getmid' and upline33='$user_session' or username='$getmid' and upline34='$user_session' or 
username='$getmid' and upline35='$user_session' or username='$getmid' and upline36='$user_session' or 
username='$getmid' and upline37='$user_session' or username='$getmid' and upline38='$user_session' or 
username='$getmid' and upline39='$user_session' or username='$getmid' and upline40='$user_session' or 
username='$getmid' and upline41='$user_session' or username='$getmid' and upline42='$user_session' or 
username='$getmid' and upline43='$user_session' or username='$getmid' and upline44='$user_session' or 
username='$getmid' and upline45='$user_session' or username='$getmid' and upline46='$user_session' or 
username='$getmid' and upline47='$user_session' or username='$getmid' and upline48='$user_session' or 
username='$getmid' and upline49='$user_session' or username='$getmid' and upline50='$user_session' or 
username='$getmid' and upline51='$user_session' or username='$getmid' and upline52='$user_session' or 
username='$getmid' and upline53='$user_session' or username='$getmid' and upline54='$user_session' or 
username='$getmid' and upline55='$user_session' or username='$getmid' and upline56='$user_session' or 
username='$getmid' and upline57='$user_session' or username='$getmid' and upline58='$user_session' or 
username='$getmid' and upline59='$user_session' or username='$getmid' and upline60='$user_session' or 
username='$getmid' and upline61='$user_session' or username='$getmid' and upline62='$user_session' or 
username='$getmid' and upline63='$user_session' or username='$getmid' and upline64='$user_session' or 
username='$getmid' and upline65='$user_session' or username='$getmid' and upline66='$user_session' or 
username='$getmid' and upline67='$user_session' or username='$getmid' and upline68='$user_session' or 
username='$getmid' and upline69='$user_session' or username='$getmid' and upline70='$user_session' or 
username='$getmid' and upline71='$user_session' or username='$getmid' and upline72='$user_session' or 
username='$getmid' and upline73='$user_session' or username='$getmid' and upline74='$user_session' or 
username='$getmid' and upline75='$user_session' or username='$getmid' and upline76='$user_session' or 
username='$getmid' and upline77='$user_session' or username='$getmid' and upline78='$user_session' or 
username='$getmid' and upline79='$user_session' or username='$getmid' and upline80='$user_session' or 
username='$getmid' and upline81='$user_session' or username='$getmid' and upline82='$user_session' or 
username='$getmid' and upline83='$user_session' or username='$getmid' and upline84='$user_session' or 
username='$getmid' and upline85='$user_session' or username='$getmid' and upline86='$user_session' or 
username='$getmid' and upline87='$user_session' or username='$getmid' and upline88='$user_session' or 
username='$getmid' and upline89='$user_session' or username='$getmid' and upline90='$user_session' or 
username='$getmid' and upline91='$user_session' or username='$getmid' and upline92='$user_session' or 
username='$getmid' and upline93='$user_session' or username='$getmid' and upline94='$user_session' or 
username='$getmid' and upline95='$user_session' or username='$getmid' and upline96='$user_session' or 
username='$getmid' and upline97='$user_session' or username='$getmid' and upline98='$user_session' or 
username='$getmid' and upline99='$user_session' or username='$getmid' and upline100='$user_session'"; 
$resultupline = mysql_query($queryupline);
$ada_upline = mysql_num_rows($resultupline); 

if(isset($_GET["mid"]) && !$ada_upline){	
echo "<div class='alert alert-danger'><strong>Forbiden Access!</strong> Username ".$_GET["mid"]." tidak ada dalam jaringan Anda.</div>";
				}else{
?>
  <div class="row">
            	<div class="col-md-12">
                
                  <div class="box box-solid bg-dark">
            <div class="box-header with-border">
              <h3 class="box-title">User <?= $mid; ?></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
				<div class="table-responsive">
				  <table id="" class="table table-bordered table-hover display nowrap margin-top-10 w-p100">            


              <thead>
                <tr>
                 <th>Username</th> 
							<th>Name</th>
                            <th>Refferal</th>
							<th>Upline</th>
							<th>Left</th>
							<th>Right</th>
							<th>Status</th>
							</tr>
                </tr>
              </thead>
              <tbody>
              <tr>
       	<td><?= $mid; ?></font></td>
							<td><?= $db->dataku("nama", $mid); ?></td>
							<td><?= $db->dataku("sponsor", $mid); ?></td>
							<td><?= $db->dataupline("upline0", $mid); ?></td>
							<td><?= memberL1($mid, $dtgl); ?></td>
							<td><?= memberL2($mid, $dtgl); ?></td>
							<td><? $sts = $db->dataku("status", $mid);
							
							if($sts>0){
				echo "<span class='label label-success'>Active</span>";
			} else {
				echo "<span class='label label-danger'>Inactive</span>";
			}		
							?></td>
                        </tr>
               
              </tbody>
            </table>
                        </div>
                    </div>
                </div>
			</div>
			</div>
    
    
    
    
    
    
    
    
    
    
    
                                        
                                     
                                     
                                     
                                     
                                     
                                     
                                     
                                     
    <div style="width:100%; overflow:scroll;">                               
                                     
                                     

<table width="900px" border="0" align="center" cellpadding="0" cellspacing="0">
  
  
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2" align="center">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2" align="center">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="16" align="center">
 <div class="form-group">
													<label>Pilih Member</label> 
                                      <select class="form-control"  onchange="location =  this.options[this.selectedIndex].value" style="width:100%; max-width:300px;">
                                      
                   <option value='index.php?go=genealogi'><?php echo $user_session; ?> (Anda)</option>
                                     
                                            
                                            <?php
											
											
					$sql=mysql_query("select username from upline where upline0='".$user_session."' or upline1='".$user_session."' or upline2='".$user_session."' or upline3='".$user_session."' or upline4='".$user_session."' or upline5='".$user_session."' or upline6='".$user_session."' or upline7='".$user_session."' or upline8='".$user_session."' or upline9='".$user_session."' or upline10='".$user_session."' or upline11='".$user_session."' or upline12='".$user_session."' or upline13='".$user_session."' or upline14='".$user_session."' or upline15='".$user_session."' or upline16='".$user_session."' or upline17='".$user_session."' or upline18='".$user_session."' or upline19='".$user_session."' or upline20='".$user_session."' or upline21='".$user_session."' or upline22='".$user_session."' or upline23='".$user_session."' or upline24='".$user_session."' or upline25='".$user_session."' or upline26='".$user_session."' or upline27='".$user_session."' or upline28='".$user_session."' or upline29='".$user_session."' or upline30='".$user_session."' or upline31='".$user_session."' or upline32='".$user_session."' or upline33='".$user_session."' or upline34='".$user_session."' or upline35='".$user_session."' or upline36='".$user_session."' or upline37='".$user_session."' or upline38='".$user_session."' or upline39='".$user_session."' or upline40='".$user_session."' or upline41='".$user_session."' or upline42='".$user_session."' or upline43='".$user_session."' or upline44='".$user_session."' or upline45='".$user_session."' or upline46='".$user_session."' or upline47='".$user_session."' or upline48='".$user_session."' or upline49='".$user_session."' or upline50='".$user_session."' or upline51='".$user_session."' or upline52='".$user_session."' or upline53='".$user_session."' or upline54='".$user_session."' or upline55='".$user_session."' or upline56='".$user_session."' or upline57='".$user_session."' or upline58='".$user_session."' or upline59='".$user_session."' or upline60='".$user_session."' or upline61='".$user_session."' or upline62='".$user_session."' or upline63='".$user_session."' or upline64='".$user_session."' or upline65='".$user_session."' or upline66='".$user_session."' or upline67='".$user_session."' or upline68='".$user_session."' or upline69='".$user_session."' or upline70='".$user_session."' or upline71='".$user_session."' or upline72='".$user_session."' or upline73='".$user_session."' or upline74='".$user_session."' or upline75='".$user_session."' or upline76='".$user_session."' or upline77='".$user_session."' or upline78='".$user_session."' or upline79='".$user_session."' or upline80='".$user_session."' or upline81='".$user_session."' or upline82='".$user_session."' or upline83='".$user_session."' or upline84='".$user_session."' or upline85='".$user_session."' or upline86='".$user_session."' or upline87='".$user_session."' or upline88='".$user_session."' or upline89='".$user_session."' or upline90='".$user_session."' or upline91='".$user_session."' or upline92='".$user_session."' or upline93='".$user_session."' or upline94='".$user_session."' or upline95='".$user_session."' or upline96='".$user_session."' or upline97='".$user_session."' or upline98='".$user_session."' or upline99='".$user_session."' or upline100='".$user_session."' order by level asc");
					$ada_tckt = mysql_num_rows($sql);
					if($ada_tckt > 0) {
					while($sto=mysql_fetch_row($sql)) {
						
					  if($_GET["mid"] == $sto[0]){
		  $stttt = " selected='selected'";
	  }else{
		  $stttt = "";
	  }	
						
					?>
          
          <option value='index.php?go=genealogi&mid=<?php echo $sto[0]; ?>'<?php echo $stttt; ?>><?php echo $sto[0]; ?> (<?= $db->dataku("nama", $sto[0]); ?>)</option>
          
          
          <?php
					}
					}else{ ?>
				<option value="" style='background-color:#B50404; color:#FFF;'>Tidak Ada Downline</option>
			<?php		}
					
					
					?>	 
                   
         </select>                         
                       </div>              
    </td>
   
  </tr>
  <tr>
    <td colspan="11"></td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2" align="center">    </td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
        <div id="pingul">
        
        
        
   <?
$namae = $db->dataku("nama", $mid);
$kota = $db->dataku("kota", $mid);
$spne = $db->dataku("sponsor", $mid);
$stsk = $db->dataku("status", $mid);
$stage = $db->dataku("stage", $mid);
$pkt = $db->dataupline("paket", $mid);
$tgljoin = $db->dataku("tgl", $mid);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek = "../images/free.jpg";
}



$totallote=total_lot_member($mid);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $mid);
$adafoto = $db->dataku("foto", $mid);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $mid<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($mid, $dtgl)." ID<br>Right: ".memberL2($mid, $dtgl)." ID<br></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $mid<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($mid, $dtgl)." ID<br>Right: ".memberL2($mid, $dtgl)." ID<br></div>";
		} 	

 ?>       
   
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><?php echo $mid;?></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		  <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($mid, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($mid, $dtgl);?></td>
      </tr>
    </table>
    </div>
    </td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="68">&nbsp;</td>
    <td width="69" style="border-left-style: solid; border-left-width: 1; border-right-width: 1; border-top-width: 1">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="70" rowspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="68">&nbsp;</td>
    <td width="70" style="border-left-style: solid; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td colspan="2" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1" colspan="2">&nbsp;</td>
    <td colspan="2" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1" width="68">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
    
    
    <div id="pingul">
    
    <?
  $stskne = $db->dataku("status", $mid);
$db->select("L1, L2", "upline", "username='$mid'");
$idki = $db->result(0, "L1");
$namae = $db->dataku("nama", $idki);
$kota = $db->dataku("kota", $idki);
$spne = $db->dataku("sponsor", $idki);
$stsk = $db->dataku("status", $idki);
$stage = $db->dataku("stage", $idki);
$pkt = $db->dataupline("paket", $idki);
$tgljoin = $db->dataku("tgl", $idki);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek1 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek1 = "../images/free.jpg";
}

$totallote=total_lot_member($idki);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}
	
$upne = $db->dataupline("upline0", $idki);
$adafoto = $db->dataku("foto", $idki);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki, $dtgl)." ID<br>Right: ".memberL2($idki, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki, $dtgl)." ID<br>Right: ".memberL2($idki, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	


if($idki) {
?>


    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idki;?>"><?php echo $idki;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		 <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idki, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idki, $dtgl);?></td>
      </tr>
    </table>
    
 <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$mid&pos=L1&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>  
    
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    
 <?php }  ?>  
    </div>
</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
    
    
    
    
     
    
    
    <div id="pingul">
    
    
    <?
  $stskne = $db->dataku("status", $mid);
$db->select("L1, L2", "upline", "username='$mid'");
$idka = $db->result(0, "L2");
$namae = $db->dataku("nama", $idka);
$kota = $db->dataku("kota", $idka);
$spne = $db->dataku("sponsor", $idka);
$stsk = $db->dataku("status", $idka);
$stage = $db->dataku("stage", $idka);
$pkt = $db->dataupline("paket", $idka);
$tgljoin = $db->dataku("tgl", $idka);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek2 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek2 = "../images/free.jpg";
}
	
$totallote=total_lot_member($idka);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $idka);
$adafoto = $db->dataku("foto", $idka);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka, $dtgl)." ID<br>Right: ".memberL2($idka, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka, $dtgl)." ID<br>Right: ".memberL2($idka, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	

 
  if($idka) {
 ?>   
    
    
    
    
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idka;?>"><?php echo $idka;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		  <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idka, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idka, $dtgl);?></td>
      </tr>
    </table>
    
   
    <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$mid&pos=L2&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>    
     
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    <?php } ?>
    
    
    
    
    
    
    
    
    
    </div>
</td>
    <td colspan="2">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="68" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="70">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="67" rowspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td width="68" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="70">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="73" rowspan="2">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td width="63" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="75" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td colspan="2" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="71" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td colspan="2" style="border-left-width: 1; border-right-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="69" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="69" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td colspan="2" style="border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="65" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1">&nbsp;</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td width="85">&nbsp;</td>
    <td colspan="2">
    
    
    <div id="pingul">
    
    <?
	
if(!$idki) {
	
   $regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvccc()'></a>";
   ?>
   <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
   
   <?php
	} else {	
	
	
  $stskne = $db->dataku("status", $idki);
$db->select("L1, L2", "upline", "username='$idki'");
		$idki2 = $db->result(0, "L1");
$namae = $db->dataku("nama", $idki2);
$kota = $db->dataku("kota", $idki2);
$spne = $db->dataku("sponsor", $idki2);
$stsk = $db->dataku("status", $idki2);
$stage = $db->dataku("stage", $idki2);
$pkt = $db->dataupline("paket", $idki2);
$tgljoin = $db->dataku("tgl", $idki2);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek4 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek4 = "../images/free.jpg";
}
 

$totallote=total_lot_member($idki2);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $idki2);
$adafoto = $db->dataku("foto", $idki2);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki2<br>Nama: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki2, $dtgl)." ID<br>Right: ".memberL2($idki2, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki2'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki2<br>Nama: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki2, $dtgl)." ID<br>Right: ".memberL2($idki2, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki2'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	

 
  if($idki2) { ?>
    
    
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
     <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idki2;?>"><?php echo $idki2;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		  <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idki2, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idki2, $dtgl);?></td>
      </tr>
    </table>
    
    <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$idki&pos=L1&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>    
     
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    <?php } } ?>
    
    
    
    
    </div>
</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
    
    
    
    
    
    
    
    
    
    <div id="pingul">
    
<?
	
if(!$idki) {
	
   $regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvccc()'></a>";
   ?>
   <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
   
   <?php
	} else {	
	
	
  $stskne = $db->dataku("status", $idki);
$db->select("L1, L2", "upline", "username='$idki'");
		$idki2b = $db->result(0, "L2");
$namae = $db->dataku("nama", $idki2b);
$kota = $db->dataku("kota", $idki2b);
$spne = $db->dataku("sponsor", $idki2b);
$stsk = $db->dataku("status", $idki2b);
$stage = $db->dataku("stage", $idki2b);
$pkt = $db->dataupline("paket", $idki2b);
$tgljoin = $db->dataku("tgl", $idki2b);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek4 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek4 = "../images/free.jpg";
}


$totallote=total_lot_member($idki2b);
if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $idki2b);
$adafoto = $db->dataku("foto", $idki2b);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki2b<br>Nama: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki2b, $dtgl)." ID<br>Right: ".memberL2($idki2b, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki2b'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idki2b<br>Nama: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idki2b, $dtgl)." ID<br>Right: ".memberL2($idki2b, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idki2b'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	

 
  if($idki2b) { ?>
    
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
     <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idki2b;?>"><?php echo $idki2b;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		  <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idki2b, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idki2b, $dtgl);?></td>
      </tr>
    </table>
    
     <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$idki&pos=L2&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>    
     
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    <?php } } ?>
    
    
    </div>
</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
    
    
    
    <div id="pingul">
    
   <?
	
if(!$idka) {
	
   $regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvccc()'></a>";
   ?>
   <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
   
   <?php
	} else {	
  $stskne = $db->dataku("status", $idka);
$db->select("L1, L2", "upline", "username='$idka'");
		$idka2 = $db->result(0, "L1");
$namae = $db->dataku("nama", $idka2);
$kota = $db->dataku("kota", $idka2);
$spne = $db->dataku("sponsor", $idka2);
$stsk = $db->dataku("status", $idka2);
$stage = $db->dataku("stage", $idka2);
$pkt = $db->dataupline("paket", $idka2);
$tgljoin = $db->dataku("tgl", $idka2);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek5 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek5 = "../images/free.jpg";
}


$totallote=total_lot_member($idka2);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $idka2);
$adafoto = $db->dataku("foto", $idka2);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka2<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka2, $dtgl)." ID<br>Right: ".memberL2($idka2, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka2'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka2<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka2, $dtgl)." ID<br>Right: ".memberL2($idka2, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka2'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	

 
  if($idka2) { ?>
    
    
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idka2;?>"><?php echo $idka2;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		  <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idka2, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idka2, $dtgl);?></td>
      </tr>
    </table>
    <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$idka&pos=L1&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>    
     
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    <?php } } ?>
    </div>
</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">
    
    
    
    
    <div id="pingul">
    
    <?
	
if(!$idka) {
	
   $regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvccc()'></a>";
   ?>
   <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
   
   <?php
	} else {	

  $stskne = $db->dataku("status", $idka);
$db->select("L1, L2", "upline", "username='$idka'");
		$idka2b = $db->result(0, "L2");
$namae = $db->dataku("nama", $idka2b);
$kota = $db->dataku("kota", $idka2b);
$spne = $db->dataku("sponsor", $idka2b);
$stsk = $db->dataku("status", $idka2b);
$stage = $db->dataku("stage", $idka2b);
$pkt = $db->dataupline("paket", $idka2b);
$tgljoin = $db->dataku("tgl", $idka2b);
if($stsk > 0){
$statusk = "Member Aktif";
$bgnek6 = "../images/silver.jpg";
}else{
$statusk = "Member Free";
$bgnek6 = "../images/free.jpg";
}


$totallote=total_lot_member($idka2b);

if($totallote > 0){
$ttlote=point($totallote);
}else{
$ttlote="---";
}

$upne = $db->dataupline("upline0", $idka2b);
$adafoto = $db->dataku("foto", $idka2b);
	$dirfoto = "./images/$adafoto";
	if (!empty($adafoto) && (file_exists($dirfoto))){
		$gambar = "<a href='./images/".$adafoto."' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka2b<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka2b, $dtgl)." ID<br>Right: ".memberL2($idka2b, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka2b'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		}
	else
		{
		$gambar = "<a href='../images/nopic.png' class='highslide' onclick='return hs.expand(this)'><img src='../images/views.png' width='64' onMouseover=\"ddrivetip('Click Here For Details')\" onMouseout='hideddrivetip()'></a><div class='highslide-caption'>Username: $idka2b<br>Name: $namae<br>Sponsor: $spne<br>Upline: $upne<br>Status: $statusk<br><br>Left: ".memberL1($idka2b, $dtgl)." ID<br>Right: ".memberL2($idka2b, $dtgl)." ID<br><br><a href='?go=genealogi&mid=$idka2b'><strong><img src='../images/bulltx.png'>&nbsp;View Genealogy</strong></a></div>";
		} 	

 
  if($idka2b) { ?>
    
    
    <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen.jpg'><br /><font style="text-transform:uppercase; font-weight:bold;"><a href="?go=genealogi&mid=<?php echo $idka2b;?>"><?php echo $idka2b;?></a></font><br />
          <?php echo formatglxxy($tgljoin);?><br />
		 <?php echo $gambar;?><br />&nbsp;&nbsp;Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right</td>
      </tr>
      <tr>
       <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"><?php echo memberL1($idka2b, $dtgl);?></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"><?php echo memberL2($idka2b, $dtgl);?></td>
      </tr>
    </table>
    <?php } else { 
 
 if($exptransfer == 1){
	if($stskne == 1) { 
	$regnow="<a href='?go=register&sp=$user_session&up=$idka&pos=L2&dt=1'><img src='../images/add_user.png' onMouseover=\"ddrivetip('Click here to register new member')\" onMouseout='hideddrivetip()'></a>";
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionxvcc()'></a>";
	}
	}else{
	$regnow="<a href='#'><img src='../images/add_users.png' onclick='return confirmActionreg()'></a>";
	}	
 ?>    
     
     <table width="100%" height="177" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="padding: 0; border-collapse: collapse; font-size: 12px; color: #FFF;">
      <tr>
              <td height="158" colspan="2" align="center" valign="top" background='../images/gen2.jpg'><br />
               <?php echo $regnow;?>
                  </td>
      </tr>
      <tr>
        <td width="49%" height="19" align="center" valign="middle" bgcolor="#CCCCCC" style="color:#222222"></td>
        <td width="51%" height="19" align="center" valign="middle" bgcolor="#DFDFDF" style="color:#222222"></td>
      </tr>
    </table>
    <?php } } ?>
    </div>
</td>
    <td width="127">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table><br>
                                        
    </div>                                    

<?php } ?>
<?php } ?>
<?php } ?>
</section>