OverLord Shell
<?php
session_start();
require_once("db/conn.php");
if(empty($_GET['id']))header("location:404.php");
$product_id=base64_decode($_GET['id']);
//$listrow = getData('busdir_product','product_id',$product_id");
$listrow = getData('busdir_product a,busdir_mst_all_company b,busdir_states c','a.product_id',$product_id, "a.*,b.company_name,b.company_address,b.company_district,b.company_country,c.state,b.company_pinno,b.company_phone,b.company_email", " AND a.company_id=b.company_id AND b.company_state=c.state");
//$listrow = getData('busdir_product','product_id','$product_id');
if(count($listrow)==0)header("location:404.php");
$plan=$_SESSION['plans'];
include_once('header.inc.php');
?>
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/jquery-picZoomer.css">
<style type="text/css">
.piclist{
margin-top: 30px;
}
.piclist li{
display: inline-block;
width: 50px;
height: 50px;
}
.piclist li img{
width: 100%;
height: auto;
}
/* custom style */
.picZoomer-pic-wp,
.picZoomer-zoom-wp{
border: 1px solid #fff;
}
.flip {
height: 150px;
width: 200px;
margin: 0 auto;
}
.flip img {
width: 300px;
height: auto;
}
.flip .back {
padding-top: 22%;
background: #2184cd;
color: #fff;
text-align: center;
}
</style>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/jquery.flip.min.js"></script>
<script type="text/javascript" src="js/jquery.picZoomer.js"></script>
<script type="text/javascript">
$(function() {
$('.picZoomer').picZoomer();
$('.piclist li').on('click',function(event){
var $pic = $(this).find('img');
$('.picZoomer-pic').attr('src',$pic.attr('src'));
});
});
</script>
<div class="page-content">
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb" >
<li><a href="index.php">Home</a></li>
<?php $listrow1 = getData('busdir_mst_category ','catid',$listrow['catid']); ?>
<li class="active"> <a href="category.php?id=<?php echo base64_encode($listrow1['catid'])?>">
<?php echo $listrow1['categoryname']?>
</a></li>
<?php $listrow2 = getData('busdir_mst_subcategory ','subcatid',$listrow['subcatid']); ?>
<li class="active"> <a href="subcategory.php?id=<?php echo base64_encode($listrow2['subcatid'])?>">
<?php echo $listrow2['subcategoryname']?>
</a></li>
<li class="active"><a href="product.php?id=<?php echo base64_encode($listrow['product_id'])?>"><?php echo $listrow['product_name']?></a></li>
</ol>
</div>
</div>
<div class="row mbxl">
<div class="col-md-6">
<?php
$prodrow1=getDataMulti("busdir_product_photo", "product_id", $product_id, "", "active='y'");
$path="uploads/products/";
$path1=$path."thumbs/";
?>
<div class="picZoomer">
<?php
$i=1;
foreach($prodrow1 as $prodrow){
?>
<img src="<?php echo $path.$prodrow['photo_path']?>" height="320" width="320" alt="<?php echo $prodrow['photo_path']; ?>">
<?php
$i++;
}
?>
</div>
<ul class="piclist">
<?php
$i=1;
foreach($prodrow1 as $prodrow){
?>
<li><img src="<?php echo $path.$prodrow['photo_path']?>" alt="" ></li>
<?php
$i++;
}
?>
</ul>
<div class="visible-xs mbxl"></div>
</div>
<div class="col-md-6">
<h3 class="red mbm"><?php echo $listrow['product_name']?></h3>
<?php
$curr=$listrow['currency'];
$prodprice=$listrow['price'];
if(!is_null($listrow['discounted_price']))$prodprice=$listrow['discounted_price'];
?>
<div class="single-right-left">
<?php if(!empty($plans)){ ?>
<a href="enquiry.php?id=<?php echo base64_encode($listrow['my_company_id']);?>&pid=<?php echo base64_encode($listrow['product_id'])?>&cid=<?php echo base64_encode($listrow['company_id'])?>" class="btn-bd hvr-outline-out pull-right fancyboxajax">Send Enquiry</a>
<?php } ?>
<p>
<strong><span class="item_price"><?php echo $prodprice.$curr?></span></strong>
<small><del><?php if(!is_null($listrow['discounted_price']))echo $listrow['price'].$curr?></del></small>
</p>
</div>
<h5 class="mbs"><strong>Description</strong></h5>
<p><?php echo $listrow['description']?></p>
<hr>
<h5 class="mbs"><strong>Company
<?php
if($_SESSION['plans']!=0){?>
Info
<?php }?>
:</strong></h5>
<?php $listrow4 = getData('busdir_mst_all_company ','my_company_id',$listrow['my_company_id']); ?>
<a href="company.php?id=<?php echo base64_encode($listrow['my_company_id'])?>" class="black"> <h4 class="mbs red"><strong><?php echo $listrow4['company_name']?></strong></h4></a>
<?php
if($_SESSION['plans']!=0){?>
<p><strong>Address: </strong><?php echo $listrow['company_address']."<br>".$listrow['company_district'].", ".$listrow['state'].", ".$listrow['company_country']." - ".$listrow['company_pinno']?></p>
<p>Phone : <strong><?php echo $listrow['company_phone']?></strong></p>
<p>Email: <a href="mailto:<?php echo $listrow['company_email']?>"><strong><?php echo $listrow['company_email']?></strong></a></p>
<?php }?>
</div>
</div>
<div class="col-sm-12">
<?php
$c_id=$listrow4['my_company_id'];
$str=$connection->query("SELECT * FROM busdir_product where product_id!=".$product_id." and my_company_id=".$c_id." ");
if(sizeof($str)>0){
?>
<div class="row mbl">
<div class="col-md-12">
<h3 class="page-header">More Products by <span class="red"><?php echo $listrow4['company_name']?></span></h3>
<style><!--#product-slider > .owl-controls{margin:0}--></style>
<div id="product-slider" class="owl-carousel">
<?php
while($prodrow2=$str->fetch_assoc()){
?>
<div class="flip">
<div class="front">
<img style="height:140px; width: 246px;border:solid;border-color:aliceblue;"src="uploads/products/<?php echo $prodrow2['catlog']?>" class="img-responsive prodimg" alt="<?php echo $prodrow2['catlog']?>">
</div>
<a href="product.php?id=<?php echo base64_encode($prodrow2['product_id'])?>">
<div class="back">
<h3><?php echo $prodrow2['product_name']?></h3>
<h4 ><strong><?php echo $listrow4['company_name']?></strong></h4>
</div>
</a>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php }
else{
echo "No more products";
}?>
</div>
<div class="col-sm-12">
<?php
$c_id=$listrow4['my_company_id'];
$str=$connection->query("SELECT * FROM busdir_product where product_id!=".$product_id." and my_company_id=".$c_id." ");
if(sizeof($str)>0){
?>
<div class="row mbl">
<div class="col-md-12">
<h3 class="page-header">More Products by <span class="red"><?php echo $listrow4['company_name']?></span></h3>
<style><!--#product-slider > .owl-controls{margin:0}--></style>
<div id="product-slider" class="owl-carousel">
<?php
while($prodrow2=$str->fetch_assoc()){
?>
<div class="flip">
<div class="front">
<img style="height:140px; width: 246px;border:solid;border-color:aliceblue;"src="uploads/products/<?php echo $prodrow2['catlog']?>" class="img-responsive prodimg" alt="<?php echo $prodrow2['catlog']?>">
</div>
<a href="product.php?id=<?php echo base64_encode($prodrow2['product_id'])?>">
<div class="back">
<h3><?php echo $prodrow2['product_name']?></h3>
<h4 ><strong><?php echo $listrow4['company_name']?></strong></h4>
</div>
</a>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php }
else{
echo "No more products";
}?>
</div>
</div>
</div>
<script src="js/jquery.elevateZoom-3.0.8.min.js"></script>
<link rel="stylesheet" property="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" property="stylesheet" href="css/owl.theme.css">
<script src="js/owl.carousel.min.js"></script>
<link href="css/jquery.fancybox.css" rel="stylesheet">
<script src="js/jquery.fancybox.pack.js"></script>
<script>
$( document ).ready(function() {
$(".flip").flip({
trigger: 'hover',
axis: 'x'
});
});
</script>
<script type="text/javascript">
$('#zoom_03').elevateZoom({
gallery : 'gallery_01',
responsive : true,
zoomType : 'inner',
cursor : 'crosshair',
scrollZoom : true,
galleryActiveClass : 'active',
imageCrossfade : true,
loadingIcon : 'images/AjaxLoader.gif'
});
$('#product-slider').owlCarousel({
items:4,
navigation:true,
pagination:false,
navigationText : ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'],
});
$('#related-slider').owlCarousel({
items:4,
navigation:true,
pagination:false,
navigationText : ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'],
});</script>
<script>
$('.fancyboxajax').fancybox({
type:'ajax'
});
</script>
<?php include_once("footer.inc.php");connClose();?>
xRyukZ - Copyright 2k19