<?php 
include('config.php');

$id = $_POST['id'];

$sql = "SELECT * FROM customer WHERE cust_autoid = '$id'";
$xdcon = $conn->query($sql) or die($sql);
$rs= $xdcon->fetch_assoc();

?>

<div>
<table class="table tl">
	<tr>
    	<td colspan="4"><b>Profil Customer</b></td>
    </tr>
	<tr>
		<td style="width:180px">Nama</td>
    	<td><?php echo $rs['cust_name']?></td>
	</tr>
	<tr>
    	<td>No Telp / HP</td>
        <td><?php echo $rs['cust_phoneno']?></td>
    </tr>
	<tr>
    	<td>Email</td>
        <td><?php echo $rs['cust_email']?></td>
    </tr>
	<tr>
    	<td>Alamat</td>
        <td><?php echo $rs['cust_addr']?></td>
    </tr>
	<tr>
    	<td></td>
        <td>
			<?php echo $kecm_name[$rs['kecm_autoid']]?>
            <br />
            <?php echo $ktmd_name[$rs['ktmd_autoid']]?>
            <br />
			<?php echo $prop_name[$rs['prop_autoid']]?>
            <?php echo $rs['cust_kodepos']?>
        </td>
    </tr>
 	<tr>
    	<td>Tanggal Daftar</td>
        <td><?php echo $rs['cust_dateregister']?></td>
    </tr>
   	<tr>
	   	<td>Verfikasi Email</td>
        <td>
        <?php if($rs['cust_status']==1){echo "Sudah Aktifasi";}else{ echo "Belum Aktifkasi";}?>
        </td>
   </tr>
<tr>
	<td colspan="2">
		<input type="button" class="dl-button" value="Tutup" onclick="close_pop()" />
    </td>
</tr>
</table>
</div>