<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="../../css/style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="../../ajax_reception/ajax.js"></script> <script language="JavaScript" src="../../calendar.js"></script> <link href="../../calendar-mos.css" type="text/css" rel="stylesheet"> <script> var count=1; function myFun(tbb,tbl,row) { count = count+1; tbb.booking2.value = count; tbb.booking2.id = "booking"+count; var rowObj = document.getElementById(row); var tblBody = document.getElementById(tbl).tBodies[0]; var newNode = rowObj.cloneNode(true); tblBody.appendChild(newNode); } </script> </head> <body> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <form action="test3.php" method="post"> <!--<form role="form" action="test.php" method="post" id="form" onsubmit="return chkinput(this)">--> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tbody> <tr> <td valign="top"><table width="99%" border="0" cellspacing="2" cellpadding="2"> <tbody> <tr> <td colspan="2"> <table style="DISPLAY: none" width="100%"> <tbody> <tr id="hiddenRow"> <td width="18%" align="right"> <br> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <td><div class="col-sm-2"> Rooms <input type="text" name="booking2" id="booking2" onclick="this.select();"> <input type="hidden" name="booking_id[]" id="booking_id[]" value="<?php print ["rooms_code"]; ?>"> </div> <div class="col-sm-2"> ราคาห้อง<input type="text" name="price[]" id="price[]" size ="10"></div> <div class="col-sm-2"> ผู้ใหญ่<input type="number" name="adult[]" id="adult[]" class="form-control input-sm" value=""></div> <div class="col-sm-2">เด็ก<input type="number" name="child[]" id="child[]" class="form-control input-sm" value=""></div> <div class="col-sm-2"> มีอาหารไหม<select name="chkfood[]" id="chkfood[]" class="form-control input-sm" > <option value="0"> ไม่มี</option> <option value="1"> มี</option> </select> </div> </td> </table> </td> </tr> </tbody> </table> <table id="myTable" name="myTable" width="100%"> <tbody> <tr> <td width="18%" align="right"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <td><div class="col-sm-2"> Rooms <input type="text" name="booking1" id="booking1" onclick="this.select();"> <input type="hidden" name="booking_id[]" id="booking_id[]" value="<?php print ["rooms_code"]; ?>"> </div> <div class="col-sm-2"> ราคาห้อง<input type="text" name="price[]" id="price[]" size ="10"></div> <div class="col-sm-2"> ผู้ใหญ่<input type="number" name="adult[]" id="adult[]" class="form-control input-sm" value=""></div> <div class="col-sm-2">เด็ก<input type="number" name="child[]" id="child[]" class="form-control input-sm" value=""></div> <div class="col-sm-2"> มีอาหารไหม<select name="chkfood[]" id="chkfood[]" class="form-control input-sm" > <option value="0"> ไม่มี</option> <option value="1"> มี</option> </select> </div> </td> </table> </td> </tr></tbody> </table> <div align="right"> <input onclick="addRow('myTable','hiddenRow',form)" class="button_green" type="button" value="+ ห้องพัก"> <input type="button" name="myBut" value="click" onclick="myFun(form,'myTable','hiddenRow')"> <input type="submit"> </div> </td> </tr> <tr> <td> </td> <td> </td> </tr> </tbody> </table> </td> </tr> </tbody></table> </form> </body></html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง