-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicrowave.php
188 lines (184 loc) · 8.63 KB
/
microwave.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,200,300,700,600' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:400,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="./css/styleneed.css">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/product.css">
</head>
<body>
<?php
require "database.php";
if(isset($_GET['microwaveid'])){
$product = new product;
$data = $product->productsearch($_GET['microwaveid']);
$productname = $data["productname"];
$productimg = $data["productimg"];
$para1 = $data["para1"];
$para2 = $data["para2"];
$para3 = $data["para3"];
$para4 = $data["para4"];
$para5 = $data["para5"];
$price = $data["price"];
$info = $data["infomation"];
}
if(isset($_GET['search'])){
if($_GET['search']==""){}
else{
redirect("http://localhost:83/productsearch.php?search=".$_GET['search']);
}
}
function redirect($url){
echo '<script>window.location="'.$url.'"</script>';
}
?>
<div style="background-color: black;">
<div class="container">
<div class="row">
<div class="col-sm-3">
<div>
<h1><a href="./index.php">
<img src="./image/logofix6.png" style="height: 65px; ">
</a></h1>
</div>
</div>
<div class="col-sm-6">
<div class="row border">
<div class="search-box">
<div>
<form id="form-search" role="form" method="GET" action="">
<div>
<div class="input-group ml-4" style="width: 100%">
<input type="text" name="search" id="search" class="form-control"
placeholder="Search what you want...">
<span class="input-group-btn">
<button id="btn-search" value="search" class="btn btn" style="background-color: rgb(254, 209, 1);">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mainmenu-area">
<div class="container">
<div class="row">
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a class="taskbar" href="./shoppage.php">Shop Me</a></li>
<li><a class="taskbar" href="./index.php">Home</a></li>
<li><a class="taskbar" href="./contactus.php">Contact Us</a></li>
<li><a class="taskbar" href="./aboutus.php">About Us</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="carousel-inner overwirte" role="listbox" id="backgroundimgproduct"
style="background-image: url(./image/backgroundproductimg.jpg) !important;">
<div>
<div class="single-slide">
<div class="slide-bg slide-one"></div>
<div class="slide-text-wrapper">
<div class="slide-text">
<div class="container">
<div class="row">
<div class="productdivinfo">
<img src="<?php echo $productimg; ?>" class="productimginfo">
<p class="productnameinfo"><?php echo $productname; ?></p>
<p class="productpriceinfo"><?php echo $price; ?></p>
</div>
<div class="col-md-6 col-md-offset-6">
<p class="productintro">Product introduction</p>
<p class="productintrotext"><?php echo $info; ?></p>
<div class="slide-content">
<div style="display: inline-block;" id="feature"><p>Basic product parameter</p>
<ul style="display: inline;">
<li id="parameter"><p>Capacity:<?php echo " ".$para1; ?></p></li>
<li id="parameter"><p>Size<span style="margin-left: 48px;">:<?php echo " ".$para2; ?></span></p></li>
<li id="parameter"><p>Wattage<span style="margin-left: 7px;">:<?php echo " ".$para3; ?></span></p></li>
<li id="parameter"><p>Origin<span style="margin-left: 31.5px;">:<?php echo " ".$para4; ?></span></p></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer-top-area">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6 footeraboutus">
<div class="footer-about-us">
<h2>E<span>Pro</span></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis sunt
id doloribus vero quam laborum quas alias dolores blanditiis iusto consequatur,
modi aliquid eveniet eligendi iure at?</p>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="footer-menu">
<h2 class="footer-wid-title">Categories</h2>
<ul>
<li><p>Fan</p></li>
<li><p>Air conditioner</p></li>
<li><p>Light bulb</p></li>
<li><p>Fridge</p></li>
<li><p>Microwave</p></li>
</ul>
</div>
</div>
<div class="subscribebox">
<div>
<h2 class="subheader">Newsletter</h2>
<p>Sign up to our newsletter and get exclusive deals you wont find anywhere else straight to your inbox!</p>
<div>
<form action="./index.php">
<input type="email" placeholder="Type your email">
<input type="submit" value="Subscribe">
</form>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer-bottom-area">
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="copyright">
<p>© 2021 ePro. All Rights Reserved.</p>
</div>
</div>
<div class="col-md-4">
<div class="footer-card-icon">
<i class="fa fa-cc-discover"></i>
<i class="fa fa-cc-mastercard"></i>
<i class="fa fa-cc-paypal"></i>
<i class="fa fa-cc-visa"></i>
</div>
</div>
</div>
</div>
</div>
</body>
</html>