-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparmesancheesedescription.php
209 lines (163 loc) · 7.47 KB
/
parmesancheesedescription.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
<?php session_start(); ?>
<?php include('dbcon.php'); ?>
<?php
$connect = mysqli_connect('remotemysql.com:3306', 'HTADFpjYkD', 'wfJDJmJgdL', 'HTADFpjYkD');
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="project.css">
<meta charset="utf-8">
<title>Parmesan Cheese Wheel</title>
<link rel="icon" href="milkicon.png">
</head>
<body>
<!-- Nav bar -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<img src="trolley.png" class="navbar-brand" style="width: 40px;">
<a class="navbar-brand" href="#">Online Grocery Shopping</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto mx-auto">
<li class="nav-item active">
<a class="nav-link" href="home.php">Home <span class="sr-only"></span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="AllProducts.php">All Products</a>
</li>
<li class="nav-item dropdown active">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Aisles
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="aisles.php?aisle=Meat">Meat</a>
<a id="disabled" class="dropdown-item" href="aisles.php?aisle=Dairy">Dairy</a>
<a id="disabled" class="dropdown-item" href="aisles.php?aisle=Beverages">Beverages</a>
<a id="disabled" class="dropdown-item" href="aisles.php?aisle=Detergents">Detergents</a>
<a id="disabled" class="dropdown-item" href="aisles.php?aisle=Snacks">Snacks</a>
<a id="disabled" class="dropdown-item" href="aisles.php?aisle=Alcohol">Alcohol</a>
</div>
</li>
<li class="nav-item active">
<a class="nav-link disabled" href="contact.php">Contact Us</a>
</li>
</ul>
<br>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" style="background-color: #343A40;">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
<?php if(isset($_SESSION['loggedin'])){ ?>
<a class="btn btn-outline-primary ml-1" href="logout.php">Log Out</a>
<?php }else{ ?>
<a class="btn btn-outline-primary ml-1" href="signinpage.php">Sign in</a>
<?php } ?>
</form>
</div>
</nav>
<!-- go to cart -->
<div class="d-flex flex-column flex-md-row align-items-center p-2 px-md-4 bg-white border-bottom box-shadow">
<h5 class="my-0 mr-md-auto font-weight-normal" style="background-color: white;"></h5>
<nav class="my-2 my-md-0 mr-md-3">
</nav>
<a class="btn btn-outline-primary" href="cart.php">Go To Cart <img src="trolley.png" width="30px" height="30px"> </a>
</div>
<!-- main section -->
<main>
<div class="row justify-content-center">
<div class="col-sm-6 col-md-6 col-xl-3 mb-3 pr-0">
<img class="img-thumbnail mb-3 pr-0" src="ParmesanCheese.png" alt="Parmesan Cheese Wheel" width="960" height="600">
</div>
<div class="col-sm-6 col-md-6 col-xl-3 mb-3">
<h5 class="mb-4 pl-2" style="text-align: left;">Parmesan Cheese Wheel</h5>
<h5 class="mb-1 pl-2" id="price" style="text-align: left;">$24.50</h5>
<h6 class="mb-5 pl-2" style="text-align: left;"><em>$11.00/lb</em></h6>
<!-- more description -->
<div id="accordion">
<div class="card">
<div class="card-header" id="headingTwo">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
More Description
</button>
</h5>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
This savory cheese wheel is aged for 24 months and is imported directly from Italy where it is made with the freshest milk there is.
</div>
</div>
</div>
</div>
<!--Add to cart -->
<?php
$query = "SELECT * FROM products ORDER BY id ASC";
$result = mysqli_query($connect, $query);
if (mysqli_num_rows($result) > 0) {
while( $row = mysqli_fetch_array($result) );
{
?>
<form method="post" action="cart.php?action=add&id=8">
<div class="form-group mt-4">
<label for="exampleInputPassword1">Quantity</label>
<input id="cartCount" onchange="updateCartPrice()" type="number" style="width: 100px;" class="form-control" value="1" id="cart" placeholder="Quantity" name="quantity">
</div>
<input type="hidden" name="hidden_name" value="Parmesan Cheese Wheel" >
<input type="hidden" name="hidden_price" value="24.50">
<button id="addToCartButton" type="submit" class="btn btn-primary" name="add">Add To Cart</button>
</form>
<?php
}
}
?>
</div>
</div>
<script onload="updateCartPrice()" src="addtocart.js"></script>
</main>
<!-- special offer -->
<main>
<div class="jumbotron">
<h2>Special Offer!</h2>
<p class="lead">Free Delivery for orders over $150</p>
</div>
</main>
<!-- footer -->
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-12 col-md">
<p></p>
<small class="d-block mb-3 text-muted"></small>
</div>
<div class="col-6 col-md">
<h5>Contacts</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="contact.php">Manager</a></li>
<li><a class="text-muted" href="contact.php">Supervisor</a></li>
<li><a class="text-muted" href="contact.php">Our Team</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>Careers</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="careers.php">Meat Section</a></li>
<li><a class="text-muted" href="careers.php">Delivery</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>About</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="contact.php">Team</a></li>
<li><a class="text-muted" href="https://www.google.com/maps/place/11011+Bd+Maurice-Duplessis,+Montr%C3%A9al,+QC+H1C+1V3/@45.6660703,-73.5345729,17z/data=!3m1!4b1!4m5!3m4!1s0x4cc8e1759aa6762d:0x80db5bbbc6e3d671!8m2!3d45.6660703!4d-73.5323842" target="_blank">Location</a></li>
<li><a class="text-muted" href="terms.php">Privacy</a></li>
<li><a class="text-muted" href="terms.php">Terms</a></li>
</ul>
</div>
</div>
</footer>
</body>
</html>