... | ... |
@@ -15,8 +15,13 @@ if (isset($_REQUEST['error'])) { |
15 | 15 |
$content .= ' |
16 | 16 |
<form class="form" action="save.php" method="post"> |
17 | 17 |
<input type="hidden" name="form" value="gebrauchte"> |
18 |
- <p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p> |
|
19 |
- |
|
18 |
+ '; |
|
19 |
+ if ($_SESSION['angeliefert']) { |
|
20 |
+ $content .= '<p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p>'; |
|
21 |
+ } else { |
|
22 |
+ $content .= '<p>Werden Sie gebrauchte Bag-in-Box-Kartons mitbringen?</p>'; |
|
23 |
+ } |
|
24 |
+$content .= ' |
|
20 | 25 |
<div class="form-group form-group-lg row"> |
21 | 26 |
<div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-light" id="btn-kartonsja" name="kartonsja" value="Ja"></div> |
22 | 27 |
<div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-light" id="btn-kartonsnein" name="kartonsnein" value="Nein"></div> |
... | ... |
@@ -5,9 +5,9 @@ session_start(); |
5 | 5 |
$headline = 'Gebrauchte Kartons'; |
6 | 6 |
$content = ''; |
7 | 7 |
if (isset($_REQUEST['error'])) { |
8 |
- $content .= '<div class="panel panel-danger"> |
|
9 |
- <div class="panel-heading">Fehler</div> |
|
10 |
- <div class="panel-body">Bitte wählen Sie, ob Sie gebrauchte Bag-in-Box-Kartons abgestellt haben.</div> |
|
8 |
+ $content .= '<div class="card text-white bg-danger mb-3"> |
|
9 |
+ <div class="card-header">Fehler</div> |
|
10 |
+ <div class="card-body">Bitte wählen Sie, ob Sie gebrauchte Bag-in-Box-Kartons abgestellt haben.</div> |
|
11 | 11 |
</div>'; |
12 | 12 |
} |
13 | 13 |
|
... | ... |
@@ -18,8 +18,8 @@ $content .= ' |
18 | 18 |
<p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p> |
19 | 19 |
|
20 | 20 |
<div class="form-group form-group-lg row"> |
21 |
- <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsja" name="kartonsja" value="Ja"></div> |
|
22 |
- <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsnein" name="kartonsnein" value="Nein"></div> |
|
21 |
+ <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-light" id="btn-kartonsja" name="kartonsja" value="Ja"></div> |
|
22 |
+ <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-light" id="btn-kartonsnein" name="kartonsnein" value="Nein"></div> |
|
23 | 23 |
</div> |
24 | 24 |
|
25 | 25 |
</form> |
... | ... |
@@ -1,20 +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 |
- |
|
13 |
-if (!isset($_SESSION['lieferart'])) { |
|
14 |
- header('Location: gitterbox.php?error'); |
|
15 |
- die(); |
|
16 |
-} |
|
17 |
- |
|
18 | 3 |
|
19 | 4 |
|
20 | 5 |
$headline = 'Gebrauchte Kartons'; |
... | ... |
@@ -29,7 +14,7 @@ if (isset($_REQUEST['error'])) { |
29 | 14 |
|
30 | 15 |
$content .= ' |
31 | 16 |
<form class="form" action="save.php" method="post"> |
32 |
- <input type="hidden" name="form" value="step4"> |
|
17 |
+ <input type="hidden" name="form" value="gebrauchte"> |
|
33 | 18 |
<p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p> |
34 | 19 |
|
35 | 20 |
<div class="form-group form-group-lg row"> |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,45 @@ |
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 |
+if (!isset($_SESSION['lieferart'])) { |
|
14 |
+ header('Location: gitterbox.php?error'); |
|
15 |
+ die(); |
|
16 |
+} |
|
17 |
+ |
|
18 |
+ |
|
19 |
+ |
|
20 |
+$headline = 'Gebrauchte Kartons'; |
|
21 |
+$content = ''; |
|
22 |
+if (isset($_REQUEST['error'])) { |
|
23 |
+ $content .= '<div class="panel panel-danger"> |
|
24 |
+ <div class="panel-heading">Fehler</div> |
|
25 |
+ <div class="panel-body">Bitte wählen Sie, ob Sie gebrauchte Bag-in-Box-Kartons abgestellt haben.</div> |
|
26 |
+ </div>'; |
|
27 |
+} |
|
28 |
+ |
|
29 |
+ |
|
30 |
+$content .= ' |
|
31 |
+ <form class="form" action="save.php" method="post"> |
|
32 |
+ <input type="hidden" name="form" value="step4"> |
|
33 |
+ <p>Haben Sie gebrauchte Bag-in-Box-Kartons angeliefert und bei uns unter Dach gestellt?</p> |
|
34 |
+ |
|
35 |
+ <div class="form-group form-group-lg row"> |
|
36 |
+ <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsja" name="kartonsja" value="Ja"></div> |
|
37 |
+ <div class="col-sm-6"><input type="submit" class="btn btn-block btn-lg btn-default" id="btn-kartonsnein" name="kartonsnein" value="Nein"></div> |
|
38 |
+ </div> |
|
39 |
+ |
|
40 |
+ </form> |
|
41 |
+ |
|
42 |
+'; |
|
43 |
+ |
|
44 |
+ |
|
45 |
+include("template.php"); |