<?php 
$barcode_columns=1;
?>
<html>
<head>
<style>
	* {
		padding: 0px;
		margin: 0px;
		box-sizing: border-box;
		font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	}
	.container {
		display: flex;
	}

	.item {
		flex: 1;
		/* Add styles for each div item */
	}
	.container {
		display: grid;
		grid-template-columns: repeat(<?php echo $barcode_columns; ?>, 1fr );
	}

	.item {
		/* Add styles for each div item */
		text-align: center;
	}
	
</style>

<script src="dist/JsBarcode.all.js"></script>

<script src="process.js"></script>

</head>
<body onload="window.print();">
	
<div class="container">

<?php
require_once 'dbconfig.php';
require_once 'db_connection.php';
include 'barcode128.php';
$orderid = $_GET['order_id'];
$qry = mysqli_query($conn, "SELECT * FROM mobileorders WHERE orid ='$orderid'");
$rw = mysqli_fetch_array($qry);
//$order_id = $rw['orid'];
?>


<div class="item" style="width:400px;">
<table>
<tbody>
<tr>
<td style="width: 100%;font-size:12px;text-align:center;" class="barcode">

	<div>
		<img id="barcode3"/>
		<script>JsBarcode("#barcode3", "<?php echo $orderid; ?>", {
			format:"CODE128",
			displayValue:false,
			fontSize:20,
			height: 50,
			callback: function() {
                
            }
		});</script>
	</div>
<p>Order Id : <?php echo $orderid; ?></p>

</td>
</tr>
</tbody>
</table>
</div>


</div>
	
</body>
</html>
