admin_qrcodes.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <html>
  2. <head>
  3. <!-- Bootstrap 3.3.2 -->
  4. <link href="<?php echo BASE_URL; ?>static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
  5. <!-- FontAwesome 4.3.0 -->
  6. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  7. <title>QR codes</title>
  8. <style>
  9. body {
  10. font-family: Arial, sans-serif;
  11. padding: 20px;
  12. }
  13. .qr-codes {
  14. display: flex;
  15. flex-wrap: wrap;
  16. gap: 20px;
  17. }
  18. .qr-code {
  19. width: 33%;
  20. display: block;
  21. margin: 10px;
  22. text-align: center;
  23. }
  24. .qr-code img {
  25. width: 100%;
  26. height: auto;
  27. }
  28. .qr-code p {
  29. margin-top: 5px;
  30. font-size: 14px;
  31. }
  32. @media print {
  33. .btn {
  34. display: none;
  35. }
  36. .qr-code {
  37. width: 33%;
  38. page-break-inside: avoid;
  39. }
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <button type="button" onclick="window.print();" class="btn btn-flat btn-success" style="margin-bottom: 20px;"><i class="fa fa-print"></i> Print</button>
  45. <div class="qr-codes">
  46. <?php foreach ($tickets as $ticket) : ?>
  47. <div class="qr-code">
  48. <img src="/qrcode.php?s=qr&d=<?=$ticket['id']?>" alt="QR code 1">
  49. <p><?=$ticket['label']?></p>
  50. </div>
  51. <?php endforeach; ?>
  52. </div>
  53. </body>
  54. </html>