<?php include("connection.php");
error_reporting(E_ERROR | E_PARSE); 
 $pagename = basename($_SERVER['PHP_SELF']);

 $bill_no=$_REQUEST["bill_no"];


 $bill=mysqli_query($con,"select * from onshop where `bill_no`='".$bill_no."' and `status`='active' and `bill_status`='complete' and `paid_status`='paid' "); $billr=mysqli_fetch_array($bill,MYSQLI_ASSOC);
  $billn=mysqli_num_rows($bill);

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- /Added by HTTrack --><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
<link type="text/css" rel="stylesheet" href="javax.faces.resource/themeab55.css?ln=primefaces-aristo" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/dist-butterfaces-bootstrap.min4e5d.css?ln=butterfaces-dist-css" />
-->
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/default.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/cssLayout.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/popup.css" />
<link type="text/css" rel="stylesheet" href="javax.faces.resource/css/menu.css" />
<!--
<script type="text/javascript" src="javax.faces.resource/butterfaces-all-with-jquery-and-bootstrap-bundle.min686a.js?ln=butterfaces-dist-bundle-js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jquery-3.4.0.min.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/bootstrap.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jquery-1.11.2.js"></script>
<script type="text/javascript" src="javax.faces.resource/js/jssor.slider-27.5.0.min.js"></script>
<script type="text/javascript" src="javax.faces.resource/jquery8490.js?ln=js"></script>
<script type="text/javascript" src="javax.faces.resource/menu8490.js?ln=js"></script>
<script type="text/javascript" src="javax.faces.resource/js/canvasjs.min.js"></script>
        
  -->     
        <script type="text/javascript">
            $(function() {
                $('ul.nav li.dropdown').hover(function() {
                    $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(500);
                }, function() {
                    $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(500);
                });
            });
        </script>
        <script type="text/javascript">
            $(function() {
                $("#notice").fadeIn("slow").append('');
                $(".dismis").click(function() {
                    $("#notice").fadeOut("slow");
                });
            });
        </script>
		
<script>
function lfn_SelectSection(p_Class)
    {
        document.getElementById('cusname').disabled=false;
		
  
        $.ajax({
		
                    type: "GET",
                    url: "ajax_location.html?classID=" + p_Class,
                    success: function(state) {
                    document.getElementById('cusname').innerHTML=state;    
					
                    }
        });
		
	 
		
		
    }

</script>
<style> 
        input.largerCheckbox { 
            width: 20px; 
            height: 20px; 
			
        } 
    </style> 
        <title>The Star Salon</title></head><body onkeypress="print_me()">

        

        <div id="content" class="center_content ">

                    <div class="container-fluid text-center">    
                        <div class="row">
                            <div class="col-sm-2" style="padding-right: 0px;">
							
							
							
							
							
 <?php //include("include/left.php"); ?>                                  

                                </div>

                            </div>

                            <div class="col-sm-8" style="padding-right: 2px; padding-left:2px;">

                                <div class="row" >
                                    <div class="col-sm-12" >

                                        <div class="panel panel-primary" style="background-color: rgb(186,233,254);border: 1px solid #000; margin-bottom: 0px; ">
                                            <div class="panel-heading" style=" font-family: serif; background-color: #007de8; color:#CCFF00"> <font size="6"><b>The Star Salon</b></font><br>
                                             Cosmo Bazar Building 2nd floor <br>Bagnan Station Road North<br>Bagnan, Howrah
                                            </div>
                                            <div class="panel-body" style=" text-align:right ;padding-bottom: 0px; padding-top: 6px;">
					 
					 


<script>

function print_me()
	{
		var content = document.getElementById('container').innerHTML;
		var win = window.open();
		win.document.write(content);
		win.print();    // JavaScript Print Function
		win.close();    //It will close window after Print.
		window.location.href="index.php";
	}


function show_p() {
 var v=document.getElementById("cat1").value;
 var vv=document.getElementById("cat2").value;
 window.location.href="?fd="+v+"&td="+vv;
}
</script>	

<div   id="container" style=" text-align:left">	
<table width="100%" border="0">
    <tr><td width="33%" align="left"><b>Billing Address</b><br>
    Cosmo Bazar Building 2nd floor <br>Bagnan Station Road North<br>Bagnan, Howrah</td><td width="33%" align="center"><b><font size="5px"></font></b></td>
    <td width="33%" align="right">thestarsalon@yahoo.com<br>Ph +91 7478899777</td></tr>
