<?php 
include 'dheader.php'; 
?>
	<div class="modal fade hidden-print" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"></div>
	<div class="wrapper ">
		<?php include 'leftbar.php'; ?>
		<!-- left-bar -->
		<?php include 'topbar.php'; ?>
			<!-- top-bar -->
		<div style="font-size:10px ; text-align:center">
		<?php echo "Cash Memo / Bill"; ?>
		</div>
<br>
		
		<div class="logo">
		<div class="container">
		<div class="row">
			<div class="col-xs-5"><b style="font-size:30px;">Sherron Flour Mill</b></div>
			<div class="col-xs-3">
				<img src="images/rose.png" class="center-block" width="" alt="">
			</div>
			<div class="col-xs-4"><b style="font-size:32px; text-align:right">شیرون آٹا چکی</b></div>
		</div>
		</div>
		
		
		</div>
		<!-- logo -->

			<div class="main-content">

				<div class="row manage-table receipt_small" id="receipt_wrapper">
				

	<div class="col-md-12" id="receipt_wrapper_inner">
		<div class="panel panel-piluku">
			<div class="panel-body panel-pad">
			    <div class="row">
			        <!-- from address-->
			    <?php
			    	$store = $db->query("SELECT * FROM store");
			    	$fdata = $store->fetchArray();
			    ?>    

			        <div class="col-md-4 col-sm-4 col-xs-12">
			            <ul class="list-unstyled invoice-address">
			                
			                
							<li><?php echo $fdata['address'] . ", " . $fdata['city'] . " " . $fdata['phone']; ?></li>
			                <li><?php echo $fdata['email']; ?></li>
			                <li><?php echo $fdata['url']; ?></li>							
			            </ul>
			        </div>
			        <?php 
			        	@$allData = $db->query("SELECT * FROM customerinvoice WHERE invoiceNo = '".$_GET['saleid']."'");
			    		$fDatarow = $allData->fetchArray();
			        ?>
			        <!--  sales-->
			        <div class="col-md-4 col-sm-4 col-xs-12">
			            <ul class="list-unstyled invoice-detail">
							<li class="big-screen-title">
								 Sales Receipt								 <br>
								 <strong><?php echo $fDatarow['show_date'];?></strong>
							</li>
			            <li><span>Sale ID:</span> <?php echo @$_GET['saleid'];?></li>
																									
							
														
							<li><span>Employee:</span><?php echo $fDatarow['user_name']; ?></li>
							<li><span>Customer Name:</span><?php echo $fDatarow['name_word']; ?></li>
										            </ul>
			        </div>
			        <!-- to address-->
			        <div class="col-md-4 col-sm-4 col-xs-12">
			            			        </div>
			    </div>
			    <!-- invoice heading-->
			    <div class="invoice-table">
			        <div class="row">
			        	<div class="col-md-2 col-sm-2 col-xs-2 little-padding-print ">
			                <div class="invoice-head">بارکوڈ</div>
			            </div>
			            <div class="col-md-3  col-sm-3 col-xs-3 little-padding-print">
			                <div class="invoice-head">نام شے</div>
			            </div>
			            <div class="col-md-2 col-sm-2 col-xs-2 little-padding-print ">
			                <div class="invoice-head">قیمت</div>
			            </div>
			            <div class="col-md-1 col-sm-1 col-xs-1 little-padding-print">
			                <div class="invoice-head">مقدار</div>
			            </div>
			            <div class="col-md-1 col-sm-1 col-xs-1 little-padding-print">
			                <div class="invoice-head">ڈسک %</div>
			            </div>
			            <div class="col-md-1 col-sm-1 col-xs-1 little-padding-print">
			                <div class="invoice-head">ڈسک RS</div>
			            </div>
						<div class="col-md-2 col-sm-2 col-xs-2 pull-right">
			                <div class="invoice-head pull-right ">کل</div>
			            </div>
			        </div>
			    </div>
			    			    <!-- invoice items-->
			    <div class="invoice-table-content">
			  		<table class="table table-bordered">
			  			<tbody>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  				<tr>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  				</tr>
			  			</tbody>
			  		</table>	
			  	</div>
			  
			</div>
			<!--container-->
		</div>		
	</div>
</div>

			</div>

			
<?php include 'dfooter.php'; ?>
<script>
	window.print();
</script>