<?php

include 'load.php';

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<meta name="description" content="POS - Eat More Resturant   | Pos & Invetory System | Dashboard

">
<meta name="keywords" content="Eat More Resturant   | Pos & Invetory System | Dashboard

">
<meta name="author" content="Eat More Resturant   | Pos & Invetory System | Dashboard

">
<meta name="robots" content="noindex, nofollow">

<title>Genarate Barcode | Eat More Resturant   | Pos & Invetory System | Dashboard

</title>


<?php
require_once 'headercss.php';
?>
</head>
<body>
<div id="global-loader">
<div class="whirly-loader"> </div>
</div>

<div class="main-wrapper">
<?php
require_once 'header.php';
?>

<?php
require_once 'navbar.php';
?>

<div class="page-wrapper">
<div class="content">
<div class="page-header">
<div class="page-title">
<h4>Genarate Barcode</h4>
<h6>New Genarate Barcode Print</h6>
</div>
</div>

<div class="card">
<div class="card-body">
<form method="POST" action="barcode.php" target="_blank">
<div class="row">
<div class="col-lg-8 col-sm-8 col-12">
<div class="form-group">
<label>Product</label>
<select autocomplete="OFF" id="product" name="product" class="form-control select2">
<option disabled selected value> -- Select Product-- </option>
<?php

$stmt = $DB_con->prepare('SELECT * FROM mobileproducts ORDER BY prid');

$stmt->execute();

if ($stmt->rowCount() > 0) {

while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {

extract($row);

?>
<option value="<?php echo $row['prid']; ?>"><?php echo $row['prcode']; ?> | <?php echo $row['itemcode']; ?> | <?php echo $row['proname']; ?> | Rs.<?php echo $row['sellprice']; ?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="col-lg-4 col-sm-4 col-12">
<div class="form-group">
<label>Quantity</label>
<input type="number" autocomplete="OFF" id="print_qty" name="print_qty" class="form-control" max="100000" min="1" placeholder="Enter Quantity" required>
</div>
</div>
<div class="col-lg-12">
<a href="genaratebarcode.php" class="btn btn-cancel">Cancel</a>
<button type="submit" class="btn btn-submit me-2">Print</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.1.0-rc.0/js/select2.min.js"></script>

<script>
// Initialize Select2 plugin with typing search functionality
$('.select2').select2();
</script>

<script src="assets/js/jquery-3.6.0.min.js"></script>

<script src="assets/js/feather.min.js"></script>

<script src="assets/js/jquery.slimscroll.min.js"></script>

<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/dataTables.bootstrap4.min.js"></script>

<script src="assets/js/bootstrap.bundle.min.js"></script>

<script src="assets/plugins/select2/js/select2.min.js"></script>

<script src="assets/plugins/sweetalert/sweetalert2.all.min.js"></script>
<script src="assets/plugins/sweetalert/sweetalerts.min.js"></script>

<script src="assets/js/script.js"></script>
</body>
</html>