-
Notifications
You must be signed in to change notification settings - Fork 1
/
kids.php
174 lines (95 loc) · 4.91 KB
/
kids.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kids - CloverEmporium</title>
<!-- Google Web Fonts -->
<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=Open+Sans:wght@400;600&family=Playball&display=swap" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/lightbox/css/lightbox.min.css" rel="stylesheet">
<link href="lib/owlcarousel/owl.carousel.min.css" rel="stylesheet">
<!--CSS-->
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<!-- script link -->
<script src="assets/js/jquery-3.1.1.slim.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</head>
<body>
<?php
require_once("header.php");
include("db_conn.php");
?>
<section class="products" style="margin-bottom: 1000px;">
<div class="container bg-light py-6 my-6 mt-0">
<h1 style="text-align:center;">Our Products</h1>
<p class="text-dark bg-light border border-primary rounded-pill font-weight-bold text-center px-3 py-1 ">
<a href="womens.php">Women's</a> |
<a href="mens.php">Men's</a> |
<a href="kids.php">Kid's</a> </p>
<div class="bulit_icon"><img src="assets/images/bulit-icon.png"></div>
<h2 style="margin:50px 200px 0px 100px; width: 300px; text-align:left; border-bottom: 1px solid #000;">
Kid's Collection</h2>
<!-- <div class="cat">
<h5 style="border-bottom: 1px solid #c8c8c8; padding-bottom: 10px;">Categories</h5>
<div class="cat-content">
<h6><a href="#dresses">Dresses</a></h6>
<h6><a href="#tops">Tops</a></h6>
<h6><a href="#bottoms">Bottoms</a></h6>
</div>
</div> -->
<div class="pro_lists">
<h2 style="border-bottom: 1px dashed #000; padding: 10px;">Boys</h2>
<?php
$sql1="select * from items where product_cat='kids' and item_type='boys'";
$result1=mysqli_query($conn,$sql1);
$count = 1;
while($item=mysqli_fetch_assoc($result1)){
if($count<=21)
$product_id = $item['item_id'];
echo '
<form action="cart_handle.php" method="POST">
<div class="pro_items">
<img src="assets/images/products/'.$item['item_image'].'">
<h5 style="border-bottom: 1px solid #c8c8c8; margin-top: 10px; text-align:center; padding-bottom:5px;">'.$item['item_name'].'</h5>
<p class="text-center" style="font-size: 16px; font-weight: bold; color: #000;">Rs. '.$item['item_price'].'/-</p>
<input type="submit" value="Add to cart" class="cart text-center border-0 rounded-pill py-3 px-4 px-md-5 me-4 btn btn-primary" style="color:#fff; margin-left:30px;">
<input type="hidden" name="product_id" value="'.$product_id.'">
</div>
</form>
';
$count++;
}
?>
</div>
<div class="pro_lists" >
<h2 style="border-bottom: 1px dashed #000; padding: 10px;">Girls</h2>
<?php
$sql1="select * from items where product_cat='kids' and item_type='girls'";
$result1=mysqli_query($conn,$sql1);
$count = 1;
while($item=mysqli_fetch_assoc($result1)){
$product_id = $item['item_id'];
echo '
<form action="cart_handle.php" method="POST">
<div class="pro_items">
<img src="assets/images/products/'.$item['item_image'].'">
<h5 style="border-bottom: 1px solid #c8c8c8; margin-top: 10px; text-align:center; padding-bottom:5px;">'.$item['item_name'].'</h5>
<p class="text-center" style="font-size: 16px; font-weight: bold; color: #000;">Rs. '.$item['item_price'].'/-</p>
<input type="submit" value="Add to cart" class="cart text-center border-0 rounded-pill py-3 px-4 px-md-5 me-4 btn btn-primary" style="color:#fff; margin-left:30px;">
<input type="hidden" name="product_id" value="'.$product_id.'">
</div>
</form>
';
$count++;
}
?>
</div>
</section>
</body>
</html>