-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenuPreferences.php
230 lines (206 loc) · 8.34 KB
/
menuPreferences.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<?php
include('sessionVerify.php');
include('customiseMenu.php');
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/wholeProcess.css">
</head>
<body>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<br><br>
<div class="name"><h2>
MENUNAME
</h2></div>
<br><br>
<center><div class="type"><b>Appetiser</b></div>
<div class="pic"><br><img src="img/foodimg/1.jpg" width="200" height="100"></div>
<div class="name">Add cuisine name here</div>
<div class="desc">Add a description of the image here</div>
<br>
<div class="type"><b>Main Course</b></div>
<div class="pic"><br><img src="img/foodimg/2.jpg" width="200" height="100"></div>
<div class="name">Add cuisine name here</div>
<div class="desc">Add a description of the image here</div>
<br>
<div class="type"><b>Dessert</b></div>
<div class="pic"><br><img src="img/foodimg/3.jpg" width="200" height="100"></div>
<div class="name">Add cuisine name here</div>
<div class="desc">Add a description of the image here</div>
</center>
<br><br>
</div>
</div>
<center style="text-align:center; font:25px arial; font-weight:700; color:black; margin-top:20px;">
Menu Preferences Filtered ...
</center>
<br>
<center>
<div class="responsive" style="margin-left:130px;">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn1" style="background:transparent;">
<img src="(string$filePath1.$menuId[0].$filePath2)" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
echo($menuName[0]);
?>
</b></div>
<br>
</div>
<form action="sendRequestMenuOne.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form>
</div>
<div class="responsive">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn2" style="background:transparent;">
<img src="img/foodimg/2.jpg" alt="Forest" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
echo($menuName[3]);
?>
</b></div>
<br>
</div>
<form action="sendRequestMenuTwo.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form> </div>
<div class="responsive">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn3" style="background:transparent;">
<img src="img/foodimg/3.jpg" alt="Northern Lights" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
echo($menuName[6]);
?>
</b></div>
<br>
</div>
<form action="sendRequestMenuThree.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form>
</div>
</center>
<br><br><br><br><br><br>
<center>
<div class="responsive" style="margin-left:130px;">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn4" style="background:transparent;">
<img src="img/foodimg/4.jpg" alt="Mountains" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
echo($menuName[9]);
?>
</b>
</div>
<br>
</div>
<form action="sendRequestMenuFour.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form>
</div>
<div class="responsive">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn5" style="background:transparent;">
<img src="img/foodimg/5.jpg" alt="Mountains" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
if ((count($menuName)) > 12)
echo($menuName[12]);
?>
</b>
</div>
<br>
</div>
<form action="sendRequestMenuFive.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form>
</div>
<div class="responsive">
<div class="gallery">
<a href="#" type="button" class="button btn-default" id="myBtn6" style="background:transparent;">
<img src="img/foodimg/6.jpg" alt="Mountains" width="300" height="200">
</a>
<div class="menu">
<b>
<?php
if ((count($menuName)) > 15)
echo($menuName[15]);
?>
</b>
</div>
<br>
</div>
<form action="sendRequestMenuSix.php" name="first" method="post">
<input type="submit" class="button btn-primary " style="padding: 14px 95px;"> SELECT </a>
</form>
</div>
</center>
</center>
<div class="clearfix"></div>
<a href="#" type="submit" class="button btn-primary" style="padding: 14px 95px;"> SUBMIT </a>
<script>
// Get the modal
var modal = document.getElementById('myModal');
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
document.getElementById("myBtn1").onclick = function() {
modal.style.display = "block";
}
// When the user clicks the button, open the modal
document.getElementById("myBtn2").onclick = function() {
modal.style.display = "block";
}
// When the user clicks the button, open the modal
document.getElementById("myBtn3").onclick = function() {
modal.style.display = "block";
}
// When the user clicks the button, open the modal
document.getElementById("myBtn4").onclick = function() {
modal.style.display = "block";
}
// When the user clicks the button, open the modal
document.getElementById("myBtn5").onclick = function() {
modal.style.display = "block";
}
// When the user clicks the button, open the modal
document.getElementById("myBtn6").onclick = function() {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</body>
</html>