</table>
--------------------------------------------------------
<table style="width:100%;" border="0" >

<tr ><td colspan="2"><b>Name : <?php echo $billr["cus_name"]; ?></b></td><td align="right"><b>Bill No. <?php echo $billr["bill_no"]; ?> And Dt : <?php 
$temp_date=date_create($billr["bill_date"]); echo date_format($temp_date,"d/m/y");
 ?></b></td></tr>

</table>
<hr>

<?php $i=1; $bill=mysqli_query($con,"select * from onshop where `bill_no`='".$bill_no."' and `status`='active' and `bill_status`='complete' and `paid_status`='paid' "); while($billr=mysqli_fetch_array($bill,MYSQLI_ASSOC)) { 
echo $i.". ".$billr["product_name"]."<br>";?>
Qnty : <?php echo $billr["qnty"]; ?><br>
Price :<?php  echo $billr["price"]; 
$payable=$billr["payable"]; $advance=$billr["advance"]; 
$i++;
$ac=$billr["cabin_charge"];
$due=$billr["due"];
$charge_type=$billr['charge_type'];
$dis=$billr["discount"];
?><br>
------------------------------------------------<br>
<?php } ?>
Gross Amount : <?php echo $total+$ac; ?> /-<br>
<?php if($dis>0){?> Discount : <?php echo $dis; ?> /-<br><?php } else {} ?>
Net Amount <?php echo $payable;  ?> /-<br>
<?php if($due!="") { ?>Due Amount : <?php echo $due;  ?> /-<br><?php } else {} ?>
------------------------------------------------
<br>
<h4>THANKS FOR VISIT</h4>





</div>
</center>
<?php  if($_REQUEST["page"]=="index") { ?>
<a href="index.php"><img src="back.png" width="70" align="left"></a>
<?php } ?>

			


<p>&nbsp;</p>					 
				
					 
					 
					 
	<!--				 					
											 <select name="class" id="class" class="form-control" onChange="lfn_SelectSection(this.value);">
                                            <option value="">--- Please Select Class ----</option>
                                             <option value="A">A</option>
											 <option value="B">B</option>
											 <option value="C">C</option>
                                             </select>
											Section
											 <select type="text" name="secname" id="secname" class="form-control" >
                                        	<option value="0">------select Section_o------</option>

                                        </select> -->	
										
                                                    </strong></p></div>
                                        </div>



                                    </div>
                                </div>

                            <!--   <div class="well" style="padding: 5px;background-color: rgb(186,233,254); border: 1px solid #000; margin-bottom: 1px;">
                                    <div class="row">
                                        
                                        
                                       
                                        
                                        
                                        
                                    </div> 
                                </div>-->
                                <div class="row">
                                   <!-- <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: antiquewhite;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/school-educatione0f8.png?ln=img" width="50" />  </div>
                                            <div class="panel-footer" style="padding: 1px 2px; background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html"> School Education Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #7c5a5e;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/villagee0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">P &amp; R D Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #f6f191;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/librarye0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">UD &amp; MA Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #fff;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/images6e0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html"> MEE &amp; LS Department Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #ffdc6a;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/treasurye0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 10px 5px;background-color: #007de8; font-size: 13px;"><a href="../e_Pension/AdminLogin.html">Treasury Users</a>  </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="panel panel-primary" style="background-color: #5cfef2;">
                                            <div class="panel-body" style="border: 1px solid #000"><img src="javax.faces.resource/users-groupe0f8.png?ln=img" width="50" /></div>
                                            <div class="panel-footer" style="padding: 1px 2px;background-color: #007de8; font-size: 12px;"><a href="../e_Pension/AdminLogin.html">Other Departments Users</a>  </div>
                                        </div>
                                    </div>    -->
                                </div>
                            
                               

                            </div>
                            <div class="col-sm-2" style="padding-left:0px;">
                               
							   
							   
 <?php //include("include/right.php"); ?>
                            </div>                     
                        </div>

                    </div>
</form>
        </div>


         <?php include("include/footer.php"); ?>

                        </div>
                    </div>

        </div>
		

		
		
		</body>



</html>