-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
235 lines (154 loc) · 5.13 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<title>Mom's Choice</title>
<link rel="icon" href="pictures/title1.png">
<link rel="stylesheet" type="text/css" href="styles/home.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.css">
<style>
#theme1
{
background: url(pictures/theme1.png);
}
#footer1
{
background: url(pictures/theme2.jpg);
}
</style>
</head>
<body>
<div id = "theme1">
<img src="pictures/56.png" width="350" height="150">
</div>
<hr>
<!--Start of menue bar-->
<!--Main Menue bar-->
<div class="nav1">
<ul class="nav2">
<li class="list1"><div class="activeHome"><a class="nav" href="#">HOME</a></div></li>
<li class="list1"><a class="nav" href="accessories.php">ACCESSORIES</a>
</li>
<li class="list1"><a class="nav" href="AboutUs.html">ABOUT US</a></li>
<li class="list1"><a class="nav" href="contactus.html">CONTACT US</a></li>
<li class="list1"><a class="nav" href="AdminDashboard.html">ADMINISTRATION</a></li>
</ul>
<!---Sub Menue(Cart,Profile and Search-bar)--->
<div class="cart">
<a class="cart1" href="bill.php"><i class="fas fa-shopping-cart fa-2x"></i></a>
</div>
<div class="profile">
<div class= "dropboxprof">
<div class="profile1"><i class="fas fa-user-circle fa-2x"></i></div>
<div class = "droplistprof">
<a href="login.php">Sign In</a>
<a href="registration.html">Sign Up</a>
</div>
</div>
</div>
<div class = "search-bar">
<form action ="action.php" method="GET">
<input type="text" placeholder="Search for product..." name="search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
</div>
<!--end of Sub Menue(Cart,Profile and Search-bar)-->
<!--end of menue bar-->
</br>
<!--silde show begins-->
<div class="slideshow">
<!--silde show image 1-->
<div class="webSlides">
<div class="slideshownumText">1/4</div>
<img src ="pictures/baby5.jpg" style="width:100%" width="1000px" height="400">
<div class="slideundertxt">Picture 1</div>
</div>
<!--silde show image 2-->
<div class="webSlides">
<div class="slideshownumText">2/4</div>
<img src ="pictures/baby7.jpg" style="width:100%" width="1000px" height="400">
<div class="slideundertxt">Picture 2</div>
</div>
<!--silde show image 3-->
<div class="webSlides">
<div class="slideshownumText">3/4</div>
<img src ="pictures/baby4.jpg" style="width:100%" width="1000px" height="400">
<div class="slideundertxt">Picture 3</div>
</div>
<!--silde show image 4-->
<div class="webSlides">
<div class="slideshownumText">4/4</div>
<img src ="pictures/baby10.jpg" style="width:100%" width="1000px" height="400">
<div class="slideundertxt">Picture 4</div>
</div>
</div>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
</div>
<script src="js/myScripthome.js">
</script>
</br>
<!--silde show ends-->
<h1><center>Baby & Kids Accessories</center></h1>
<hr>
<!--------Connect to the database----------------->
<?php
include_once 'config.php';
$sql = "SELECT * FROM item";
$result = $conn->query($sql);
if($result-> num_rows > 0)
{
while($row = $result -> fetch_assoc())
{
$id = $row['Item_id'];
$name = $row['Item_name'];
$price = $row['Item_price'];
$quantity = $row['Quantity'];
$des = $row['description'];
$picName = $row['Item_Picture_Name'];
echo"<div class='Column1'>";
echo" <div class='card1'>";
echo"<img src='uploads/".$row['Item_Picture_Name']."' width='270' height='250'>";
echo" </br> ";
echo" <b>";
echo"<font size='5px' face='cursive'>".$name."</font></b>";
echo"</br>";
echo" <font size='3px' face='cursive'>".$des."</font>";
echo"</br>";
echo"<font size='4px' color='red'>Rs.".$price."</font>";
echo"</br>";
echo"</br>";
echo"<a class='cardbutton' href='viewItem.php?ItmId=$id'>View Item</a>";
echo"<a class='cardbutton1' href='cart.html?ItmId=$id'>Add To Cart</a>";
echo"</div>";
echo"</div>";
}
}
?>
</br>
<!---shopping card end---->
<hr>
<marquee><b><font color="#691360">Mom's Choice - 'Cause little things matter... </font></marquee>
<hr>
<!--footer begin--->
<footer id='footer1'>
<div class="socialmedia">
<a class="socialmedia1" href="https://www.facebook.com"><i class="fab fa-facebook-square fa-2x"></i></a>
<a class="socialmedia1" href="https://www.instagram.com"><i class="fab fa-instagram fa-2x"></i></a>
<a class="socialmedia1" href="https://twitter.com/login"><i class="fab fa-twitter-square fa-2x"></i></a>
<a class="socialmedia1" href="https://www.google.com/intl/si/gmail/about/#"><i class="fab fa-google-plus-square fa-2x"></i></i></a>
<a class="socialmedia1" href="https://www.whatsapp.com"><i class="fab fa-whatsapp-square fa-2x"></i></a>
</div>
<ul class="nav3">
<li class="list2"><div class="activeHome"><a class="nav" href="#">HOME</a></div></li>
<li class="list2"><a class="nav" href="accessories.php">ACCESSORIES</a></li>
<li class="list2"><a class="nav" href="AboutUs.html">ABOUT US</a></li>
<li class="list2"><a class="nav" href="contactus.html">CONTACT US</a></li>
</ul>
</footer>
<!--footer End--->
</body>
</html>