-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.php
194 lines (194 loc) · 11.6 KB
/
product.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
<?php
require 'includes/common.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Product Lifestyle Store</title>
<meta charset="UTF-8">
<meta name="description" content="LifeStyle Store India's faishon e-store."/>
<meta name="keywords" content="camera, watches, shirts"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css">
<script type="text/javascript" src="bootstrap/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<link href="css/index.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php
include 'includes/header.php';
include 'includes/check-if-added.php';
?>
<div class="container">
<div class="jumbotron" style="margin-top: 80px;">
<h1>Welcome to our Lifestyle Store!</h1>
<p>We have the best cameras, watches and shirts for you. No need to hunt around, we have all in one place.</p>
</div>
<div id="Cameras" class="row text-center">
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/nikon.jpg" alt="camera"/>
<div class="caption">
<h3>Nikon</h3>
<p>Price:Rs.36000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,1,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=1" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/canon.jpg" alt="camera"/>
<div class="caption">
<h3>Canon</h3>
<p>Price:Rs.55000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,2,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=2" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/sony.jpg" alt="camera"/>
<div class="caption">
<h3>Sony</h3>
<p>Price:Rs.60000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,3,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=3" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/lumix.jpg" alt="camera"/>
<div class="caption">
<h3>Lumix</h3>
<p>Price:Rs.69999.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,4,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=4" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
</div>
<div id="Watches" class="row text-center">
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/blue_angles.jpg" alt="watch"/>
<div class="caption">
<h3>Blue Angles</h3>
<p>Price:Rs.11000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,5,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=5" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/rolex.jpg" alt="watch"/>
<div class="caption">
<h3>Rolex</h3>
<p>Price:Rs.75000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,6,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=6" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/jack_pierre.jpg" alt="watch"/>
<div class="caption">
<h3>Jack Pierre</h3>
<p>Price:Rs.9999.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,7,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=7" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/un_watch.jpg" alt="watch"/>
<div class="caption">
<h3>UN Watch</h3>
<p>Price:Rs.11999.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,8,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=8" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
</div>
<div id="Shirts" class="row text-center">
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/auzfs.jpg" alt="shirt"/>
<div class="caption">
<h3>Auzfs</h3>
<p>Price:Rs.1600.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,9,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=9" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/armani.jpg" alt="shirt"/>
<div class="caption">
<h3>Armani</h3>
<p>Price:Rs.5000.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,10,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=10" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/lee_cooper.jpg" alt="shirt"/>
<div class="caption">
<h3>LEE Cooper</h3>
<p>Price:Rs.900.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,11,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=11" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
<div class="col-md-3 col-sm-6 thumbnail">
<img src="img/suitup.jpg" alt="shirt"/>
<div class="caption">
<h3>Suit Up</h3>
<p>Price:Rs.999.00</p>
<?php if (!isset($_SESSION['email'])) { ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php } else { if (check_if_added_to_cart($con,12,$_SESSION['id'])){
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>'; } else { ?>
<a href="includes/cart-add.php?id=12" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php } } ?>
</div>
</div>
</div>
</div>
<?php
include 'includes/footer.php';
?>
</body>
</html>