Browse code

Fehlermeldungen auf BS4 portiert. Abbrechen löscht den angefangenen Auftrag.

Bernd Wurst authored on18/03/2018 20:12:58
Showing1 changed files
... ...
@@ -4,9 +4,9 @@ session_start();
4 4
 $headline = 'Ihr Obst';
5 5
 $content = '';
6 6
 if (isset($_REQUEST['error'])) {
7
-    $content .= '<div class="panel panel-danger">
8
-    <div class="panel-heading">Fehler</div>
9
-    <div class="panel-body">Bitte wählen Sie, wie Sie Ihr Obst angeliefert haben.</div>
7
+    $content .= '<div class="card text-white bg-danger mb-3">
8
+    <div class="card-header">Fehler</div>
9
+    <div class="card-body">Bitte wählen Sie, wie Sie Ihr Obst angeliefert haben.</div>
10 10
     </div>';
11 11
 }
12 12
 
Browse code

Migration to bootstrap-4.0.0

Bernd Wurst authored on18/03/2018 14:03:26
Showing1 changed files
... ...
@@ -17,18 +17,18 @@ $content .= '
17 17
     <p>Wie haben Sie Ihr Obst bei uns angeliefert?</p>
18 18
 
19 19
     <div class="form-group form-group-lg row">
20
-        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-gitterbox">In Gitterbox</a></div>
21
-        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-anhaenger">Anhänger abgestellt</a></div>
20
+        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-light" id="btn-gitterbox">In Gitterbox</a></div>
21
+        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-light" id="btn-anhaenger">Anhänger abgestellt</a></div>
22 22
         <input type="hidden" name="lieferart" id="lieferart" value="">
23 23
     </div>
24 24
     <div class="modal fade" role="dialog" id="modal-gitterbox"><div class="modal-dialog">
25 25
     <div class="form-group form-group-lg modal-content"><div class="modal-header">Wie viele Gitterboxen haben Sie gefüllt?</div>
26
-        <div class="modal-body row">
27
-        <div class="col-sm-2 col-sm-offset-1"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-1">1</a></div>
28
-        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-2">2</a></div>
29
-        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-3">3</a></div>
30
-        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-4">4</a></div>
31
-        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-5">5</a></div>
26
+        <div class="modal-body row justify-content-center">
27
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-outline-primary btn-gbcount" id="btn-gbcount-1">1</a></div>
28
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-outline-primary btn-gbcount" id="btn-gbcount-2">2</a></div>
29
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-outline-primary btn-gbcount" id="btn-gbcount-3">3</a></div>
30
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-outline-primary btn-gbcount" id="btn-gbcount-4">4</a></div>
31
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-outline-primary btn-gbcount" id="btn-gbcount-5">5</a></div>
32 32
     </div>
33 33
     </div>
34 34
     </div></div>
... ...
@@ -37,16 +37,16 @@ $content .= '
37 37
 
38 38
     <div class="form-group form-group-lg" id="details-gitterbox">
39 39
         <label for="kennz">Anzahl benutzter Gitterboxen:</label>
40
-    <div class="row">
41
-        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="gbcount" id="gbcount"></div>
40
+    <div class="row justify-content-center">
41
+        <div class="col-sm-10"><input class="form-control" type="text" name="gbcount" id="gbcount"></div>
42 42
     </div>
43 43
     </div>
44 44
      <div class="form-group form-group-lg" id="details-anhaenger">
45 45
         <label for="kennz">Wie lautet das Kennzeichen Ihres Anhängers?</label>
46
-    <div class="row">
47
-        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="kennz" id="kennz" placeholder="Kennzeichen des Anhängers"></div>
46
+    <div class="row justify-content-center">
47
+        <div class="col-sm-10"><input class="form-control" type="text" name="kennz" id="kennz" placeholder="Kennzeichen des Anhängers"></div>
48 48
     </div>
49
-        <span class="help-block">(Falls bekannt)</span>
49
+        <small class="form-text text-muted">(Falls bekannt)</small>
50 50
     </div>
51 51
       <div class="form-group form-group-lg">
52 52
         <input class="btn btn-primary btn-lg" type="submit" value="Weiter &gt;" id="btn-submit">
Browse code

Spätere Anlieferung eingebaut

Bernd Wurst authored on17/03/2018 17:14:44
Showing1 changed files
... ...
@@ -1,14 +1,5 @@
1 1
 <?php
