index.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. if (!isset($_GET['pos_id'])) {
  3. $host = (str_contains($_SERVER['HTTP_ORIGIN'], 'vorsortierter-flohmarkt.de')) ? "https://app.vorsortierter-flohmarkt.de" : "";
  4. header("Location: {$host}/mobile/config.html");
  5. exit();
  6. }
  7. ?>
  8. <!doctype html>
  9. <html>
  10. <head>
  11. <meta charset="utf-8">
  12. <meta http-equiv="X-UA-Compatible" content="chrome=1">
  13. <title>Kasse</title>
  14. <base href="/mobile/">
  15. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  16. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  17. <!--[if lt IE 9]>
  18. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  19. <![endif]-->
  20. <link rel="stylesheet" href="css/styles.css">
  21. <link rel="stylesheet" href="css/example.css">
  22. <link rel="stylesheet" href="css/pygment_trac.css">
  23. <link rel="stylesheet" href="/vendor/styles/glyphicons.css">
  24. </head>
  25. <body>
  26. <div class="wrapper">
  27. <section id="container" class="container">
  28. <form action="/api/?a=pos_upload&<?php echo $_SERVER['QUERY_STRING']; ?>" method="POST">
  29. <div id="result_strip">
  30. <ul class="thumbnails"></ul>
  31. </div>
  32. <div id="interactive" class="viewport"></div>
  33. <div id="manual_entry">
  34. Manuell:
  35. <input type="number" id="manual_code" step="0.001" placeholder="000.000" tabindex="-1" />
  36. <button id="snapshot" tabindex="-1" >
  37. <i class="glyphicon glyphicon-camera"></i>
  38. </button>
  39. </div>
  40. <br/><br/>
  41. Rechnung abschlie&szlig;en &nbsp;
  42. <input type="submit" id="submit_button" value="senden" />
  43. </form>
  44. </section>
  45. </div>
  46. <script src="js/jquery-1.11.0.min.js"></script>
  47. <script src="js/adapter-latest.js" type="text/javascript"></script>
  48. <script src="js/quagga.min.js" type="text/javascript"></script>
  49. <script src="js/live_w_locator.js" type="text/javascript"></script>
  50. <script src="js/scale.fix.js"></script>
  51. </body>
  52. </html>