<html> <head> <title>ThaiCreate.Com Tutorial</title> </head> <body> <script language="javascript"> function fncCal() { document.form1.txt3.value = parseInt(document.form1.txt1.value) - parseInt(document.form1.txt2.value) } </script> <form action="page.cgi" method="post" name="form1"> ยอด <input name="txt1" id="txt1" type="text" value="100" readonly> <br>จ่าย<input name="txt2" id="txt2" type="text" OnKeyUp="fncCal();"> <br>ถอน <input name="txt3" id="txt3" type="text" readonly><br> </form> </body> </html>
<html> <head> <title>ThaiCreate.Com Tutorial</title> </head> <body> <script language="javascript"> function toFixed(num, pre){ num *= Math.pow(10, pre); num = (Math.round(num, pre) + (((num - Math.round(num, pre))>=0.5)?1:0)) / Math.pow(10, pre); return num.toFixed(pre); } function fncCal() { var stang = parseFloat(document.form1.txt2.value) - parseFloat(document.form1.txt1.value); document.form1.txt3.value = toFixed(stang,2); } </script> <form action="page.cgi" method="post" name="form1"> ยอด <input name="txt1" id="txt1" type="text" value="865.43" > <br>จ่าย<input name="txt2" id="txt2" type="text" OnKeyUp="fncCal();"> <br>ถอน <input name="txt3" id="txt3" type="text" readonly><br> </form> </body> </html>
<html> <head> <title>เพิ่มข้อมูล </title> <meta charset="UTF-8"> </head> <body image background="bgDatabase/5.jpg"> <br> <form action="adddata.php" method="POST" name=flowers> <fieldset style="margin:0px auto; width:400px;"> <legend align=center><h3>เพิ่มข้อมูล </h3></legend> <table border="0" align="center" width="90%" table id="flowers"> <tr> <td><label>รหัสดอกไม้</label></td> <td><input type="text" name="FCode" size="30" required></td> </tr> <tr> <td><label>ชื่อดอกไม้</label></td> <td><input type="text" name="FFlower" size="30" required></td> </tr> <tr> <td><label>สีดอกไม้</label></td> <td><input type="text" name="Fcolor" size="30" required></td> </tr> <tr> <td><label>ประเภท</label></td> <td><input type="text" name="FCategory" size="30" required></td> </tr> <tr> <td><label>ราคา</label></td> <td><input type="text" id="FPrice" name="FPrice" value=" " size="30" required></td> </tr> <tr> <td><label>จำนวน</label></td> <td><input type="text" id="FAmount" name="FAmount" OnKeyUp="fncCal();" size="30" required></td> </tr> <tr> <td><label>ราคารวม</label></td> <td><input type="text" id="FSum" name="FSum" size="30" readonly></td> </tr> <tr> <td><label>ชื่อลูกค้า</label></td> <td><input type="text" name="FName" size="30" required></td> </tr> <tr> <td><label>ที่อยู่ลูกค้า</label></td> <td><input type="text" name="FAddress" size="30" required></td> </tr> <tr> <td><label>เบอร์โทรศัพท์</label></td> <td><input type="text" name="FTel" size="30" required></td> </tr> <tr> <td align=Right><input type="submit" value="submit"></td> <td align=center><input type="reset" value="reset"></td> </fieldset> </form> </body> </html> <script language="javascript"> function fncCal() { adddata.insertdataForm.FSum.value = parseInt(adddata.insertdataForm.FPrice.value) * parseInt(adddata.insertdataForm.FAmount.value) } </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง