<?
$sql=mysql_query("select kodeord from rpoin10 where kodeord like 'RD8%' order by id desc");
		if(mysql_num_rows($sql) > 0) {
		$mbr = mysql_fetch_row($sql);
		$last_id = rand(1111, 9999);
		} else {
		$last_id = rand(1111, 9999);
		}		
		$kode = "RD8";
		$new_id = ($last_id + 1);
		$new_id2 = $kode.$new_id;
		$kodeord = $new_id2;
?>
<form action="?m=ambilrpoin10&amp;actions=submit" method="post" name="daftar" id="daftar">
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="formjoin">
    <tr> 
      <td height="45" colspan="2" align="center" bgcolor="#EBEBEB"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">KLAIM BONUS LEVEL 10</font></strong></td>
    </tr>
    <tr>
      <td width="49%"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Username </font></div></td>
      <td width="51%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
          <?= $kodeord; ?>
          <input name="kodeord" type="hidden" id="kodeord" value="<?= $kodeord; ?>" />
<?= $db->dataku("username", $user_session); ?>
            <input name="id" type="hidden" id="id" value="<?= $id; ?>" />
            <input name="username" type="hidden" id="username" value="<?= $db->dataku("username", $user_session); ?>" />
            <input name="off" type="hidden" id="off" value="<?= $off; ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Jenis </font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            
         Komisi Level -10</font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; Bonus </font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= rupiah($db->config("rpoin10")); ?>
            <input name="rpoin10" type="hidden" id="rpoin10" value="<?= $db->config("rpoin10"); ?>" />
      </font></td>
    </tr>
    <tr> 
      <td height="33" colspan="2" align="center">
        <p align="center"></td>
    </tr>
    <tr> 
      <td colspan="2"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        <input type="submit" name="Submit" value="KLAIM BONUS LEVEL-10 SAYA SEKARANG" class="tombol" /> 
      </font></div></td>
    </tr>
  </table>
</form>



                 