  | 
		 		   | 
	  	    
          
            
			
	
			
			 
                แก้โค๊ด ไม่ให้เห็นปุ่มพิมพ์ ติอนหน้าพิมพ์ยังงัยครับ แบบใหม่ function Clickheretoprint() 
ปุ่มพิมพ์มันออกมาหน้า previrew และกระดาษครับ 
 
Code (PHP) 
function Clickheretoprint()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=800, height=400, left=100, top=25"; 
  var content_vlue = document.getElementById("content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('</head><body onLoad="self.print()" style="width: 800px; font-size: 13px; font-family: arial;">');          
   docprint.document.write(content_vlue); 
   docprint.document.close(); 
   docprint.focus(); 
}
</script>
 
 
ตอนเรียกใช้ 
 
Code (PHP) 
<div class="pull-right" style="margin-right:100px;"> <a href="javascript:Clickheretoprint()" style="font-size:20px;">
	  <button class="btn btn-success btn-large"><i class="icon-print"></i> พิมพ์</button>
 
 
 
  Tag : PHP, MySQL               
                        | 
           
          
            | 
			
                             | 
           
          
            
              
                   | 
                   | 
                   | 
               
              
                   | 
                
                    
                      | Date :
                          2019-08-20 15:46:35 | 
                      By :
                          sweerawat | 
                      View :
                          686 | 
                      Reply :
                          2 | 
                     
                  | 
                   | 
               
              
                   | 
                   | 
                   | 
               
              | 
           
          
            | 
			 | 
           
         
	    
		             | 
		
			  |