-
Notifications
You must be signed in to change notification settings - Fork 1
/
product-info.php
207 lines (185 loc) · 8.07 KB
/
product-info.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
<?php
include_once("componet/conn.php");
if(isset($_REQUEST["productid"])){
$id = $_REQUEST["productid"];
$getprodq = "select * from products where pid={$id}";
$excgetq = $con->query($getprodq);
$res = $excgetq->fetch_assoc();
}
else{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- links -->
<link rel="stylesheet" href="style-index.css">
<link rel="stylesheet" href="style-res.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- javascript sw-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css" />
<!-- links -->
<!-- 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=Acme&family=Barlow:wght@500&family=Heebo:wght@100&family=Quicksand:wght@500&family=Raleway:wght@300&family=Ubuntu:wght@700&display=swap" rel="stylesheet">
<!-- fonts -->
<title>TeachWeb</title>
</head>
<body>
<?php include "componet/navbar.php"; ?>
<div class="container">
<div class="detail-navgaction">
<a href="index.php">Home</a>
<span>/</span>
<p><?php echo $res["pname"]; ?></p>
</div>
<div class="product-detail">
<div class="product-detail-img">
<img src="<?php echo $res["pimg"]; ?>" alt="product-img">
</div>
<div class="product-detail-info">
<div class="product-info-title">
<h2><?php echo $res["pname"]; ?></h2>
</div>
<div class="product-info-desc">
<p><?php echo $res["desc"]; ?></p>
</div>
<div class="product-info-price">
<h1>₹<?php echo $res["price"]; ?></h1>
<h3>-9%</h3>
</div>
<div class="product-into-qtybtn">
<label for="qty">Quantity:</label>
<input type="number" value="1" name="pqty">
</div>
<div class="product-info-btn">
<button name="addcart">Add To Cart</button>
<button><i class="far fa-heart"></i></button>
</div>
<div class="product-info-buy-now">
<button>Buy Now</button>
</div>
<!-- <div class="product-info-fulldesc">
<ul>
<li>The EvoFox Elite Ops Wireless Gamepad with Type C Charging is the ideal Android TV Gamepad. With all Android TVs supporting at least basic Gaming, a Gamepad at home is a must. Use the provided USB Extender Cable on your TV to ensure optimal wireless performance.</li>
<li>This Wireless Controller also supports Windows with X input and D input modes, and PS3s. It automatically detects and changes the gamepad mode based on your system. Simply Plug and Play!</li>
</ul>
</div> -->
</div>
</div>
</div>
<div class="bigcontainer">
<div class="other-product">
<div class="products-cards">
<div class="other-product-hading">
<h1>Related Products</h1>
<button>View All <span> →</span></button>
</div>
<div class="cards-group">
<?php
$getreletedq = "select * from products where cid={$res["cid"]} limit 4";
$excreltedq = $con->query($getreletedq);
while($rows = $excreltedq->fetch_assoc()){
?>
<div class="card">
<div class="card-fav">
<button><i class="far fa-heart"></i></button>
</div>
<div class="card-img">
<img src="<?php echo $rows["pimg"] ?>" alt="product">
</div>
<div class="card-text">
<div class="card-text-title">
<h2><?php echo $rows["pname"] ?></h2>
</div>
<div class="card-text-price">
<span class="disprice">₹ <?php echo $rows["dis-price"] ?></span>
<span class="price">₹ <?php echo $rows["price"] ?></span>
<span class="disper"></span>
</div>
<div class="card-text-cart">
<button>Add To Cart</button>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<!-- footer -->
<footer>
<div class="content">
<div class="top">
<div class="logo-details">
<span class="logo_name">EZSOP</span>
</div>
<div class="media-icons">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div class="link-boxes">
<ul class="box">
<li class="link_name">menu </li>
<li><a href="#">Home</a></li>
<li><a href="#">Contact us</a></li>
<li><a href="#">About us</a></li>
<li><a href="#">Service</a></li>
</ul>
<ul class="box">
<li class="link_name">Services</li>
<li><a href="#">Home Delevary</a></li>
<li><a href=""> Fast Delevary</a></li>
<li><a href=""> Best Product</a></li>
</ul>
<ul class="box">
<li class="link_name">Account</li>
<li><a href="#">Sign Up</a></li>
<li><a href="#">Login</a></li>
</ul>
<ul class="box">
<li class="link_name">Devaloper</li>
<li>Patel Jainex</li>
<li>Parmar Rohit</li>
<li>Makadiya Parth</li>
<li>Vaghani Tirth</li>
<li>Parmar Jay</li>
</ul>
<ul class="box input-box">
<li class="link_name">Subscribe</li>
<li><input type="text" placeholder="Enter your email"></li>
<li><input type="button" value="Subscribe"></li>
</ul>
</div>
</div>
<div class="bottom-details">
<div class="bottom_text">
<span class="copyright_text">Copyright © 2022 <a href="#">EZSOP.</a>All rights
reserved</span>
<span class="policy_terms">
<a href="#">Privacy policy</a>
<a href="#">Terms & condition</a>
</span>
</div>
</div>
</footer>
<!-- footer -->
</div>
<!-- javascript sw -->
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script src="index.js"></script>
</body>
</html>