<?
//*********************************************************************************
// 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
//*********************************************************************************
?>
 
  <?
$sql=mysql_query("select kodeord from menu where kodeord like 'ORD%' order by id desc");
		if(mysql_num_rows($sql) > 0) {
		$mbr = mysql_fetch_row($sql);
		$last_id = substr($mbr[0], -7);
		} else {
		$last_id = 1000000;
		}		
		$kode = "ORD";
		$new_id = ($last_id + 1);
		$new_id2 = $kode.$new_id;
		$kodeord = $new_id2;
?>
<form action="?m=order&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 
        ORDER PIN</strong> <br>
        <span style="color: #F40D0D">(Minimal Order <strong>
        <?= $db->config("minstok"); ?> 
        Pin</strong>) Potongan pembelian PIN adalah <strong><?= $db->config("potstok"); ?> %</strong></span></font></td>
    </tr>

    <tr> 

      <td width="47%">

        <div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Kode Order  </font></div></td>

      <td width="53%"><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;Nama Lengkap</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("nama", $user_session); ?>
            <input name="nama" type="hidden" id="nama" value="<?= $db->dataku("nama", $user_session); ?>" />
        <b> </b></font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;eMail u/ Kontak</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("email", $user_session); ?>
            <input name="email" type="hidden" id="email" value="<?= $db->dataku("email", $user_session); ?>" />
      </font></td>
    </tr>
    <tr>
      <td valign="middle"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Alamat lengkap<br />
      </font></div></td>
      <td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("alamat", $user_session); ?>
            <input name="alamat" type="hidden" id="alamat" value="<?= $db->dataku("alamat", $user_session); ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Kota</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("kota", $user_session); ?>
            <input name="kota" type="hidden" id="kota" value="<?= $db->dataku("kota", $user_session); ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Propinsi</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
        <?= $db->dataku("propinsi", $user_session); ?>
        <input name="propinsi" type="hidden" id="propinsi" value="<?= $db->dataku("propinsi", $user_session); ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Kode Pos</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("kodepos", $user_session); ?>
            <input name="kodepos" type="hidden" id="kodepos" value="<?= $db->dataku("kodepos", $user_session); ?>" />
      </font></td>
    </tr>
    <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;No. &nbsp;HP</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
            <?= $db->dataku("hp", $user_session); ?>
            <input name="hp" type="hidden" id="hp" value="<?= $db->dataku("hp", $user_session); ?>" />
      </font></td>
    </tr>
    
	  <tr>
      <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Banyak PIN</font></div></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:
        <input name="kartu" type="number" id="kartu" min="<?= $db->config("minstok"); ?>" max="500" size="5" /> 
        </font></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center"></div></td>
    </tr>
    <tr> 
      <td colspan="2" align="center">
<p align="center"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
          <input type="submit" name="Submit" value="ORDER SEKARANG" class="tombol" />
          </font></td>
    </tr>
    <tr> 
      <td colspan="2"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; 
        </font></td>
    </tr>
  </table>
</form>



                 