<script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#Drg_Barcode").change(function(){ $.ajax({ url: "return_shop_font.php" , type: "POST", data: 'Drg_Barcode=' +$("#Drg_Barcode").val() }) .success(function(result) { var obj = jQuery.parseJSON(result); if(obj == '') { $('input[type=text]').val(''); } else { $.each(obj, function(key, inval) { $("#Drg_Barcode").val(inval["Drg_Barcode"]); $("#Drg_Id").val(inval["Drg_Id"]); $("#Drg_Id2").val(inval["Drg_Id"]); $("#Drg_Name").val(inval["Drg_Name"]); $("#Comm_Name").val(inval["Comm_Name"]); $("#Udrg_Rw").val(inval["Udrg_Rw"]); $("#Unt_Name").val(inval["Unt_Name"]); $("#Price_Sale").val(inval["Price_Sale"]); $("#Udrg_Instr").val(inval["Udrg_Instr"]); }); } }); }); }); </script> <form name="frmMain" method="post" action="<?=$_SERVER["PHP_SELF"];?>"> <input type="hidden" name="hdnCmd" value=""> <td><div align="right">บาร์โค้ด :</td> <td width="190" colspan="4"><div align="right"> <input type="text" value="<? echo $Drg_Barcode ?>" size="68" name="Drg_Barcode" id="Drg_Barcode" autofocus /> </div></td>
<input name="btnAdd" type="image" src="image/add.png" width="25" height="25" id="btnAdd" value="Add" OnClick="frmMain.hdnCmd.value='Add';frmMain.submit();">
<input name="btnAdd" type="image" src="image/add.png" width="25" height="25" id="btnAdd" value="Add" OnChange="frmMain.hdnCmd.value='Add';frmMain.submit();">
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง