<?
$sql=mysql_query("select kodeord from rpoin5 where kodeord like 'RD5%' 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 = "RD5";
		$new_id = ($last_id + 1);
		$new_id2 = $kode.$new_id;
		$kodeord = $new_id2;
?>
<form action="?m=ambilrpoin5&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"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>FORM 
        REQUEST PENCAIRAN REWARD </strong> </font></td>
    </tr>

    <tr> 

      <td width="49%">

        <div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Kode Request  </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; ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Username </font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
        <?= $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 Reward</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            
         Reward-5</font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; Bonus Reward</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->config("rpoin5"); ?>
            <input name="rpoin5" type="hidden" id="rpoin5" value="<?= $db->config("rpoin5"); ?>" />
      </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="CAIRKAN REWARD-5 SAYA SEKARANG" class="tombol" /> 
      </font></div></td>
    </tr>
  </table>
</form>



                 