<?
	if($user_status > 0 ) {
?>

<?
//*********************************************************************************
// Original Website By : Niadesain.com Di Jual melalui http://niadesain.com
// Please Call / SMS : 081384745483 (support@niadesain.com)
// Niadesain.com - Jasa Pembuatan Website Paling Murah dan Paling Lengkap
//*********************************************************************************
?>
<div id="module">
  <table width="575" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="35" colspan="3"><div align="center"><font color="#FFFFFF"><strong><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">PROFILE MEMBER </font></strong></font></div></td>
    </tr>
    <tr>
      <td width="10">&nbsp;</td>
      <td valign="top"><p align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        <?
switch ($page) {
	default :
?>
      </font></p>
        <p align="center">Rekan
              <?= $db->dataku("nama", $user_session); ?>
        Yth, Halaman ini untuk Update Profile Anda </p>
        <form name="form1" method="post" action="?m=profileok&page=update">
          <table width="90%"  border="0" align="center" cellpadding="4" cellspacing="0" class="bordertable">
            <tr>
              <td width="27%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Nama Lengkap </font></td>
              <td width="73%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:<strong>
                <input name="nama" type="text" class="form" id="nama"  size="30" value="<?= $db->dataku("nama", $user_session); ?>">
              </strong></font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Tanggal Lahir </font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="tglahir" type="text" class="form" id="tglahir"  size="12" value="<?= $db->dataku("tglahir", $user_session); ?>">
        (format dd/mm/yyyy) </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Jenis Kelamin </font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <?
		$jk = $db->dataku("kelamin", $user_session);
		if($jk == "Pria") {
			$check = "checked";
		} else {
			$check2 = "checked";
		}
	?>
                    <input name="sex" type="radio" value="Pria" <?= $check; ?>>
                    <font color="#000000">Pria &nbsp;&nbsp;
                    <input name="sex" type="radio" value="Wanita" <?= $check2; ?>>
        Wanita</font></font></td>
            </tr>
            <tr>
              <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Alamat Lengkap </font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
                    <textarea name="alamat" cols="40" rows="3" class="form" id="alamat"><?= $db->dataku("alamat", $user_session); ?>
            </textarea>
              </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Kota</font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="kota" type="text" class="form" id="kota" value="<?= $db->dataku("kota", $user_session); ?>" size="30">
              </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Propinsi</font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="propinsi" type="text" class="form" id="propinsi" value="<?= $db->dataku("propinsi", $user_session); ?>" size="20">
        Kode Pos :
        <input name="kodepos" type="text" class="form" id="kodepos" value="<?= $db->dataku("kodepos", $user_session); ?>" size="6">
              </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Telepon</font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="phone" type="text" class="form" id="phone" value="<?= $db->dataku("phone", $user_session); ?>" size="15">
              </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">HP</font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="hp" type="text" class="form" id="hp" value="<?= $db->dataku("hp", $user_session); ?>" size="15">
              </font></td>
            </tr>
            <tr>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">E-mail</font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
                    <input name="email" type="text" class="form" id="email" value="<?= $db->dataku("email", $user_session); ?>" size="30">
              </font></td>
            </tr>
            <tr valign="top">
              <td colspan="2" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DATA BANK ANDA</strong>&nbsp;&nbsp;</font></td>
            </tr>
            <tr>
              <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bank, Cabang, No. Rekening, Nama nasabah </font></td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
                    <textarea name="bank" cols="40" rows="3" class="form" id="bank"><?= $db->dataku("bank", $user_session); ?>
            </textarea>
              </font></td>
            </tr>
            <tr valign="top">
              <td align="center">&nbsp;</td>
              <td align="center">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;
                    <input name="submit" type="submit" class="tombol" value="UPDATE">
              </font></td>
            </tr>
            <tr>
              <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Catatan :</strong><br>
                </font>
                  <ul>
                    <li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Pastikan data bank anda benar, karena akan digunakan untuk mengirim penghasilan anda.</font></li>
                </ul></td>
            </tr>
          </table>
          <p>&nbsp;</p>
        </form>        <p align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        <?
	break;
	
	case update :
	$db->update("member", "nama='$nama', alamat='$alamat', kota='$kota', kodepos='$kodepos', propinsi='$propinsi', email='$email', phone='$phone', bank='$bank', ktp='$ktp', kelamin='$sex', hp='$hp', tglahir='$tglahir'", "username='$user_session'");
	
?>
</font></p>
        <div id="notice">
          <div align="center"><font color="#000066" size="5" face="Verdana, Arial, Helvetica, sans-serif"><strong>Data telah berhasil diupdate ! </strong></font></div>
        </div>
        <p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="?m=profile">Klik di sini untuk kembali</a></font></p>        
        <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
          <?
	break;
}
?>
        </font></p>
      <p align="center">&nbsp;</p></td>
      <td width="10">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
  </table>
  <h3 align="center">&nbsp;</h3>
  <h3 align="center">&nbsp;</h3>
  <font size="2" face="Verdana, Arial, Helvetica, sans-serif">  </font>
  <font size="2" face="Verdana, Arial, Helvetica, sans-serif">  </font>
<div id="notice"> 
    <div align="center"></div>
  </div>
  <font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font></div>
<?
} else {
echo "<meta http-equiv=\"refresh\" content=\"1; url=illegal.html\">";
}
?>