浏览代码

Konfiguration mit Eingabe

robert 2 年之前
父节点
当前提交
f27a6dd3d9
共有 3 个文件被更改,包括 49 次插入5 次删除
  1. 1 0
      api/controllers/RequestController.php
  2. 43 2
      mobile/config.html
  3. 5 3
      mobile/index.php

+ 1 - 0
api/controllers/RequestController.php

@@ -187,6 +187,7 @@ class RequestController
 	private function posUpload ($data)
 	{
 		print_r($_POST);
+		print_r($_GET);
 	}
 
 	private function posInfos ($data)

+ 43 - 2
mobile/config.html

@@ -1,3 +1,44 @@
-<h1>Konfiguration</h1>
+<!doctype html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="chrome=1">
+    <title>Kasse</title>
 
-<a href="/mobile/?seller_id=1&cashier=Robert">hier klicken!</a>
+    <base href="/mobile/">
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+    <!--[if lt IE 9]>
+    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+    <link rel="stylesheet" href="css/styles.css">
+    <link rel="stylesheet" href="css/example.css">
+    <link rel="stylesheet" href="css/pygment_trac.css">
+    <link rel="stylesheet" href="/vendor/styles/glyphicons.css">
+  </head>
+  <body>
+
+    <h1>Konfiguration</h1>
+
+    <form action="/mobile" method="GET">
+        Wäscheklammer: 
+        <select name="seller_id">
+            <option value="1">rot</option>
+            <option value="2">gelb</option>
+            <option value="3">blau</option>
+            <option value="4">gr&uuml;n</option>
+            <option value="5">wei&szlig;</option>
+            <option value="6">t&uuml;rkis</option>
+            <option value="7">pink</option>
+            <option value="8">violett</option>
+            <option value="9">orange</option>
+        </select><br/><br/>
+        Name:
+        <input type="text" name="cashier" /><br/><br/>
+        <input type="submit" value="senden" />
+    </form>
+
+    <!--<a href="/mobile/?seller_id=1&cashier=Robert">hier klicken!</a>-->
+  </body>
+</html>

+ 5 - 3
mobile/index.php

@@ -1,7 +1,7 @@
 
 <?php
   if (!isset($_GET['seller_id'])) {
-    header("Location: /mobile/config.html");
+    header("Location: config.html");
     exit();
   }
 ?>
@@ -28,7 +28,7 @@
     <div class="wrapper">
 
         <section id="container" class="container">
-            <form action="/api/?a=pos_upload" method="post">
+            <form action="/api/?a=pos_upload&<?php echo $_SERVER['QUERY_STRING']; ?>" method="POST">
                 <div id="result_strip">
                     <ul class="thumbnails"></ul>
                 </div>
@@ -40,7 +40,9 @@
                         <i class="glyphicon glyphicon-camera"></i>
                     </button>
                 </div>
-                <input type="submit" id="submit_button" />
+                <br/><br/>
+                Rechnung abschlie&szlig;en &nbsp;
+                <input type="submit" id="submit_button" value="senden" />
             </form>
         </section>