-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
367 lines (321 loc) · 12.9 KB
/
index.php
File metadata and controls
367 lines (321 loc) · 12.9 KB
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<?php
//menyambungkan koneksi
include 'config/koneksi.php';
$content = $_GET['content'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Watchout</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="layout.css">
<script src="bootstrap/jquery-3.2.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
</button>
<a class="navbar-brand" href="index.php?content=home">Watchout</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="index.php?content=">Categories
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="index.php?content=woman">Woman</a></li>
<li><a href="index.php?content=man">Man</a></li>
<li><a href="index.php?content=kids">Kids</a></li>
</ul>
</li>
<li><a href="index.php?content=about">About Us</a></li>
<li><a href="index.php?content=buy">How to buy?</a></li>
<li><a href="index.php?content=faq">FAQ & Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php?content=confirm">Payment Confirmation</a></li>
<li><a href="#" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>
<br><br>
<div>
<div>
<?php
if ($content=='home')
include 'awal.php';
else if ($content=='woman')
include 'woman.php';
else if ($content=='woman2')
include 'woman2.php';
else if ($content=='man')
include 'man.php';
else if ($content=='kids')
include 'kids.php';
else if ($content=='about')
include 'about.php';
else if ($content=='buy')
include 'buy.php';
else if ($content=='buy2')
include 'buy2.php';
else if ($content=='buy3')
include 'buy3.php';
else if ($content=='buy4')
include 'buy4.php';
else if ($content=='buy5')
include 'buy5.php';
else if ($content=='buy6')
include 'buy6.php';
else if ($content=='buy7')
include 'buy7.php';
else if ($content=='buy8')
include 'buy8.php';
else if ($content=='buy9')
include 'buy9.php';
else if ($content=='buy10')
include 'buy10.php';
else if ($content=='buy11')
include 'buy11.php';
else if ($content=='buy12')
include 'buy12.php';
else if ($content=='faq')
include 'faq.php';
else if ($content=='signup')
include 'signup.php';
else if ($content=='confirm')
include 'confirm.php';
?>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title" align="center">Login</h2>
<p align="center"><sup><i>Please, login first before shopping!</i></sup></p>
</div>
<div class="modal-body">
<form action="config/prosesloginuser.php" method="POST" class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" name="username" for="username">Username:</label>
<div class="col-sm-10">
<input type="username" class="form-control" name="username" placeholder="Enter your username" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" name="password" for="password">Password:</label>
<div class="col-sm-10">
<input type="password" class="form-control" name="password" id="password" placeholder="Enter your password" required>
</div>
</div>
</div>
<div class="modal-footer">
<p align="left"><sub>Don't have an account? <a href="index.php?content=signup">Click here</a> for sign up!</sub></p>
<button type="submit" class="btn btn-success">Submit</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</form>
</div>
</div>
<br>
<footer class="container-fluid text-center">
<div class="container-fluid text-left">
<table>
<tr>
<td width="10%"><b>Wacthouters</b></td>
<td width="10%"><b>Customer Service</b></td>
<td width="10%"><b>Features</b></td>
<td width="10%"><b>More Information</b></td>
</tr>
<tr>
<td><a href="index.php?content=about" data-toggle="tooltip" data-placement="right" title="About Us">About Us</a></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Contact Us">Contact Us</a></td>
<td><a href="index.php?content=ecoupon" data-toggle="tooltip" data-placement="right" title="eCoupon">eCoupon</a></td>
<td>
<table width="120px">
<tr>
<td><a href="http://www.facebook.com"><img align="left" src="gambar/pic10.png" height="20px" width="20px"></a></td>
<td><a href="http://www.twitter.com"><img align="left" src="gambar/pic11.png" height="20px" width="20px"></a></td>
<td><a href="http://www.gmail.com"><img align="left" src="gambar/pic12.png" height="20px" width="25px"></a></td>
<td><a href="http://www.instagram.com"><img align="left" src="gambar/pic13.png" height="20px" width="20px"></a></td>
<td><a href="http://www.whatsapp.com"><img align="left" src="gambar/pic14.png" height="20px" width="20px"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><a href="index.php?content=about" data-toggle="tooltip" data-placement="right" title="Detailed Expenditure and Low Cost">Detailed Expenditure and Low Cost</a></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Store Location">Store Location</a></td>
<td><a href="index.php?content=ecoupon" data-toggle="tooltip" data-placement="right" title="Write & Win">Write & Win</a></td>
</tr>
<tr>
<td><a href="index.php?content=about" data-toggle="tooltip" data-placement="right" title="Behind The Scenes">Behind The Scenes</a></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Central Service">Central Service</a></td>
<td><a href="index.php?content=ecoupon" data-toggle="tooltip" data-placement="right" title="Watchout Point">Watchout Point</a></td>
</tr>
<tr>
<td></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="How to Buy?">How to Buy?</a></td>
<td></td>
<td><a href="index.php?content=ecoupon" data-toggle="tooltip" data-placement="right" title="Contact Us"></a><b>Contact Us</b></td>
</tr>
<tr>
<td></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Product Returns">Product Returns</a></td>
<td></td>
<td>021-88354242</td>
</tr>
<tr>
<td></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Terms and Conditions">Terms and Conditions</a></td>
<td></td>
<td><sub><i>Central Office: Monday - Friday 09:00-16:00</i></sub></td>
</tr>
<tr>
<td></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Privacy Policy">Privacy Policy</a></td>
<td></td>
<td><sub><i>Saturday 09:00-12:00</i></sub></td>
</tr>
<tr>
<td></td>
<td><a href="index.php?content=contact" data-toggle="tooltip" data-placement="right" title="Safety Tips of Transactions">Safety Tips of Transactions</a></td>
<td></td>
<td><sub><i>Natas Street, RT 011/02 Blok F No.88 Jakarta 17188</i></sub></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td><sub><i>Shop: Everyday 09:00-16:00</i></sub></td>
</tr>
</table>
<br>
<br>
<table width="100%">
<tr>
<td><b>We accept payments from</b></td>
<td><b>Our Banking</b></td>
</tr>
<tr>
<td width="75%">
<img width="70" height="50" src="gambar/pic18.png">
<img width="55" height="20" src="gambar/pic19.png">
<img width="85" height="30" src="gambar/pic20.png">
<img width="30" height="30" src="gambar/pic21.png">
<img width="40" height="30" src="gambar/pic22.png">
<img width="70" height="40" src="gambar/pic23.png">
</td>
<td><img width="85" height="30" src="gambar/pic20.png"> <i>7144-555-38383888</i></td>
</tr>
</table>
<br>
<p><b>Translate this page</b></p>
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<p><i>You can translate the content of this page by selecting a language in the select box.</i></p>
</div>
<button onclick="topFunction()" id="myBtn" title="Go to top"><span class="glyphicon glyphicon-arrow-up"></span> Go to TOP</button>
<hr>
<p>2017 © Erma Noviana | 2015230014. All Rights Reserved.</p>
<p>Powered by: <a data-toggle="tooltip" data-placement="right" title="Click me!" href="index.php">Watchout.com</a></p>
</footer>
<script>
$(document).ready(function()
{
$('[data-toggle="tooltip"]').tooltip();
});
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // For Chrome, Safari and Opera
document.documentElement.scrollTop = 0; // For IE and Firefox
}
function move() {
var elem = document.getElementById("myBar");
var width = 10;
var id = setInterval(frame, 1);
function frame() {
if (width >= 100) {
clearInterval(id);
} else {
width++;
elem.style.width = width + '%';
elem.innerHTML = width * 1 + '%';
}
}
}
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight){
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
}
}
$(document).ready(function() {
$('#datePicker')
.datepicker({
format: 'mm/dd/yyyy'
})
.on('changeDate', function(e) {
// Revalidate the date field
$('#eventForm').formValidation('revalidateField', 'date');
});
$('#eventForm').formValidation({
framework: 'bootstrap',
icon: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
name: {
validators: {
notEmpty: {
message: 'The name is required'
}
}
},
date: {
validators: {
notEmpty: {
message: 'The date is required'
},
date: {
format: 'MM/DD/YYYY',
message: 'The date is not a valid'
}
}
}
}
});
});
</script>
</body>
</html>