<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
session_start();
ob_start(); ?>
<?php include "header.php"?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
input{ border:#CCCCCC solid 1px; border-radius:5px; height:22px; width:200px; padding-left:5px;}
select{ border:#CCCCCC solid 1px; border-radius:5px; height:27px; width:200px;}
.table_bg{ border:#CCCCCC solid 1px; border-radius:5px; height:auto; width:auto; padding:20px; margin-bottom:10px;}
.text_style{ font-family:Arial, Helvetica, sans-serif; font-size:12px;}
.text_style1{ font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:12px;}
.style14 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
}
.style141 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
.style15 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}
.style16 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: bold;
}

-->
</style>
</head>

<?php
if(isset($_GET["uid"]))
{
$uid=$_GET["uid"];
$whr="md5(id)='$uid'";
$getPatientInfo=$objIms->getRows('tbl_account',$whr);

			$invoice_no=$getPatientInfo["invoice_no"];
			$trans_date=$objIms->IntToDate($getPatientInfo["trans_date"]);
			$actual_amt=$getPatientInfo["actual_amt"];
			$Paid_Amount=$getPatientInfo["Dr_Amt"];
			$salesmas_id=$getPatientInfo["mas_id"];
			
			$whr1="id='$salesmas_id'";
$get=$objIms->getRows('view_sales_master',$whr1);
$client_name=$get["client_name"];
$client_address=$get["client_address"];
$client_tin=$get["tin_no"];
	}
?>

<script type="text/javascript">
 
function printDiv(divName) {
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}

</script>
<body>

<div class="panel" style="width:95%; margin:10px auto">
<br />

<div align="center" class="style16"></div>
<br />
<div id="printableArea">
<div style="width:210mm; height:auto; margin:auto; text-align:center">
  <table width="100%" border="1">
  <tr>
    <td  colspan="6"><table width="100%" border="1">
      <tr>
        <td height="102" colspan="2" align="center" ><span class="style14" style="background:#666666; color:#FFFFFF"> BHATIA TEXTILES </span><br />
            <span class="style141">123,T.T.SHARDHANAND ROAD,UPPER BAZAR</span><br />
            <span class="style141">Dist- RANCHI-834001(Jharkhand)</span></td>
        <td width="19%" align="left" valign="top"><span class="text_style1" style="float:right; margin-right:15px;">Contact No</span><br />
            
            <span class="text_style1" style="float:right;margin-right:10px;">0651-6565999</span><br />
			<span class="text_style1" style="float:right;margin-right:10px;">Mobile: 9693119999</span><br />
			<span class="text_style1" style="float:right;margin-right:10px;">Email iD: mukulbhatia9999<h2>gmail.com</h2></span><br />
                    </td>
      </tr>
      <tr>
        <td width="14%"  align="left" valign="top"><span class="text_style1">No: </span></td>
        <td width="67%" align="left"><span class="text_style1">
          <?=$invoice_no?>
        </span></td>
        <td width="19%" align="left" valign="top"><span class="text_style1"> Date : </span>
            <?=$trans_date?></td>
      </tr>
      <tr>
        <td align="left"><span class="text_style1">Client Name  : </span> </td>
        <td align="left"><?=$client_name?></td>
        <td align="left">Tin No:
          <?=$client_tin?></td>
      </tr>
      <tr>
        <td align="left"><span class="text_style1">Client Address :  &nbsp;</span> </td>
        <td align="left"><?=$client_address?></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="left">Amount <strong>:</strong></td>
        <td align="left"><?=$Paid_Amount?></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  
  <tr>
    <td colspan="6" align="left"><table width="100%" border="1">
      
      <tr>
        <td class="text_style"><br />
          <br />
          <span style="font-size:12px; float:right;">For: <strong>BHATIA TEXTILES</strong></span></td>
        </tr>
    </table></td>
    </tr>
</table>

  
  
</div>
</div>
<br />

<div align="center"><span class="btn btn-info" onClick="printDiv('printableArea')">Print</span></div>
</div>
  

</body>
</html>
