-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.modal.koeb.php
300 lines (223 loc) · 8.37 KB
/
index.modal.koeb.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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<!-- Modal til at bestille mad (step 2) -->
<div class="modal fade all"
id="super-modal"
tabindex="-1"
role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog"
role="document">
<!--MODAL MED HANDELSBETINGELSER-->
<div id="handelsbetingelser-ved-kob" class="modal-content">
<!--modal header -->
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title"
id="myModalLabel0">Handelsbetingelser for brug af Mahlzeit</h4>
</div>
<!--modal body -->
<div class="modal-body" >
<p>Denne version er en testversion, så ved at bruge tjenesten er du med til at teste!</p>
<p>Fødevarestyrelsen bla bla bla og noget med cvr. Du indvilger i, at hvis du køber fra private,
så er det deres ansvar at lave mad man ikke bliver syg af.
</p>
</div>
<!--modal footer -->
<div class="modal-footer">
<div class="checkbox">
<label>
<input type="checkbox">Jeg accepterer
</label>
</div>
<button type="button"
class="btn btn-default"
data-dismiss="modal">Tilbage
</button>
<button type="button"
class="btn btn-primary"
id="videre1">Det er forstået!
</button>
</div>
</div>
<!--DYNAMISK MODAL MED INFO OM HVAD MAN HAR KLIKKET PÅ-->
<div class="modal-content" id="dynamisk-med-info">
<!-- mysql data will load here -->
<div id="dynamic-content">
<!--modal header -->
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title"
id="myModalLabel">
Køb: <span class="titel_ret-id"></span>
</h4>
</div>
<!--modal body-->
<div class="modal-body">
<h4>Sælgerens beskrivelse af retten</h4>
<p id="beskrivelse_ret-id"></p>
<h4>Afhentning</h4>
<p>Du skal selv afhente din mad
<span class="bold afhent_ret"></span> i tidsrummet <span class="bold afhent_ret_tid"></span> - <span class="bold afhent_ret_tid_10"></span> hos: <br></p>
<p><span class="bold" id="kok_ret-id"></span><br><span class="bold" id="adresse_ret-id"></span><br>
<span class="bold" id="postnummer_ret-id"></span> <span class="bold" id="by_ret-id"></span><br>
</p>
<p><span id="emballage_ret-id"></span></p>
<h4>Allergener i retten</h4>
<p><span id="allergenerlabels"></span></p>
</div>
<!--modal footer-->
<div class="modal-footer">
<button type="button"
class="btn btn-default"
id="tilbage2"
>Tilbage
</button>
<button type="button"
class="btn btn-primary"
id="videre2"
>Køb Måltid!
</button>
</div>
</div>
</div>
<!--NY MODAL (BESTIL)-->
<div id="formular-til-bestilling" class="modal-content">
<!--Modal header-->
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Sådan gør du</h4>
</div>
<!--Modal body-->
<div class="modal-body">
<p>Dette er kun en testversion, så derfor foregår betaling kun direkte til kokken via mobilepay.</p>
<p>Når du trykker "køb måltid" vil du modtage en mail med kokkens telefonnummer, og du skal straks overføre pengene for at din bestilling er gyldig.</p>
<h4>Din bestilling</h4>
<form method="post"
action="bestil.php"
data-toggle="validator"
role="form"
class="form-group"
id="bestilform">
<!-- antal måltider, som køber vil bestille-->
<div class="form-group">
<label>Antal måltider</label>
<select onmousedown="if(this.options.length>20){this.size=5;}" onchange='this.size=0;' onblur="this.size=0;" id="bestilAntal" class="form-control "
name="antal_ordre">
<option></option>
</select>
</div>
<!-- navn på køber-->
<div class="form-group">
<label for="InputName1">Fulde Navn</label>
<input name="navn_ordre"
type="text"
class="form-control"
id="exampleInputName1"
placeholder="Indtast dit navn">
</div>
<!-- email på køber-->
<div class="form-group">
<label for="InputEmail1">Email</label>
<input name="email_ordre"
type="email"
class="form-control"
id="exampleInputEmail1"
placeholder="Indtast din e-mail"
data-error="Hov! Det er vist ikke en email...">
<div class="help-block with-errors"></div>
</div>
<!-- telefonnummer på køber-->
<div class="form-group">
<label for="InputPhonenumber1">Telefonnummer</label>
<div class="input-group">
<span class="input-group-addon">+45 </span>
<input name="telefonnummer_ordre"
data-minlength="8"
type="tel"
class="form-control"
id="exampleInputPhone1"
placeholder="Indtast dit telefonnummer">
</div>
</div>
</form>
<div>
<table class="table-no-border table-checkout margin-top-bottom-tekstafsnit table table-condensed">
<tr id="noborder">
<td>Du er ved at bestille:</td>
<td></td>
</tr>
<tr id="noborder" class="active">
<th>Ret</th>
<th>Pris</th>
</tr>
<tr id="noborder">
<td><span id="dynamiskBestilling"></span> x <span class="titel_ret-id"></span>, pr. ret</td>
<td><span class="pris_ret-id"></span> kr</td>
</tr>
<tr id="border-top" class="active">
<td>I alt</td>
<td><span id="dynamiskPrisudregning"></span> kr</td>
</tr>
</table>
<p>Betaling foregår via mobilepay. Du får en mail med sælgers telefonnummer.</p>
<p>Bestilling er først gyldig når du har betalt.</p>
</div>
</div>
<!--modal footer-->
<div class="modal-footer">
<button type="button"
class="btn btn-default"
id="tilbage3"
>Tilbage
</button>
<button
type="button"
class="btn btn-primary"
id="submitForm"
form="bestilform"
>Køb Måltid!
</button>
</div>
</div>
<!--NY MODAL-->
<!--oplysning om, at købet er gjort færdig-->
<div id="du-modtager-mail" class="modal-content">
<!--modal header-->
<div class="modal-header">
<button type="button"
class="close"
data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel4">Sådan!</h4>
</div>
<!-- modal body-->
<div class="modal-body">
<p>Du modtager oplysninger pr mail om dit køb!</p>
</div>
<!-- modal footer-->
<div class="modal-footer">
<button type="button"
class="btn btn-primary center-block"
id="afslut"
data-dismiss="modal">Afslut
</button>
</div>
</div>
</div>
</div>
</div>