<?php
 include('db/cn.php');
 @$orderId = $_GET['inv_id'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Purchase Print</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
   <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<style>
      body {
    font-family: 'Quicksand', sans-serif;
    
}
.btn, h1{
    font-weight:700;
}
</style>
<body>
    <br>
  <!-- He
  ader with Logo -->
  <center>
      <img src="../img/logo231.png" width="150" height="150" >
      <h1>Book Point</h1>
  </center>

  <!-- Buttons Section -->
  <div class="container text-center mt-5">
   <a href="plabel.php?inv_id=<?php echo $orderId; ?>"> <button class="btn btn-dark m-2" onclick="labelPrint()">Product Labels Print</button></a>
   <a href="printp.php?inv_id=<?php echo $orderId; ?>"> <button class="btn btn-primary m-2" onclick="simplePrint()">Thermal Print</button></a>
   <a href="printp2.php?inv_id=<?php echo $orderId; ?>"> <button class="btn btn-success m-2" onclick="hPrint()">A4 Print</button></a>
  </div>

  <script>
    function simplePrint() {
      alert("Thermal Print clicked");
    }
    function labelPrint() {
      alert("Product Labels Print clicked");
    }

    function hPrint() {
      alert("H Print clicked");
    }
  </script>
</body>
</html>