2 2
 session_start();
3
-if(!isset($_SESSION['phone'])) {
4
-    header('Location: index.php?error');
5
-    die();
6
-}
7
-
8
-if (! $_SESSION['lname']) {
9
-    header('Location: address.php?error');
10
-    die();
11
-}
12 3
 
13 4
 $headline = 'Ihr Obst';
14 5
 $content = '';
... ...
@@ -22,7 +13,7 @@ if (isset($_REQUEST['error'])) {
22 13
 
23 14
 $content .= '
24 15
     <form class="form" action="save.php" method="post">
25
-    <input type="hidden" name="form" value="step3">
16
+    <input type="hidden" name="form" value="gitterbox">
26 17
     <p>Wie haben Sie Ihr Obst bei uns angeliefert?</p>
27 18
 
28 19
     <div class="form-group form-group-lg row">
... ...
@@ -59,7 +50,6 @@ $content .= '
59 50
     </div>
60 51
       <div class="form-group form-group-lg">
61 52
         <input class="btn btn-primary btn-lg" type="submit" value="Weiter &gt;" id="btn-submit">
62
-        <input class="btn btn-default btn-lg" type="submit" value="Das Obst bringe ich noch" id="btn-keinobst" name="keinobst" value="true">
63 53
     </div>
64 54
     </form>
65 55
 
Browse code

Dateinamen geändert

Bernd Wurst authored on17/03/2018 14:57:41
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,69 @@
1
+<?php
2
+session_start();
3
+if(!isset($_SESSION['phone'])) {
4
+    header('Location: index.php?error');
5
+    die();
6
+}
7
+
8
+if (! $_SESSION['lname']) {
9
+    header('Location: address.php?error');
10
+    die();
11
+}
12
+
13
+$headline = 'Ihr Obst';
14
+$content = '';
15
+if (isset($_REQUEST['error'])) {
16
+    $content .= '<div class="panel panel-danger">
17
+    <div class="panel-heading">Fehler</div>
18
+    <div class="panel-body">Bitte wählen Sie, wie Sie Ihr Obst angeliefert haben.</div>
19
+    </div>';
20
+}
21
+
22
+
23
+$content .= '
24
+    <form class="form" action="save.php" method="post">
25
+    <input type="hidden" name="form" value="step3">
26
+    <p>Wie haben Sie Ihr Obst bei uns angeliefert?</p>
27
+
28
+    <div class="form-group form-group-lg row">
29
+        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-gitterbox">In Gitterbox</a></div>
30
+        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-anhaenger">Anhänger abgestellt</a></div>
31
+        <input type="hidden" name="lieferart" id="lieferart" value="">
32
+    </div>
33
+    <div class="modal fade" role="dialog" id="modal-gitterbox"><div class="modal-dialog">
34
+    <div class="form-group form-group-lg modal-content"><div class="modal-header">Wie viele Gitterboxen haben Sie gefüllt?</div>
35
+        <div class="modal-body row">
36
+        <div class="col-sm-2 col-sm-offset-1"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-1">1</a></div>
37
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-2">2</a></div>
38
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-3">3</a></div>
39
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-4">4</a></div>
40
+        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-5">5</a></div>
41
+    </div>
42
+    </div>
43
+    </div></div>
44
+
45
+    
46
+
47
+    <div class="form-group form-group-lg" id="details-gitterbox">
48
+        <label for="kennz">Anzahl benutzter Gitterboxen:</label>
49
+    <div class="row">
50
+        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="gbcount" id="gbcount"></div>
51
+    </div>
52
+    </div>
53
+     <div class="form-group form-group-lg" id="details-anhaenger">
54
+        <label for="kennz">Wie lautet das Kennzeichen Ihres Anhängers?</label>
55
+    <div class="row">
56
+        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="kennz" id="kennz" placeholder="Kennzeichen des Anhängers"></div>
57
+    </div>
58
+        <span class="help-block">(Falls bekannt)</span>
59
+    </div>
60
+      <div class="form-group form-group-lg">
61
+        <input class="btn btn-primary btn-lg" type="submit" value="Weiter &gt;" id="btn-submit">
62
+        <input class="btn btn-default btn-lg" type="submit" value="Das Obst bringe ich noch" id="btn-keinobst" name="keinobst" value="true">
63
+    </div>
64
+    </form>
65
+
66
+';
67
+
68
+
69
+include("template.php");