index.php 2.2 KB

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