-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder-date.php
75 lines (59 loc) · 2.58 KB
/
order-date.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php $pagetitle = "TemaSpa | Bestil tid - Vælg Dato";
require("header.php");
if (isset($_POST["product"])) {
switch ($_POST["product"]) {
case 0:
$productString = "Boble";
break;
case 1:
$productString = "Manikure";
break;
case 2:
$productString = "Damp";
break;
case 3:
$productString = "Massage";
break;
default:
echo 'Sneaky bastard. There\'s no way you could be here';
}
} else {
echo 'Sneaky bastard. You shouldn\'t be here.';
}
?>
<br><br>
<?php
global $productString;
if (isset($_POST["product"])) { ?>
<div class="container">
<div class="jumbotron">
<div class="progress" style="height: 20px;">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 40%;" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100">40% </div>
</div>
<h2 class="display-3">2. Vælg dato</h2>
<form method="POST" action="order-time.php">
<div class="form-group col-md-3" style="display: none;"> <!--Lav en skjult select. Dette sørger for at vores information om select kommer med fra sidste side.-->
<label for="product">Produkt</label>
<select id="product" class="form-control" name="product" >
<option value='<?php echo $_POST["product"]; ?>'><?php echo $productString; ?></option>
</select>
</div>
<!-- <div class="form-group">
<label for="disabledProduct">Produkt</label>
<select id="disabledProduct" class="form-groupform-control" disabled>
<option value='<?php #echo $_GET["product"]; ?>'><?php #echo $productString; ?></option>
</select>
</div>
-->
<div class="form-group col-md-3">
<label for="orderdate">Dato</label>
<input type="date" id="orderdate" class="form-control" name="date" required>
</div>
<hr>
<a href="#" onclick="window.history.back();" class="btn btn-primary btn-lg float-left">Tilbage</a>
<button class="btn btn-primary btn-lg float-right" type="submit">Næste</button>
</form>
<?php } ?>
</div> <!-- Validatoren rapporterer disse tags som stray div tags, det er de ikke. -->
</div>
<?php require("footer.php"); ?>