Browse code

Dateinamen geändert

Bernd Wurst authored on 17/03/2018 14:57:41
Showing 8 changed files
1 1
similarity index 100%
2 2
rename from step2.php
3 3
rename to address.php
4 4
similarity index 93%
5 5
rename from step5.php
6 6
rename to auftrag.php
... ...
@@ -6,17 +6,17 @@ if(!isset($_SESSION['phone'])) {
6 6
 }
7 7
 
8 8
 if (! $_SESSION['lname']) {
9
-    header('Location: step2.php?error');
9
+    header('Location: address.php?error');
10 10
     die();
11 11
 }
12 12
 
13 13
 if (!isset($_SESSION['lieferart'])) {
14
-    header('Location: step3.php?error');
14
+    header('Location: gitterbox.php?error');
15 15
     die();
16 16
 }
17 17
 
18 18
 if (!isset($_SESSION['kartons'])) {
19
-    header('Location: step4.php?error');
19
+    header('Location: gebrauchte.php?error');
20 20
     die();
21 21
 }
22 22
 
23 23
similarity index 91%
24 24
rename from step6.php
25 25
rename to frischsaft.php
... ...
@@ -6,22 +6,22 @@ if(!isset($_SESSION['phone'])) {
6 6
 }
7 7
 
8 8
 if (! $_SESSION['lname']) {
9
-    header('Location: step2.php?error');
9
+    header('Location: address.php?error');
10 10
     die();
11 11
 }
12 12
 
13 13
 if (!isset($_SESSION['lieferart'])) {
14
-    header('Location: step3.php?error');
14
+    header('Location: gitterbox.php?error');
15 15
     die();
16 16
 }
17 17
 
18 18
 if (!isset($_SESSION['kartons'])) {
19
-    header('Location: step4.php?error');
19
+    header('Location: gebrauchte.php?error');
20 20
     die();
21 21
 }
22 22
 
23 23
 if (!isset($_SESSION['neue'])) {
24
-    header('Location: step5.php?error');
24
+    header('Location: auftrag.php?error');
25 25
     die();
26 26
 }
27 27
 
28 28
similarity index 92%
29 29
rename from step4.php
30 30
rename to gebrauchte.php
... ...
@@ -6,12 +6,12 @@ if(!isset($_SESSION['phone'])) {
6 6
 }
7 7
 
8 8
 if (! $_SESSION['lname']) {
9
-    header('Location: step2.php?error');
9
+    header('Location: address.php?error');
10 10
     die();
11 11
 }
12 12
 
13 13
 if (!isset($_SESSION['lieferart'])) {
14
-    header('Location: step3.php?error');
14
+    header('Location: gitterbox.php?error');
15 15
     die();
16 16
 }
17 17
 
18 18
similarity index 98%
19 19
rename from step3.php
20 20
rename to gitterbox.php
... ...
@@ -6,7 +6,7 @@ if(!isset($_SESSION['phone'])) {
6 6
 }
7 7
 
8 8
 if (! $_SESSION['lname']) {
9
-    header('Location: step2.php?error');
9
+    header('Location: address.php?error');
10 10
     die();
11 11
 }
12 12
 
... ...
@@ -44,7 +44,7 @@ if (isset($_REQUEST['form'])) {
44 44
                 break;
45 45
             }   
46 46
 
47
-            $redirect = 'step2.php';
47
+            $redirect = 'address.php';
48 48
             break;
49 49
 
50 50
         case 'step2':
... ...
@@ -58,7 +58,7 @@ if (isset($_REQUEST['form'])) {
58 58
                     }
59 59
                 }
60 60
             }
61
-            $redirect = 'step3.php';
61
+            $redirect = 'gitterbox.php';
62 62
             break;
63 63
 
64 64
         case 'step3':
... ...
@@ -75,7 +75,7 @@ if (isset($_REQUEST['form'])) {
75 75
                     $_SESSION['kennz'] = $_REQUEST['kennz'];
76 76
                 }
77 77
             }
78
-            $redirect = 'step4.php';
78
+            $redirect = 'gebrauchte.php';
79 79
             break;
80 80
 
81 81
          case 'step4':
... ...
@@ -86,7 +86,7 @@ if (isset($_REQUEST['form'])) {
86 86
                 $_SESSION['kartons'] = false;
87 87
             }
88 88
 
89
-            $redirect = 'step5.php';
89
+            $redirect = 'auftrag.php';
90 90
             break;
91 91
          case 'step5':
92 92
             if (isset($_REQUEST['5er'])) {
... ...
@@ -101,7 +101,7 @@ if (isset($_REQUEST['form'])) {
101 101
             }
102 102
 
103 103
 
104
-            $redirect = 'step6.php';
104
+            $redirect = 'frischsaft.php';
105 105
             break;
106 106
 
107 107
          case 'step6':
... ...
@@ -111,11 +111,11 @@ if (isset($_REQUEST['form'])) {
111 111
                 $_SESSION['frischsaft'] = (int) $_REQUEST['frischsaft'];
112 112
             }
113 113
 
114
-            $redirect = 'step7.php';
114
+            $redirect = 'summary.php';
115 115
             break;
116 116
         case 'step7':
117 117
             if (!isset($_REQUEST['agb'])) {
118
-                $redirect = 'step7.php?error';
118
+                $redirect = 'summary.php?error';
119 119
                 break;
120 120
             }
121 121
 
122 122
similarity index 92%
123 123
rename from step7.php
124 124
rename to summary.php
... ...
@@ -6,27 +6,27 @@ if(!isset($_SESSION['phone'])) {
6 6
 }
7 7
 
8 8
 if (! $_SESSION['lname']) {
9
-    header('Location: step2.php?error');
9
+    header('Location: address.php?error');
10 10
     die();
11 11
 }
12 12
 
13 13
 if (!isset($_SESSION['lieferart'])) {
14
-    header('Location: step3.php?error');
14
+    header('Location: gitterbox.php?error');
15 15
     die();
16 16
 }
17 17
 
18 18
 if (!isset($_SESSION['kartons'])) {
19
-    header('Location: step4.php?error');
19
+    header('Location: gebrauchte.php?error');
20 20
     die();
21 21
 }
22 22
 
23 23
 if (!isset($_SESSION['neue'])) {
24
-    header('Location: step5.php?error');
24
+    header('Location: auftrag.php?error');
25 25
     die();
26 26
 }
27 27
 
28 28
 if (!isset($_SESSION['frischsaft'])) {
29
-    header('Location: step6.php?error');
29
+    header('Location: frischsaft.php?error');
30 30
     die();
31 31
 }
32 32
 
... ...
@@ -83,7 +83,7 @@ $content .= '
83 83
     <div class="panel panel-default">
84 84
         <div class="panel-heading">Anlieferung</div>
85 85
         <div class="panel-body">'.$anlieferung.'</div>
86
-        <div class="panel-footer"><a class="btn btn-default" href="step3.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
86
+        <div class="panel-footer"><a class="btn btn-default" href="gitterbox.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
87 87
     </div>
88 88
     ';
89 89
 if ($_SESSION['kartons']) {
... ...
@@ -91,7 +91,7 @@ if ($_SESSION['kartons']) {
91 91
     <div class="panel panel-default">
92 92
         <div class="panel-heading">Gebrauchte Kartons</div>
93 93
         <div class="panel-body">Sie haben Ihre gebrauchten Kartons am dafür vorgesehenen Platz abgestellt und mit Ihrem Namen beschriftet.</div>
94
-        <div class="panel-footer"><a class="btn btn-default" href="step4.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
94
+        <div class="panel-footer"><a class="btn btn-default" href="gebrauchte.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
95 95
     </div>
96 96
     ';
97 97
 }
... ...
@@ -100,7 +100,7 @@ $content .= '
100 100
     <div class="panel panel-default">
101 101
         <div class="panel-heading">Abfüllung</div>
102 102
         <div class="panel-body">'.$abfuellung.'</div>
103
-        <div class="panel-footer"><a class="btn btn-default" href="'.($_SESSION['kartons'] ? 'step5.php' : 'step4.php').'"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
103
+        <div class="panel-footer"><a class="btn btn-default" href="'.($_SESSION['kartons'] ? 'auftrag.php' : 'gebrauchte.php').'"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
104 104
     </div>
105 105
     ';
106 106
 
... ...
@@ -109,7 +109,7 @@ if ($_SESSION['frischsaft'] > 0) {
109 109
     <div class="panel panel-default">
110 110
         <div class="panel-heading">Frischsaft</div>
111 111
         <div class="panel-body">Wir füllen ca. '.$_SESSION['frischsaft'].' Liter unpasteurisierten Saft in das Gefäß, das Sie uns bereitgestellt haben. Bitte beschriften Sie Ihr Gefäß mit Ihrem Namen und stellen Sie es an die Stelle, die für gebrauchte Kartons vorgesehen ist.<br><div class="alert alert-warning">Bitte holen Sie Ihren Saft nach der Verarbeitung zeitnah ab, weil Ihr Gefäß bei einsetzender Gärung beschädigt werden könnte.</div></div>
112
-        <div class="panel-footer"><a class="btn btn-default" href="step6.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
112
+        <div class="panel-footer"><a class="btn btn-default" href="frischsaft.php"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Angaben ändern</a></div>
113 113
     </div>
114 114
 ';
115 115
 }
... ...
@@ -30,12 +30,12 @@
30 30
         <?php 
31 31
         $pages = array(
32 32
             1 => 'index.php',
33
-            2 => 'step2.php',
34
-            3 => 'step3.php',
35
-            4 => 'step4.php',
36
-            5 => 'step5.php',
37
-            6 => 'step6.php',
38
-            7 => 'step7.php');
33
+            2 => 'address.php',
34
+            3 => 'gitterbox.php',
35
+            4 => 'gebrauchte.php',
36
+            5 => 'auftrag.php',
37
+            6 => 'frischsaft.php',
38
+            7 => 'summary.php');
39 39
         foreach ($pages as $index => $file) {   
40 40
         echo '<li'.($file === basename($_SERVER['PHP_SELF']) ? ' class="active"' : '').'><a href="'.$file.'">'.$index.'</a></li>';
41 41
 }