<input type="checkbox" id="chk" point="1" /> <script src="admin/bootstrap/js/jquery-1.10.2.min.js"></script> <script> $(function(){ $('#chk').click(function(){ var no=$(this).attr('point'); $.ajax({url:"update.php", async:false, cache:false, global:false, type:'POST', data:'Point='+no, success: function(result){ var obj=jQuery.parseJSON(result); if(obj['status'] == 'success'){ alert(obj['msg']); } } }); }); }); </script>
<? $Point=mysql_real_escape_string($_POST['Point']); $arrResult=array(); if($Point != 0){ $arrResult['status']="success"; $arrResult['msg']="ระบบทำการอัพเดทเรียบร้อย"; } echo json_encode($arrResult); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง