Rumah Makan Halla ^_^

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Rumah Makan Halla</title>
</head>

<font color="red">

<body bgcolor="black">

<body>
<script language="JavaScript" type="text/javascript">
function hitungPesan(){
var nota = document.form2;
var Bakso = 12000 * eval(nota.Bakso.value);
var Soto = 10000 * eval(nota.Soto.value);
var Mie = 15000 * eval(nota.Mie.value);
var Degan = 5000 * eval(nota.Degan.value);
var Campur = 7000 * eval(nota.Campur.value);
var jumlahTotal = Bakso + Soto + Mie + Degan + Campur;
if (jumlahTotal > 50000){
nota.Total.value = jumlahTotal;
nota.Diskon.value = 10000;
nota.Bayar.value = jumlahTotal - eval(nota.Diskon.value);
} else {
nota.Total.value = jumlahTotal;
nota.Diskon.value = 0;
nota.Bayar.value = jumlahTotal - eval(nota.Diskon.value);
}
}
function resetForm(){
document.form2.reset();
}

</script><h3>=>> FORM PEMESANAN RUMAH MAKAN HALLA <==</ hr><br>

<form name="form2" action="#">
<table border="1px">
<tr>
<th>No</th>
<th>Makanan/Minuman</th>
<th>Harga</th>
<th>Pesan</th>
</tr>
<tr>
<td width="15">1</td>
<td width="200">Bakso Istimewa</td>
<td width="90">@ <input id="n123" type="text" name="bakso" value="12000" size="5" disabled="true"/></td>
<td width="110"><input type="text" name="Bakso" size="12" value="0" onChange="hitungPesan()"/></td>
</tr>
<tr>
<td>2</td>
<td>Soto Spesial</td>
<td>@ <input type="text" name="soto" value="10000" size="5" disabled="true"/></td>
<td><input type="text" name="Soto" size="12" value="0" onChange="hitungPesan()"/></td>
</tr>
<tr>
<td>3</td>
<td>Mie Ayam Super</td>
<td>@ <input type="text" name="mie" value="15000" size="5" disabled="true"/></td>
<td><input type="text" name="Mie" size="12" value="0" onChange="hitungPesan()"/></td>
</tr>
<tr>
<td>4</td>
<td>Es Degan</td>
<td>@ <input type="text" name="degan" value="5000" size="5" disabled="true"/></td>
<td><input type="text" name="Degan" size="12" value="0" onChange="hitungPesan()"/></td>
</tr>
<tr>
<td>5</td>
<td>Es Campur</td>
<td>@ <input type="text" name="campur" value="7000" size="5" disabled="true"/></td>
<td><input type="text" name="Campur" size="12" value="0" onChange="hitungPesan()"/></td>
</tr>
<tr>
<td colspan="3" align="right">Jumlah Total</td>
<td>Rp.<input type="text" name="Total" size="9" disabled="true" /></td>
</tr>
<tr>
<td colspan="3" align="right">Diskon</td>
<td>Rp.<input type="text" name="Diskon" size="9" disabled="true" /></td>
</tr>
<tr>
<td colspan="3" align="right">Jumlah Dibayar</td>
<td>Rp.<input type="text" name="Bayar" disabled="true" size="9" align="right"/></td>
</tr>
</table><br/>
<input type="button" value="CANCEL" onClick="resetForm()" />
</form>

</table>
<img src="images.jpg">

</body>
</html>

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar