<?php include'config.php';?>
<?php include'header.php';
require_once 'admin/config/db.php';
require_once 'admin/config/database.class.php';
require_once 'admin/config/functions.php';
$d = new database($db_config);?>
<section class="middle">
				<div class="container">
					<div class="row align-items-start justify-content-between" style="margin-left:300px;">
					
<div class="col-xl-8 col-lg-8 col-md-12 col-sm-12 mfliud">
							<form class="border p-3 rounded" method="POST" action="PHPMailer/enquiry.php">
							    <?php
                                                $product = $_GET['product'];
                                                 $pr_string = str_replace(".","","$product");
                                               // $query = "SELECT subcategory.subcategory as subcategory, product.* from subcategory INNER JOIN product on subcategory.subcategory = product.subcategory WHERE subcategory.subcategory = '$scat_string' ";
                                                $query = "SELECT * FROM product where product = '$pr_string' ";
                                                 $executeQuery = $d->selectQueryInArray($query);
           
                                                   if($executeQuery )  { 
                                                   foreach ($executeQuery as $row)
                                                      {
                                                ?>
							    <div class="sp-wrap">
							    
								<a  href="admin/view/<?php echo $row["image1"];?>"><img style="width:640px; height:400px;" src="admin/view/<?php echo $row["image1"];?>" alt=""></a>
								</div>
							    	<div class="row">
									<div class="form-group col-md-8 ">
										<label>Product Name *</label>
										<input type="text" name="product" class="form-control" placeholder="Product Name" value="<?php echo $row["product"];?>">
									
									</div>
										<div class="form-group col-md-4">
										<label>Quantity *</label>
										<input class="mb-2 custom-select" type="number" name="quantity" id="quantity" value="1" min="1">
									</div>
							        </div>
							        	<div class="row">
									<div class="form-group col-md-3" style="padding-right:5px; padding-left:5px;">
										<label>Price *</label>
										<input type="text" name="price" class="form-control" placeholder="Price"  value="<?php echo $row["price"];?>">
									
									</div>
									<div class="form-group col-md-3" style="padding-right:5px; padding-left:5px;">
										<label>code *</label>
										<input type="text" style="padding-right:3px; padding-left:3px;" name="code" class="form-control" placeholder="Code"  value="<?php echo $row["code"];?>">
									
									</div>
									<div class="form-group col-md-3 " style="padding-right:5px; padding-left:5px;">
										<label>Size *</label>
										<input type="text" name="size" class="form-control" placeholder="Size"  value="<?php echo $row["size"];?>">
									
									</div>
									<div class="form-group col-md-3 " >
										<label>Material *</label>
										<input type="text" name="material" class="form-control" placeholder="material"  value="<?php echo $row["material"];?>">
									
									</div>
									
									</div>
									<div class="form-group ">
										<label>User Name *</label>
										<input type="text" name="name" class="form-control" placeholder=" Name">
									</div>
									
							
								
								<div class="form-group">
									<label>Email *</label>
									<input type="text" class="form-control" name="email" placeholder="Email*">
								</div>
								<div class="form-group">
									<label>Address *</label>
									<input type="text" class="form-control" name="address" placeholder="Address*">
								</div>
									<div class="form-group">
									<label>Message *</label>
									<input type="text" class="form-control" name="message" placeholder="Message*">
								</div>
								
								<!--<div class="row">
									<div class="form-group col-md-6">
										<label>Password *</label>
										<input type="password" class="form-control" name = "password" placeholder="Password*">
									</div>
									
									<div class="form-group col-md-6">
										<label>Confirm Password *</label>
										<input type="password" class="form-control" name="password" placeholder="Confirm Password*">
									</div>
								</div>-->
								
								<div class="form-group">
									<p><?php echo $row["description"];?></p>
								</div>
								
								<div class="form-group">
									<div class="d-flex align-items-center justify-content-between">
									
									</div>
								</div>
								
								<div class="form-group">
								    
									<button type="submit" name="registerbtn" class="btn btn-md full-width bg-dark text-light fs-md ft-medium">Enquire now</button>
								</div>
								<?php }} ?>
							</form>
						</div>
						
						</div>
				</div>
			</section>
	<!-- ============================= Customer Features =============================== -->
			<section class="px-0 py-3 br-top">
				<div class="container">
					<div class="row">
						
						<div class="col-xl-3 col-lg-3 col-md-6 col-sm-6">
							<div class="d-flex align-items-center justify-content-start py-2">
								<div class="d_ico">
									<i class="fas fa-shopping-basket theme-cl"></i>
								</div>
								<div class="d_capt">
									<h5 class="mb-0">Free Shipping</h5>
									<span class="text-muted">Capped at $10 per order</span>
								</div>
							</div>
						</div>
						
						<div class="col-xl-3 col-lg-3 col-md-6 col-sm-6">
							<div class="d-flex align-items-center justify-content-start py-2">
								<div class="d_ico">
									<i class="far fa-credit-card theme-cl"></i>
								</div>
								<div class="d_capt">
									<h5 class="mb-0">Secure Payments</h5>
									<span class="text-muted">Up to 6 months installments</span>
								</div>
							</div>
						</div>
						
						<div class="col-xl-3 col-lg-3 col-md-6 col-sm-6">
							<div class="d-flex align-items-center justify-content-start py-2">
								<div class="d_ico">
									<i class="fas fa-shield-alt theme-cl"></i>
								</div>
								<div class="d_capt">
									<h5 class="mb-0">15-Days Returns</h5>
									<span class="text-muted">Shop with fully confidence</span>
								</div>
							</div>
						</div>
						
						<div class="col-xl-3 col-lg-3 col-md-6 col-sm-6">
							<div class="d-flex align-items-center justify-content-start py-2">
								<div class="d_ico">
									<i class="fas fa-headphones-alt theme-cl"></i>
								</div>
								<div class="d_capt">
									<h5 class="mb-0">24x7 Fully Support</h5>
									<span class="text-muted">Get friendly support</span>
								</div>
							</div>
						</div>
						
					</div>
				</div>
			</section>
			<!-- ======================= Customer Features ======================== -->


<?php include'footer.php'; ?>