<?php ob_start(); ?>
<?php
  // Use session variable on this page. This function must put on the top of page.
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php include "layouts/db_con.php"; ?>  
<head><meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sales Print</title>
<style type="text/css" media="print">
.hide{display:none}
table, tr, td {
  border: 1px solid red;
}
tr.noBorder td {
  border: 0;
}
</style><link rel="shortcut icon" href="images/favicon.ico">
<script type="text/javascript">
window.onload=function(){self.print();setTimeout("window.close()", 10);}

    window.onfocus = function() { window.close(); }
	 $(function(){ 
   setTimeout(function(){
      $('form').print();
    },100);
});
</script>

<style type="text/css">
<!--
.style1 {font-size: 10px}
-->
</style>
</head>
<body onload="self.print()" onfocus="window.close()">
	<?php  $hpl=$_REQUEST['hpl'];
	$qry=mysqli_query($conn, "select * from customerdetails where hpl='$hpl'");
					$row=mysqli_fetch_array($qry);
					?><center>
					</br>
					</br>
					</br>
	<table width="450" cellspacing="0" cellpadding="0" border="1">

	
<tr>
<td>
	 TO:</br>&nbsp;&nbsp;&nbsp;
	<?php echo $row['name']; ?></br>
	&nbsp;&nbsp;&nbsp;<?php echo $row['bname']; ?></br>
	&nbsp;&nbsp;&nbsp;<?php echo $row['address']; ?>
	</td>
	</tr>

	</table></center>
</body>
</html>

