<?
$kotanya = $db->dataku("kota", $user_session);
include "../ong-kir.php";
$hargax = $harga*$jumlah;
$ongkirx = $ongkirnya*$jumlah;
$tariff = $hargax + $ongkirx;
$beratnya = $brt*$jumlah;
$bulatin = ceil($beratnya);
$ongkiry = $ongkirnya*$bulatin;
$tariffx = $hargax + $ongkiry;
$poinnya = $pnd;
?>
<form id="form1" name="form1" method="post" action="?m=ordersukses">
        <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0" class="bordertable">
          <tr class="tbl_header">
            <td colspan="2" align="center">Konfirmasi Order</td>
          </tr>
          <tr>
            <td width="50%" align="right">&nbsp; </td>
            <td width="50%"><strong>
            <?
			if($tujuan) {  
			?>
              <input name="tujuan" type="hidden" id="tujuan" value="<?= $tujuan; ?>" size="15" /> 
              </strong>
            <?
			} else {
			?>
            
            <input name="tujuan" type="text" id="tujuan" size="15" />
           
            <?
			}
			?>            <strong>
            <input name="referrer" type="hidden" id="referrer" value="<?= $referrer; ?>" size="15" />
            <input name="pid" type="hidden" id="pid" value="<?= $pid; ?>" size="8" readonly="readonly" class="beli" />
            </strong></td>
          </tr>
          <tr>
            <td align="right" valign="top">Jumlah : </td>
            <td>
          <?
		  if(!$harga) {
		  ?>  
            <input name="jumlah" type="text" id="jumlah" size="8"  />
            <em style="font-size:10px">tanpa tanda baca</em>
          <?
		  } else {
		  	echo "<b>".rupiah($harga*$jumlah)."</b>"; 
			echo "<input name='jumlah' type='hidden' id='jumlah' value='".$tariffx."' size='15' />";
		  }
		  ?> <br>
          <strong>
          
          </strong></td>
          </tr>
          <tr>
            <td align="right" valign="top">Informasi:</td>
            <td><textarea name="ket" cols="40" rows="3" id="ket" readonly><?= $ket; ?>&nbsp;(<?= $jumlah; ?>)</textarea></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><input type="submit" name="submit" value="LANJUTKAN" class="tombole">            </td>
          </tr>
        </table>
        <p>&nbsp;</p>
</form>