-
Notifications
You must be signed in to change notification settings - Fork 0
/
alcoholic.php
160 lines (115 loc) · 3.9 KB
/
alcoholic.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
<?php include 'functions.php' ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Alcoholic Drinks</title>
<link rel="stylesheet" href="styles/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css" />
<style>
.main-nav li a{
color: black;
}
</style>
</head>
<body>
<!----------------------------Header and navigation ----------------->
<div class="top">
<h3>Get Special 40% off on all the alcoholic drinks above £ 10/-</h3>
</div>
<header>
<div class="row">
<div class="logo">
<img src="images/Logo.png " height="150px" width="200px">
</div>
<ul class="main-nav">
<li><a href="index.php">Home</a></li>
<li><a href="Alcoholic.php">Alcoholic</a></li>
<li><a href="Non-alcoholic.php">Non-Alcoholic</a></li>
<?php
if(isset($_SESSION['username'])){?>
<li><a href="logout.php">Logout </a></li>
<?php }else{ ?>
<li><a href="login.php">Login </a></li>
<li><a href="register.php">Register </a></li>
<?php } ?>
<li><a href="mycart.php">My Cart </a></li>
<li><a href="Contact.php">Contact us </a></li>
</ul>
</div>
<div class="Text">
<p>Taste a life full of <br>celebration.</p>
</div>
</header>
<!----------------------------All the products ----------------->
<p>Our all available Alcoholic Drinks </p>
<?php
$drinks = get_drinks();
?>
<main>
<div class="store">
<div class="container">
<?php if (mysqli_num_rows($drinks)) { ?>
<div class="drinks flex">
<?php foreach ($drinks as $drink) { ?>
<div class="drink">
<div class="image">
<img src="assets/images/<?= $drink['image'] ?>" alt="" />
</div>
<div class="content">
<h3><?= $drink['name'] ?></h3>
<p class="description">
<?= $drink['description'] ?>
</p>
<p class="price">£<?= $drink['price'] ?></p>
<div class="flex quantity">
<span class="add" data-item="<?= $drink['d_id'] ?>"> + </span>
<span class="number" id="number-<?= $drink['d_id'] ?>">1</span>
<span class="subtract" data-item="<?= $drink['d_id'] ?>"> - </span>
</div>
<div class="add-to-basket">
<form action="add-to-cart.php" method="POST">
<input type="hidden" name="d_id" value="<?= $drink['d_id'] ?>">
<input type="hidden" id="item-<?= $drink['d_id'] ?>" name="quantity" value="1">
<button type="submit" name="add-to-cart" class="btn">Add To Basket</button>
</form>
</div>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</main>
<!----------------------------Footer ----------------->
<div class="footer">
<div class="conatiner">
<div class="row">
<div class="footer-col-1">
<img src="Images/play-store.png" width="200px" height="50px">
<img src="Images/app-store.png" width="200px" height="50px">
<p id="Para">Download our app for android and ios</p>
</div>
<div class="footer-col-2">
<img src="Images/Logo.png" width="190px" height="150px">
<p id="para">Our purpose is to sustainably make the pleasure.</p>
</div>
<div id="Follow">
<h5 id="us">Follow us</h5>
<ul>
<li>Facebook</li>
<li>Twitter</li>
<li>Instagram</li>
<li>Youtube</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>