Ghost Exploiter Team Official
/
home
/
ramdevpcb
/
public_html
/
Nama File / Folder
Size
Action
.DS_Store
--
NONE
.well-known
--
NONE
Apple
--
NONE
Config
--
NONE
accounts.ramdevpcb.com
--
NONE
admin.ramdevpcb.com
--
NONE
ap
--
NONE
api
--
NONE
app
--
NONE
assets
--
NONE
cgi-bin
--
NONE
delivery.ramdevpcb.com
--
NONE
razorpay-php-master
--
NONE
sales.ramdevpcb.com
--
NONE
spotify
--
NONE
.htaccess
0.274KB
Hapus
Edit
Rename
MAXVEL CATALOGUE 2023.pdf
55.84MB
Hapus
Edit
Rename
Privacy_Policy.php
17.97KB
Hapus
Edit
Rename
Product_Details.php
33.28KB
Hapus
Edit
Rename
Products.php
72.202KB
Hapus
Edit
Rename
Products2.php
22.467KB
Hapus
Edit
Rename
about.php
43.034KB
Hapus
Edit
Rename
apply-coupon.php
1.237KB
Hapus
Edit
Rename
bg6.png
239.047KB
Hapus
Edit
Rename
checkout.php
19.243KB
Hapus
Edit
Rename
contact.php
8.294KB
Hapus
Edit
Rename
create_order.php
1.073KB
Hapus
Edit
Rename
db.php
0.666KB
Hapus
Edit
Rename
delete_address.php
0.347KB
Hapus
Edit
Rename
deleteproduct.php
0.362KB
Hapus
Edit
Rename
download_invoice.php
0.395KB
Hapus
Edit
Rename
email.html
2.977KB
Hapus
Edit
Rename
footer (2).php
22.071KB
Hapus
Edit
Rename
footer.php
9.45KB
Hapus
Edit
Rename
get_product.php
3.688KB
Hapus
Edit
Rename
getcity.php
0.496KB
Hapus
Edit
Rename
googlebdc637812fd99722.html
0.052KB
Hapus
Edit
Rename
googlebfc2f3b3c36359c4.html
0.052KB
Hapus
Edit
Rename
header1.php
51.568KB
Hapus
Edit
Rename
index (44).php
90.686KB
Hapus
Edit
Rename
index1.php
71.197KB
Hapus
Edit
Rename
indexnew.php
97.6KB
Hapus
Edit
Rename
interlaced.png
16.737KB
Hapus
Edit
Rename
licenses.php
0.081KB
Hapus
Edit
Rename
logout.php
0.232KB
Hapus
Edit
Rename
my.php
44.607KB
Hapus
Edit
Rename
myorderdetails.php
6.695KB
Hapus
Edit
Rename
myordernew.php
28.397KB
Hapus
Edit
Rename
page-login-register.php
28.91KB
Hapus
Edit
Rename
page-login-register_old.php
29.911KB
Hapus
Edit
Rename
php.ini
0.06KB
Hapus
Edit
Rename
placeorder.php
7.531KB
Hapus
Edit
Rename
product-right.php
82.268KB
Hapus
Edit
Rename
qnow.php
14.316KB
Hapus
Edit
Rename
r&c.php
5.128KB
Hapus
Edit
Rename
ramdev.zip
1353.63MB
Hapus
Edit
Rename
raw.php
0.209KB
Hapus
Edit
Rename
s&d.php
5.673KB
Hapus
Edit
Rename
send.php
5.59KB
Hapus
Edit
Rename
send_password.php
2.244KB
Hapus
Edit
Rename
shop-checkout1.php
59.101KB
Hapus
Edit
Rename
shop-wishlist.php
7.947KB
Hapus
Edit
Rename
shopcart.php
25.882KB
Hapus
Edit
Rename
shopcart1.php
16.813KB
Hapus
Edit
Rename
sms.php
0.735KB
Hapus
Edit
Rename
tracking.php
11.972KB
Hapus
Edit
Rename
updateprofile.php
1.267KB
Hapus
Edit
Rename
updateqty.php
0.912KB
Hapus
Edit
Rename
<?php session_start(); include('db.php'); $query="SELECT PD.*,BC.Category as brand,BSC.SubCategoryID as subcategory_id, BSC.SubCategory as product_name,BM.Model,(SELECT ImageName FROM productimages WHERE ProductID=PD.ProductID LIMIT 1) as image FROM productdetails PD LEFT JOIN BrandCategory BC ON PD.CategoryID=BC.CategoryID LEFT JOIN BrandSubCategory BSC ON PD.SubCategoryID=BSC.SubCategoryID LEFT JOIN BrandModel BM ON PD.ModelID=BM.ModelID WHERE PD.is_deleted=0 AND PD.ProductID=".$_GET['id']; $result=mysqli_query($conn,$query); // If row not found → product deleted if (!$result || mysqli_num_rows($result) == 0) { echo "<script> alert('This product is deleted or not found.'); window.location.href = 'index.php'; </script>"; exit(); } $row=mysqli_fetch_assoc($result); $productid=$row['ProductID']; $date=$row['AddedDate']; $Category=$row['brand']; $SubCategory=$row['product_name']; $Model=$row['Model']; $Model_No=$row['Model_No']; $Product=$row['ProductNumber']; $watt=$row['Watts']; $driver=$row['Driver']; $size=$row['Size']; $led=$row['LEDCount']; $weight=$row['Weight']; $hsn=$row['HSNCode']; $gst=$row['GSTPercent']; $maxprice=$row['maxamt']; $price=$row['BtoCPrice']; $price_200=$row['BtoBPrice1']; $price_1000=$row['BtoBPrice2']; $price_more1000=$row['BtoBPrice3']; $pdf = $row['ProductPDF']; $video = $row['ProductVideo']; $thickness = $row['Thickness']; $category_id=$row['CategoryID']; $model_id=$row['ModelID']; $subcategory_id=$row['subcategory_id']; if($_SESSION['user_role'] == 1){ $price = $price_200; } $image=(!empty($row['image']))?$row['image']:'default_product.png'; $video=$row['ProductVideo']; $pdf=$row['ProductPDF']; $color=$row['ProductColorID']; $product_description=$row['ProductDescription']; $stock = $row['TotalStock']; $tprice = $maxprice - $price; if ($maxprice > 0) { $disper = $tprice * 100 / $maxprice; } else { $disper = 0; // Or handle this case differently if needed } ?> <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <title>Product Details Ramdev PCB</title> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="twitter:card" content="summary"/> <meta property="og:title" content="<?php echo $Model.' - '.$driver.' ('.$watt.')' ?>"/> <meta property="og:type" content="article"/> <meta property="og:url" content="https://ramdevpcb.com/Product_Details.php?id='.<?= $productid ?>"/> <meta property="og:image" content="<?= $image ?>"/> <meta property="og:image:secure" content="<?= $image ?>"/> <meta property="og:description" content="High Lumens LED.It is made of high quality material.It is designed for lasting strength and durability.It comes with secure packaging. Low energy consumption.Additional Driver Required."/> <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="assets/imgs/theme/favicon.png"> <!-- Template CSS --> <link rel="stylesheet" href="assets/css/main.css?v=3.3"> <link rel="stylesheet" href="assets/css/custom.css"> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script> <style> .list-filter li { display: inline-block!important; border: 1px solid!important; border-radius: 5px!important; padding: 0px 5px 1px 5px!important; text-transform: uppercase; } .color-filter.list-filter li.active a::before { content: ""; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; position: absolute; right: 3px; top: -6px!important; background: #4cd964; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; } .inline-group { max-width: 9rem; padding: .5rem; } .inline-group .form-control { text-align: right; } .form-control[type="number"]::-webkit-inner-spin-button, .form-control[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .mobqty{ max-width:40%; padding-left:0px; } @media only screen and (max-width:600px){ .mobqty{ padding-left:0px; max-width:60%; } .modal-dialog{ width:100%!important; } .deal{ background-size: 270%!important; } } [data-tooltip]:before { /* needed - do not touch */ content: attr(data-tooltip); position: absolute; opacity: 0; /* customizable */ transition: all 0.15s ease; padding: 10px; color: #fff; border-radius: 10px; box-shadow: 2px 2px 1px silver; } [data-tooltip]:hover:before { /* needed - do not touch */ opacity: 1; /* customizable */ background: #046963; margin-top: -50px; margin-left: 20px; } [data-tooltip]:not([data-tooltip-persistent]):before { pointer-events: none; } @media only screen and (max-width:600px){ .reduce{ width:50%; } .fontt{ font-size:10px!important; } } .showbullet ul{ list-style-type: square; } </style> <script> function scrolldown(){ if(window.innerWidth <= 600){ document.getElementById('thumbnail').scrollIntoView();} } </script> </head> <body onload="scrolldown()"> <!-- Quick view --> <?php include("header.php"); ?> <main class="main"> <div class="page-header breadcrumb-wrap"> <div class="container"> <div class="breadcrumb"> <a href="index.php" rel="nofollow">Home</a> <span></span> Product <span></span> <?php echo $Product; ?> </div> </div> </div> <section class="mt-50 mb-50"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="product-detail accordion-detail"> <div class="row mb-50"> <div class="col-md-6 col-sm-12 col-xs-12"> <div class="detail-gallery"> <span class="zoom-icon"><i class="fi-rs-search"></i></span> <!-- MAIN SLIDES --> <div class="product-image-slider" style="border: 2px solid #a2d2c9;"> <?php // Prepare the query to fetch product images $productId = intval($_GET['id']); // Sanitize input $query = "SELECT * FROM productimages WHERE ProductID = $productId ORDER BY COALESCE(display_order, 9999), ProductImageID"; $result = mysqli_query($conn, $query); $defaultImageUrl = "https://admin.ramdevpcb.com/assets/images/product_images/default_product.jpg"; // Check if the query was successful if ($result) { // Check if any rows were returned if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { // Determine the image URL $imageUrl = !empty($row['ImageName']) ? $row['ImageName'] : $defaultImageUrl; ?> <figure class="border-radius-10" style="background: white;"> <img src="<?php echo htmlspecialchars($imageUrl); ?>" alt="product image" style="width: 100%; pointer-events: none;"> </figure> <?php } } else { // No images found, display the default image ?> <figure class="border-radius-10" style="background: white;"> <img src="<?php echo htmlspecialchars($defaultImageUrl); ?>" alt="default product image" style="width: 100%; pointer-events: none;"> </figure> <?php } } else { // Handle query error echo "<p>Error fetching images: " . mysqli_error($conn) . "</p>"; } ?> </div> <!-- THUMBNAILS --> <div class="slider-nav-thumbnails pl-15 pr-15"> <?php // Reset the result set to fetch thumbnails mysqli_data_seek($result, 0); // Move pointer back to the start of the result set if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { // Determine the thumbnail image URL $thumbnailUrl = !empty($row['ImageName']) ? $row['ImageName'] : $defaultImageUrl; ?> <div style="background: white;"> <img id="thumbnail" src="<?php echo htmlspecialchars($thumbnailUrl); ?>" alt="product thumbnail" style="width: 100%;"> </div> <?php } } else { // No thumbnails found, display the default image ?> <div style="background: white;"> <img id="thumbnail" src="<?php echo htmlspecialchars($defaultImageUrl); ?>" alt="default product thumbnail" style="width: 100%;"> </div> <?php } ?> </div> </div> <!-- End Gallery --> </div> <div class="col-md-6 col-sm-12 col-xs-12"> <div class="detail-info"> <h2 class="title-detail" style="font-size: 26px;text-transform:Uppercase"><?php echo ucwords(strtolower($SubCategory)).' - '. ucwords(strtolower($Model)).' '.$driver.' ('.$watt.')' ?></h2> <div class="product-detail-rating"> <div class="pro-details-brand"> <span> Brands: <a style="color:#b09707">Ramdev PCB</a> | RD No. : <a href="#" style="color:#b09707"><?= $Product ?></a></li> | Model No. : <a href="#" style="color:#b09707"><?= $Model_No ?></a></li></span> </div> <!--<div class="product-rate-cover text-end"> <div class="product-rate d-inline-block"> <div class="product-rating" style="width:90%"></div> </div> <span class="font-small ml-5 text-muted"> (25 reviews)</span> </div>--> </div> <div class="clearfix product-price-cover"> <div class="product-price primary-color float-left"> <ins><span class="text-brand" id="product_price">₹<?= $price ?></span><sub style="font-size: 12px;padding: 5px;">+<?= $gst ?>% GST</sub></ins> <ins><span class="old-price font-md ml-15">₹<?= $maxprice ?></span></ins> <span class="save-price font-md color3 ml-15"><?= round($disper) ?>% Off</span> </div> </div> <div class="bt-1 border-color-1 mt-15 mb-15"></div> <div class="short-desc mb-30 showbullet"> <?= $product_description;?> </div> <div class="product_sort_info font-xs mb-30"> <ul> <li class="mb-10"><i class="fi-rs-crown mr-5" style="color:#b09707"></i> Get GST Invoice</li> <li class="mb-10"><i class="fi-rs-lock mr-5" style="color:#b09707"></i> Secured Payments</li> <li class="mb-10"><i class="fi-rs-refresh mr-5" style="color:#b09707"></i> 100% Genuine | Quality Products</li> <li><i class="fi-rs-check mr-5" style="color:#b09707"></i> Transport | Courier | Self Pickup Available</li> </ul> </div> <?php $sql = "select B.ColorName,B.ColorCode,A.ProductID from productdetails A inner join ProductColors B on A.ProductColorID=B.ColorID where A.CategoryID='".$category_id."' and A.SubCategoryID='".$subcategory_id."' and A.ModelID='".$model_id."' and A.ProductNumber='".$Product."' and A.is_deleted!='1'"; ?> <div class="attr-detail attr-color mb-15"> <strong class="mr-10">Color</strong> <ul class="list-filter color-filter" style="gap: 10px;display: flex;"> <?php $result2 = mysqli_query($conn,$sql); while($row2 = mysqli_fetch_assoc($result2)) { $colorname=$row2['ColorName']; $colorcode=$row2['ColorCode']; if ($row2['ProductID'] == $_GET['id']) { $class_select='active'; } else { $class_select=''; } ?> <li class="<?php echo $class_select; ?>" style="background-color:<?= $colorcode; ?>"> <a href="Product_Details.php?id=<?= $row2['ProductID'] ?>" class="color_code" data-product_id="<?= $row2['ProductID'] ?>" data-product_number="<?= $Product ?>" data-product_price1="<?= $row2['BtoCPrice'] ?>" data-product_price2="<?= $row2['BtoBPrice1'] ?>" data-product_price3="<?= $row2['BtoBPrice2'] ?>" data-product_price4="<?= $row2['BtoBPrice3'] ?>" ><?= $colorname ?></a> </li> <?php } ?> </ul> </div> <div class="bt-1 border-color-1 mt-30 mb-30"></div> <?php //if($stock > 0){ ?> <div class="input-group inline-group mobqty"> <strong class="mr-10" style="margin-top: 1%;">Quantity</strong> <div class="input-group-prepend"> <button class="btn btn-outline-secondary btn-minus" style="padding:4px 12px"> <i class="fa fa-minus"></i> </button> </div> <input class="form-control quantity" min="1" name="quantity" id="quantity" value="1" type="number" style="text-align:center;height:32px;padding:0px;font-weight:bold"> <div class="input-group-append"> <button class="btn btn-outline-secondary btn-plus" style="padding:4px 12px"> <i class="fa fa-plus"></i> </button> </div> </div> <div class="bt-1 border-color-1 mt-30 mb-30"></div> <div class="detail-extralink"> <div class="product-extra-link2"> <button type="button" class="button button-add-to-cart" onclick="addtocartclick();">Add to cart</button><!-- <a aria-label="Add To Wishlist" class="action-btn hover-up" href="shop-wishlist.html"><i class="fi-rs-heart"></i></a> <a aria-label="Compare" class="action-btn hover-up" href="shop-compare.html"><i class="fi-rs-shuffle"></i></a>--> </div> </div> <script> $('.btn-plus, .btn-minus').on('click', function(e) { const isNegative = $(e.target).closest('.btn-minus').is('.btn-minus'); const input = $(e.target).closest('.input-group').find('input'); if (input.is('input')) { input[0][isNegative ? 'stepDown' : 'stepUp']() } }) </script> <style> /* .social-media{ position: relative; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; padding-top: 2.5px; padding-right: 3px; cursor: pointer; z-index: 2; display: flex; } .social-media-btn{ color: #046963; border: none; background: #fff; padding: 10px; } .link-container { display: flex; justify-content: space-between; align-items: center; background-color: #f0f0f0; padding: 10px; } .link { margin: 0; font-size: 18px; } .copy-btn { background-color: #046963; color: white; border: none; padding: 10px; border-radius: 5px; font-size: 16px; cursor: pointer; } */ .html { scroll-behavior: smooth; } .modal { position: fixed; top: 0; left: 0; z-index: 1050000; display: none; width: 100%; height: 100%; overflow: hidden; outline: 0; } body:has(.modal) { overflow-y: hidden; padding-right: var(--scrollbar_width); } </style> <?php //} ?> <ul class="product-meta font-xs color-grey mt-50"> <li class="mb-5">RD NO : <a href="#" style="color:#046963"><?= $Product ?></a></li> <li class="mb-5">MODEL NO : <a href="#" style="color:#046963"><?= $Model_No ?></a></li> <li class="mb-5">Tags: <a href="Products.php?SubCategory=<?= $SubCategory ?>" rel="tag" style="color:"><?= ucwords(strtolower($SubCategory)) ?></a></li> <li>Availability: <span class="in-stock text-success ml-5" style="color:##17ad29!important"><strong>In Stock</strong></span></li> </ul> </div> <!-- AddToAny BEGIN --> <p class="title">share</p> <div class="a2a_kit a2a_kit_size_32 a2a_default_style"> <!-- <a class="a2a_dd" href="https://www.addtoany.com/share"></a> --> <a class="a2a_button_facebook"></a> <a class="a2a_button_twitter"></a> <a class="a2a_button_google_gmail"></a> <a class="a2a_button_whatsapp"></a> </div> <script async src="https://static.addtoany.com/menu/page.js"></script> <!-- AddToAny END --> <script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script> <!-- <div class="container"> <p class="title">share</p> <div class="social-media"> <button class="social-media-btn"><i class="fa fa-envelope"></i></button> <button class="social-media-btn"><i class="fa fa-whatsapp"></i></button> <button class="social-media-btn"><i class="fa fa-instagram"></i></button> <button class="social-media-btn"><i class="fa fa-facebook-f"></i></button> </div> <div class="link-container"> <p class="link">https://example.com/share</p> <button class="copy-btn" onclick="copyLink()">copy</button> </div> </div> --> <!-- Detail Info --> </div> </div> <div class="row"> <div class="col-lg-10 m-auto entry-main-content"> <h2 class="section-title style-1 mb-30">Description</h2> <div class="description mb-50 showbullet"> <?php echo $product_description;?> </div> <h3 class="section-title style-1 mb-30">Additional info</h3> <table class="font-md mb-30"> <tbody> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Model Number</th> <td> <p><?php echo $Model_No; ?></p> </td> </tr> <tr class="stand-up"> <th>Product / RD Number</th> <td> <p><?php echo $Product; ?></p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>WATTS</th> <td> <p><?php echo $watt; ?></p> </td> </tr> <tr class="stand-up"> <th>Driver</th> <td> <p><?php echo $driver; ?></p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Size</th> <td> <p><?php echo $size; ?></p> </td> </tr> <tr class="stand-up"> <th>Thickness</th> <td> <p><?php echo $thickness; ?></p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Weight</th> <td> <p><?php echo $weight ?></p> </td> </tr> <tr class="stand-up"> <th>Place of Origin</th> <td> <p>India</p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Number of LED's</th> <td> <p><?php echo $led; ?></p> </td> </tr> <tr class="stand-up"> <th>Material</th> <td> <p>Aluminium</p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Base Material</th> <td> <p>Copper</p> </td> </tr> <tr class="stand-up"> <th>Solder Mask Color</th> <td> <p>White</p> </td> </tr> <tr class="stand-up" style="background:#f7f4f4b3"> <th>Product Type</th> <td> <p>LED PCB</p> </td> </tr> <?php if (!empty($pdf)) { ?> <tr class="stand-up"> <th>Product PDF</th> <td> <p> <a href="https://admin.ramdevpcb.com/assets/images/product_pdf/<?= $pdf ?>" target="_blank"> <img src="assets/imgs/pdficon.png" alt="" height="50px" width="50px" /> </a> </p> </td> </tr> <?php } ?> </tbody> </table> <h3 class="section-title style-1 mb-30">Video</h3> <div><?= $video ?></div> </div> </div> <input type="hidden" id="BtoBPrice1" value="<?= $price_200 ?>"> <input type="hidden" id="BtoBPrice2" value="<?= $price_1000 ?>"> <input type="hidden" id="BtoBPrice3" value="<?= $price_more1000 ?>"> <input type="hidden" id="actual_product_price" value="<?= $price ?>"> <input type="hidden" id="product_id" value="<?= $_GET['id'] ?>"> <input type="hidden" id="product_number" value="<?= $Product ?>"> <input type="hidden" id="weight" value="<?= $weight ?>"> <div class="row mt-60"> <div class="row"> <h3 class="section-title style-1 mb-30">Why Choose Us</h3> <div class="col-lg-8 m-auto entry-main-content"> <img src="assets/imgs/features.jpg" style="margin-bottom: 20px;"> </div> </div> <div class="col-12"> <h3 class="section-title style-1 mb-30">Related products</h3> </div> <div class="col-12"> <div class="row related-products"> <?php list($simdriver, $extra) = explode("MA", $driver, 2); $query="select * from productdetails A inner join BrandCategory B on A.CategoryID=B.CategoryID inner join BrandSubCategory C on A.SubCategoryID=C.SubCategoryID INNER JOIN BrandModel D on A.ModelID=D.ModelID where A.ModelID='".$model_id."' and A.Watts!='".$watt."' and A.Driver like '%".$simdriver."%' LIMIT 4"; //echo $query; $result=mysqli_query($conn,$query); while($row=mysqli_fetch_array($result)) { $product = $row['ProductID']; $result4 = mysqli_query($conn, "SELECT * FROM productimages WHERE ProductID = '$product' LIMIT 1"); //echo $result4; $row4 = mysqli_fetch_assoc($result4); $image4 = !empty($row4['ImageName']) ? $row4['ImageName'] : 'https://admin.ramdevpcb.com/assets/images/product_images/default_product.jpg'; //echo $image4 ?> <div class="col-lg-3 col-md-4 col-12 col-sm-6 reduce"> <div class="product-cart-wrap small hover-up" style="padding: 4px 4px;background-color: #f7f8f9;"> <div class="product-img-action-wrap" style="padding: 4px 4px;background-color: #f7f8f9;"> <div class="product-img product-img-zoom"> <a href="Product_Details.php?id=<?= $product ?>" tabindex="0"> <img class="default-img" src="<?= $image4 ?>" alt=""> <img class="hover-img" src="<?= $image4 ?>" alt=""> </a> </div> <!--<div class="product-action-1"> <a aria-label="Quick view" class="action-btn small hover-up" data-bs-toggle="modal" data-bs-target="#quickViewModal"><i class="fi-rs-search"></i></a> <a aria-label="Add To Wishlist" class="action-btn small hover-up" href="shop-wishlist.html" tabindex="0"><i class="fi-rs-heart"></i></a> <a aria-label="Compare" class="action-btn small hover-up" href="shop-compare.html" tabindex="0"><i class="fi-rs-shuffle"></i></a> </div>--> <div class="product-badges product-badges-position product-badges-mrg"> <?php $maxprice=$row['maxamt']; $price=$row['BtoCPrice']; $tprice = $maxprice - $price; $disper = $tprice * 100 / $maxprice; ?> <span class="best" style="background-color:chocolate"><?= round($disper) ?>% off</span> </div> </div> <div class="product-content-wrap" style="padding: 10px 20px 15px 20px;"> <h2 class="fontt" style="text-align:center"><a href="Product_Details.php?id=<?= $product ?>"><?= $row['Model'].' '.$row['Driver'].' ('.$row['Watts'].')' ?></a></h2> <div class="product-price" style="text-align:center"> <span><?= $row['Model_No'] ?></span><br> <span style="font-size:14px;color: #046963;"><?= $row['ProductNumber'] ?></span> </div> </div> </div> </div> <?php } ?> </div> </div> </div><!-- <div class="banner-img banner-big wow fadeIn f-none animated mt-50"> <img class="border-radius-10" src="assets/imgs/banner/banner-4.png" alt=""> <div class="banner-text"> <h4 class="mb-15 mt-40">Repair Services</h4> <h2 class="fw-600 mb-20">We're an Apple <br>Authorised Service Provider</h2> </div> </div>--> </div> </div> </div> </div> <div class="modal fade custom-modal" id="loginpopup" tabindex="-1" aria-labelledby="onloadModalLabel" aria-hidden="true"> <div class="modal-dialog" style="width:50%"> <div class="modal-content"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> <div class="modal-body" > <div class="deal" style="place-content:center;background: url('assets/imgs/banner/banner-111.jpg');background-size: 150%;background-position: center;min-height: 0px;"> <div class="deal-top"> <h2 class="text-brand">Login To Purchase</h2> <h5></h5> </div> <div class="deal-content"> <h6 class="product-title"><input type="text" id="usernamefield" placeholder="Email or Mobile Number" ></h6> <h6 class="product-title"><input type="password" id="passwordfield" placeholder="Password" ></h6> <script src='https://www.google.com/recaptcha/api.js' async defer></script> <div class="g-recaptcha form-group" id="captcha" data-sitekey="6LcRdf8qAAAAAC4vPRPRPHN5VRzM6SRpp9snrtsz"></div> </div> <div class="deal-bottom"> <a onclick="login()" class="btn hover-up" id="loginsubmit">Login <i class="fi-rs-arrow-right"></i></a> <a href="page-login-register.php" class="btn hover-up" id="register"><i class="fi-rs-arrow-left"></i> New Register </a> </div> </div> </div> </div> </div> </div> <!-- Go to www.addthis.com/dashboard to customize your tools <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-633bfcd591203288"></script>--> </section> </main> <?php include('footer.php') ?> <!-- Preloader Start --> <!-- <div id="preloader-active"> <div class="preloader d-flex align-items-center justify-content-center"> <div class="preloader-inner position-relative"> <div class="text-center"> <h5 class="mb-5">Now Loading</h5> <div class="loader"> <div class="bar bar1"></div> <div class="bar bar2"></div> <div class="bar bar3"></div> </div> </div> </div> </div> </div>--> <!-- Vendor JS--> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="assets/js/vendor/modernizr-3.6.0.min.js"></script> <script src="assets/js/vendor/jquery-3.6.0.min.js"></script> <script src="assets/js/vendor/jquery-migrate-3.3.0.min.js"></script> <script src="assets/js/vendor/bootstrap.bundle.min.js"></script> <script src="assets/js/plugins/slick.js"></script> <script src="assets/js/plugins/jquery.syotimer.min.js"></script> <script src="assets/js/plugins/wow.js"></script> <script src="assets/js/plugins/jquery-ui.js"></script> <script src="assets/js/plugins/perfect-scrollbar.js"></script> <script src="assets/js/plugins/magnific-popup.js"></script> <script src="assets/js/plugins/select2.min.js"></script> <script src="assets/js/plugins/waypoints.js"></script> <script src="assets/js/plugins/counterup.js"></script> <script src="assets/js/plugins/jquery.countdown.min.js"></script> <script src="assets/js/plugins/images-loaded.js"></script> <script src="assets/js/plugins/isotope.js"></script> <script src="assets/js/plugins/scrollup.js"></script> <script src="assets/js/plugins/jquery.vticker-min.js"></script> <script src="assets/js/plugins/jquery.theia.sticky.js"></script> <script src="assets/js/plugins/jquery.elevatezoom.js"></script> <!-- Template JS --> <script src="./assets/js/main.js?v=3.3"></script> <script src="./assets/js/shop.js?v=3.3"></script> <script src="assets/js/custom.js"></script> <script> $('#loginsubmit').click(function(){ var user = document.getElementById('usernamefield').value; var pass = document.getElementById('passwordfield').value; var login = "login"; var captcha = grecaptcha.getResponse(); // Get the captcha response if (user == '' || pass == '') { alert("Fields are required."); return false; } if (!captcha) { alert("Please check the captcha box."); return false; } $.ajax({ type: "POST", url: "page-login-register.php", data: { user: user, pass: pass, login: login, 'g-recaptcha-response': captcha }, success: function(data) { if (data.includes('Invalid Username or Password')) { alert('Invalid Username or Password'); } else { location.reload(); // Reload the page upon successful login } }, error: function() { alert("Error in AJAX call."); } }); }); $('.color_code').click(function(){ console.log($(this).attr('data-product_price1')); window.location.href = "Product_Details.php?id=" + $(this).attr('data-product_id'); /*var product_id = $(this).attr('data-product_id'); var product_number = $(this).attr('data-product_number'); var price1 = $(this).attr('data-product_price1'); var price2 = $(this).attr('data-product_price2'); var price3 = $(this).attr('data-product_price3'); var price4 = $(this).attr('data-product_price4'); var user_type = "<?= $_SESSION['user_role'] ?>"; if(user_type == 1){ $('#product_price').html('₹'+price2); }else{ $('#product_price').html('₹'+price1); } $('#BtoBPrice1').val(price2); $('#BtoBPrice2').val(price3); $('#BtoBPrice3').val(price4); $('#product_id').val(product_id); $('#product_number').val(product_number);*/ }); function addtocartclick() { var ses = "<?= $_SESSION['use']?>"; var custid = "<?= $_SESSION['userid']?>"; if (ses == "") { $('#loginpopup').modal('show'); //alert("Please Login before Adding products"); //window.location.href = 'page-login-register.php'; } else { var productid = $('#product_id').val(); var productno = $('#product_number').val(); var price = $('#actual_product_price').val(); var weight = $('#weight').val(); var qty = document.getElementById('quantity').value; var colorid = "<?php echo $color; ?>"; $.ajax({ type: "POST", url: "addtocart.php", data: {productid: productid,productno : productno,qty:qty,custid:custid,price:price,colorid:colorid,weight:weight} }).done(function(data){ alert("Item Added in Cart"); location.reload(); }); } }; $('#quantity').change(function(){ var user_type = "<?php echo $_SESSION['user_role']; ?>"; var BtoBPrice1 = $('#BtoBPrice1').val(); var BtoBPrice2 = $('#BtoBPrice2').val(); var BtoBPrice3 = $('#BtoBPrice3').val(); if(user_type == 1){ var qty = $(this).val(); console.log('===>'+qty); if(qty <= 99){ var actual_price = BtoBPrice1; }else if(qty > 99 && qty <= 499){ var actual_price = BtoBPrice2; }else if(qty > 499){ var actual_price = BtoBPrice3; }else{ var actual_price = BtoBPrice1; } $('#product_price').html('₹'+actual_price); $('#actual_product_price').val(actual_price); } }) $('#quantity').keyup(function(){ var user_type = "<?php echo $_SESSION['user_role']; ?>"; var BtoBPrice1 = $('#BtoBPrice1').val(); var BtoBPrice2 = $('#BtoBPrice2').val(); var BtoBPrice3 = $('#BtoBPrice3').val(); if(user_type == 1){ var qty = $(this).val(); console.log('===>'+qty); if(qty <= 99){ var actual_price = BtoBPrice1; }else if(qty >99 && qty <= 499){ var actual_price = BtoBPrice2; }else if(qty > 499){ var actual_price = BtoBPrice3; }else{ var actual_price = BtoBPrice1; } $('#product_price').html('₹'+actual_price); $('#actual_product_price').val(actual_price); } }) </script> </body> </html>