D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
gurgaon.jaipurpartyplanner.in
/
Filename :
details.php
back
Copy
<?php include('admin/connection.php'); ?> <?php $id= $_GET['product']; $data = mysqli_query($conn,"select * from product where slug = '$id'"); $row =mysqli_fetch_array($data); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><?php echo $row['meta_title'];?></title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta name="keywords" content="<?php echo $row['meta_key'];?>" > <meta name="description" content="<?php echo $row['meta_desc'];?>" > <link rel="canonical" href="<?php echo $base_url ?>decor/<?php echo $row['slug'];?>" /> <meta property="og:locale" content="en_US" /> <meta property="og:title" content="<?php echo $row['meta_title'];?>" /> <meta property="og:description" content="<?php echo $row['meta_desc'];?>" /> <meta property="og:url" content="<?php echo $base_url ?>decor/<?php echo $row['slug'];?>" /> <?php echo $row['seo_syntax'];?> <?php include 'include/links.php'; ?> <?php include 'include/header.php'; ?> <?php $id= $_GET['product']; $data = mysqli_query($conn,"select * from product where slug = '$id'"); $row =mysqli_fetch_array($data); ?> <style> .details-card{ position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(0, 0, 0, .125); border-radius: .25rem; padding-top: 10px; padding-bottom: 10px; } .details-page-img img{ width:100%; height:auto; } .related-img img{ width: 100%; height: 200px; object-fit: cover;} .load { display:none;} .loadm{ height: auto; text-align: center; border-radius: 25px; color: #fff; background: #9e8039 !important; font-size: 17px; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important; padding: 10px 20px; display: block !important; } </style> <!-- Header Start --> <div class="container-fluid bg-breadcrumb"> <div class="container text-center py-5" style="max-width: 900px;"> <h3 class="text-white mb-2 wow fadeInDown" data-wow-delay="0.1s" style="text-transform: capitalize;"><?php echo $row['title']; ?></h3> <h4 class="text-white mb-2 wow fadeInDown" data-wow-delay="0.1s"><?php $price2 = $row['price']; if ($price2 ==""){ echo " "; }else{ echo ₹.$price2.'/-'; } ?></h4> </div> </div> <!-- Header End --> <div class="container-fluid service py-5" id="details-accordian"> <div class="container-fluid mb-5"> <div class="row"> <div class="col-lg-8 details-card mb-4"> <div class=" mb-3 details-page-img"> <img src="<?php echo $base_url ?>admin/<?php echo $row['image'];?>" title=" <?php echo $row['imgtitle']; ?>" alt=" <?php echo $row['imgalt']; ?>"> </div> <h2 class="mb-3" style="text-transform: capitalize;"><?php echo $row['title']; ?></h2> <hr> <div class="content"> <?php $abc = $row['description']; $data1 = html_entity_decode($abc); echo $data1; ?> </div> <div class="row mt-4"> <?php $rimage1 = $row['rimage1']; if(!empty($rimage1)) {?> <div class="col-lg-4 col-md-4 col-sm-4 mb-2"> <div class="related-img"> <img src="<?php echo $base_url ?>admin/<?php echo $row['rimage1'];?>" title=" <?php echo $row['rimage1_title']; ?>" alt=" <?php echo $row['rimage1_alt']; ?>"> </div> </div> <?php }?> <?php $rimage2 = $row['rimage2']; if(!empty($rimage2)) {?> <div class="col-lg-4 col-md-4 col-sm-4 mb-2"> <div class="related-img"> <img src="<?php echo $base_url ?>admin/<?php echo $row['rimage2'];?>" title=" <?php echo $row['rimage2_title']; ?>" alt=" <?php echo $row['rimage2_alt']; ?>"> </div> </div> <?php }?> <?php $rimage3 = $row['rimage2']; if(!empty($rimage3)) {?> <div class="col-lg-4 col-md-4 col-sm-4 mb-2"> <div class="related-img"> <img src="<?php echo $base_url ?>admin/<?php echo $row['rimage3'];?>" title=" <?php echo $row['rimage3_title']; ?>" alt=" <?php echo $row['rimage3_alt']; ?>"> </div> </div> <?php }?> </div> <!--faq start--> <div class="accordion accordion-flush mt-4" id="accordionFlushExample"> <?php $pro_id2 = $row['id']; $data4 = "select * from product_faq WHERE product_id ='$pro_id2' "; $fetch4 = mysqli_query($conn, $data4); $index = 1; while ($row4=mysqli_fetch_array($fetch4)) { ?> <div class="accordion-item mb-3"> <h2 class="accordion-header" id="flush-heading<?php echo $index; ?>"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapse<?php echo $index; ?>" aria-expanded="false" aria-controls="flush-collapse<?php echo $index; ?>"> <i class="fas fa-plus"></i> <?php echo $row4['question'];?> </button> </h2> <div id="flush-collapse<?php echo $index; ?>" class="accordion-collapse collapse" aria-labelledby="flush-heading<?php echo $index; ?>" data-bs-parent="#accordionFlushExample"> <div class="accordion-body"><?php echo $row4['answer'];?></div> </div> </div> <?php $index++; }?> </div> </div> <div class="col-lg-4"> <?php $catid = $row['Category']; $cat2 = "select * from product where Category = '$catid' ORDER BY RAND()"; $catdata2 = mysqli_query($conn, $cat2); while ($row2=mysqli_fetch_array($catdata2)) { ?> <div class="card bg-light shadow product-grid-box mb-3 more-cards"> <div class="product-grid-image"> <a href="<?php echo $row2['slug']?>"> <?php echo "<img src='$base_url"."admin/".$row2['image']."'>";?> </a> </div> <div class="product-grid-content"> <h4 class="m-0 mb-2"><?php echo $row2['title'];?> </h4> <p class="m-0"><strong><?php $price3 = $row2['price']; if ($price3 ==""){ echo " "; }else{ echo ₹.$price3.'/-'; } ?></strong></p> </div> </div> <?php }?> <a href="#" id="loadMore" class="loadm">Load More</a> </div> </div> </div> </div> <?php include 'include/footer.php'; ?> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script> $(function () { $(".load").slice(0, 4).show(); $("#loadMore").on('click', function (e) { e.preventDefault(); $(".load:hidden").slice(0, 4).slideDown(); if ($(".load:hidden").length == 0) { $("#load").fadeOut('slow'); } $('html,body').animate({ scrollTop: $(this).offset().top }, 1500); }); }); </script>