-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.php
269 lines (256 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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/product.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="https://kit.fontawesome.com/9d805968ce.js" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<section class="header">
<?php require ('header.php');?>
</section>
<section class="content_product">
<section class="weddingDress">
<div class="top_product">
<div class="product_title_box">
<img class="before_title" src="asset/icon/before_title.png" alt="before_title">
<div class="title_product pink_dark">لباس های عروس</div>
<img class="after_title" src="asset/icon/after_title.png" alt="after_title">
</div>
<a href="show_more.php?index=dress" class="show_more">نمایش بیشتر</a>
</div>
<!-- start of dress -->
<div class="contentWeddingDress">
<?php
$connect=mysqli_connect('localhost','root','','arooskhanoom');
$sql='select * from dress';
$result=mysqli_query($connect,$sql);
while($row=mysqli_fetch_array($result))
{
$st = $row['pic'];
if (strpos($st, 'product') !== false)
{
echo '
<div class="card">
<a href="eachProduct.php?ID=dress,'.$row['ID'].'">
<div class="img img_pink">
<img class="img_product" src="asset/img/dress/'.$row['pic'].'" alt="ls">
</div>
<div class="box_content">
<h3 class="price">'.$row['price'].'تومان</h3>
<p class="productDesc">'.$row['descript'].'</p>
<div class="star">
<p>'.$row['star'].'</p>
<i class="yellow fa-sharp fa-solid fa-star"></i>
</div>
</div>
</a>
</div>
';
}
}
?>
<!--end of dress -->
</section>
<section class="jwelry margin_top_60">
<div class="top_product">
<div class="product_title_box">
<img class="before_title" src="asset/icon/before_title.png" alt="before_title">
<div class="title_product pink_dark">جواهرات</div>
<img class="after_title" src="asset/icon/after_title.png" alt="after_title">
</div>
<a href="show_more.php?index=jewellery" class="show_more">نمایش بیشتر</a>
</div>
<!-- start of jewelry -->
<div class="contentJwerly">
<?php
$sql='select * from jewellery';
$result=mysqli_query($connect,$sql);
while($row=mysqli_fetch_array($result))
{
$st = $row['pic'];
if (strpos($st, 'product') !== false) {
echo '
<div class="card">
<a href="eachProduct.php?ID=jewellery,'.$row['ID'].'">
<div class="img img_blue">
<img class="img_product" src="asset/img/jewellery/'.$row['pic'].'" alt="jwelry">
</div>
<div class="box_content">
<h3 class="price">'.$row['price'].'تومان</h3>
<p class="productDesc">'.$row['descript'].' </p>
<div class="star">
<p>'.$row['star'].'</p>
<i class="yellow fa-sharp fa-solid fa-star"></i>
</div>
</div>
</a>
</div>';
}}
?>
<!-- end of jewelry -->
</section>
<section class="shoes margin_top_60">
<div class="top_product">
<div class="product_title_box">
<img class="before_title" src="asset/icon/before_title.png" alt="before_title">
<div class="title_product pink_dark">کفش ها</div>
<img class="after_title" src="asset/icon/after_title.png" alt="after_title">
</div>
<a href="show_more.php?index=shoes" class="show_more">نمایش بیشتر</a>
</div>
<!-- start of shoes -->
<div class="contentShoes">
<?php
$sql='select * from shoes';
$result=mysqli_query($connect,$sql);
while($row=mysqli_fetch_array($result)) {
$st = $row['pic'];
if (strpos($st, 'product') !== false) {
echo '
<div class="card">
<a href="eachProduct.php?ID=shoes,' . $row['ID'] . '">
<div class="img img_pink">
<img class="img_product" src="asset/img/shoes/' . $row['pic'] . '" alt="shoes">
</div>
<div class="box_content">
<h3 class="price">' . $row['price'] . 'تومان </h3>
<p class="productDesc">' . $row['descript'] . ' </p>
<div class="star">
<p>' . $row['star'] . '</p>
<i class="yellow fa-sharp fa-solid fa-star"></i>
</div>
</div>
</a>
</div>';
}
}
?>
</div>
</section>
<section class="toor margin_top_60">
<div class="top_product">
<div class="product_title_box">
<img class="before_title" src="asset/icon/before_title.png" alt="before_title">
<div class="title_product pink_dark">تور های سر</div>
<img class="after_title" src="asset/icon/after_title.png" alt="after_title">
</div>
<a href="show_more.php?index=toor" class="show_more">نمایش بیشتر</a>
<!-- start of toor -->
</div>
<div class="contentToor">
<?php
$sql='select * from toor';
$result=mysqli_query($connect,$sql);
while($row=mysqli_fetch_array($result)) {
$st = $row['pic'];
if (strpos($st, 'product') !== false) {
echo '
<div class="card">
<a href="eachProduct.php?ID=toor,'.$row['ID'].'">
<div class="img img_blue">
<img class="img_product" src="asset/img/toor/' . $row['pic'] . '" alt="toor">
</div>
<div class="box_content">
<h3 class="price">' . $row['price'] . 'تومان</h3>
<p class="productDesc">' . $row['descript'] . '</p>
<div class="star">
<p>' . $row['star'] . '</p>
<i class="yellow fa-sharp fa-solid fa-star"></i>
</div>
</div>
</a>
</div>';
}
}
?>
</div>
<!-- end of toor -->
</section>
<section class="taj margin_top_60">
<div class="top_product">
<div class="product_title_box">
<img class="before_title" src="asset/icon/before_title.png" alt="before_title">
<div class="title_product pink_dark">تاج ها</div>
<img class="after_title" src="asset/icon/after_title.png" alt="after_title">
</div>
<a href="show_more.php?index=taj" class="show_more">نمایش بیشتر</a>
</div>
<!-- start of taj -->
<div class="contentTaj">
<?php
$sql='select * from taj';
$result=mysqli_query($connect,$sql);
while($row=mysqli_fetch_array($result)) {
$st = $row['pic'];
if (strpos($st, 'product') !== false) {
echo '
<div class="card">
<a href="eachProduct.php?ID=taj,' . $row['ID'] . '">
<div class="img img_pink">
<img class="img_product" src="asset/img/taj/' . $row['pic'] . '" alt="taj">
</div>
<div class="box_content">
<h3 class="price">' . $row['price'] . 'تومان</h3>
<p class="productDesc">' . $row['descript'] . ' </p>
<div class="star">
<p>' . $row['star'] . '</p>
<i class="yellow fa-sharp fa-solid fa-star"></i>
</div>
</div>
</a>
</div>';
}
}
mysqli_close($connect);
?>
</div>
<!-- end of taj -->
</section>
</section>
<section class="footer">
<div class="containerFooter">
<div class="footerRight">
<div class="rightTop">
<img class="logo_footer" src="asset/logo/logo-no-background.png" alt="logo">
</div>
<div class="rightBottom">
<h3>درباره ما</h3>
<p>مزون عروس خانوم جهت رفاه شما عروس خانم های گل تاسیس شد و با
پشتیبانی 24 ساعته با کیفیت بالا در خدمت شماست.</p>
</div>
</div>
<div class="footerleft">
<div class="leftTop">
<div class="news">
<h3 class="newsDesc margin_bottom_20">آیا میخواهید از خبرنامه های ما آگاه بشید؟</h3>
<div class="newsInput">
<input type="text" placeholder="لطفا ایمیل خود را وارد کنید.">
<button>ثبت</button>
</div>
</div>
</div>
<div class="leftBottom">
<div class="social">
<h3 class="margin_bottom_20">ما را در شبکه های اجتماعی دنبال کنید</h3>
<div class="socialIcon">
<img src="asset/icon/facebook.svg" alt="facebook">
<img src="asset/icon/twitter.svg" alt="twitter">
<img src="asset/icon/instagram.svg" alt="instagram">
<img src="asset/icon/telegram.svg" alt="telegram">
</div>
</div>
</div>
</div>
</div>
<div class="copyRight">تمامی حقوق این سایت برای مزون <span class="pink">عروس خانوم </span> محفوظ است</div>
</section>
<script src="js/main.js"></script>
</body>
</html>