OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/producbkt.php

<?php
session_start();
require_once("db/conn.php");

if(empty($_GET['id']))header("location:404.php");
echo $product_id=base64_decode($_GET['id']);


$listrow = getData('busdir_product ','product_id',$product_id );
$aa=$listrow['my_company_id'];
$listrow4 = getData('busdir_mst_all_company ','my_company_id',$aa );
//print_r($listrow2);exit;

//$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");
if(count($listrow)==0)header("location:404.php");

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">
                
            
                
                        <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>
                	
                    <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>
               <a href="company.php?id=<?php echo base64_encode($listrow4['my_company_id'])?>" class="black"> <h4 class="mbs red"><strong><?php echo $listrow4['company_name']?></strong></h4></a>

                <p><strong>Address: </strong><?php echo $listrow4['company_address']."<br>".$listrow4['company_district'].", ".$listrow4['state'].", ".$listrow4['company_country']." - ".$listrow4['company_pinno']?></p>
                <p>Phone : <strong><?php echo $listrow4['company_phone']?></strong></p>
                <p>Email: <a href="mailto:<?php echo $listrow4['company_email']?>"><strong><?php echo $listrow4['company_email']?></strong></a></p>
                
			</div>
        </div><div class="col-sm-12">
        <?php
$prodrow2 = getData('busdir_product ','my_company_id',$aa );
      // $prodrow2=getDataMulti("busdir_product a,busdir_product_photo b", "a.product_id", "b.product_id", "a.*,b.photo_path", "a.company_id=".$listrow['company_id']." AND a.product_id!=".$product_id." AND a.active='y' LIMIT 8");
		
		if(sizeof($prodrow2)>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
                    foreach($prodrow2 as $prodrow){
						
                    ?>
				<?php
                       $pp=$prodrow['product_id']; 
				$prodrow4 = getData('busdir_product_photo ','product_id',$pp );
				?>
				
				
				
					
					<div class="flip"> 
    <div class="front"> 
     <img style="height:140px; width: 246px;border:solid;border-color:aliceblue;"
	 src="uploads/products/<?php echo $prodrow4['photo_path']?>"
	 class="img-responsive prodimg" alt="<?php echo $prodrow['product_name']?>">
    </div> 
  <a href="product.php?id=<?php echo base64_encode($prodrow['product_id'])?>">
    <div class="back">
         <h3><?php echo $prodrow['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";
		}?>
        
               
        
        <?php
        $prodrow2=getDataMulti("busdir_product a,busdir_product_photo b", "a.product_id", "b.product_id", "a.*,b.photo_path", "a.subcatid=".$listrow['subcatid']." AND a.product_id!=".$product_id." AND a.active='y' LIMIT 8");
		if(count($prodrow2)>0){
        ?>

        <div class="row">
        	<div class="col-md-12">
            	<h3 class="page-header">Related Products</h3>
                <style><!--#product-slider > .owl-controls{margin:0}--></style>
                <div id="related-slider" class="owl-carousel">
                    <?php
                    foreach($prodrow2 as $prodrow){
                    ?>
					
					<div class="flip"> 
    <div class="front"> 
      <img style="height:140px; width: 246px;border:solid;border-color:aliceblue;"src="uploads/products/<?php echo $prodrow['photo_path']?>" class="img-responsive prodimg" alt="<?php echo $prodrow['product_name']?>">
    </div> 
     <a href="product.php?id=<?php echo base64_encode($prodrow['product_id'])?>">
     <div class="back">
         <h3><?php echo $prodrow['product_name']?></h3>
		 <?php $listrow1 = getData('busdir_mst_all_company ','my_company_id',$prodrow['my_company_id']); ?>
		 <h4 ><strong><?php echo $listrow1['company_name']?></strong></h4>
    </div> 
    </a>
</div>
                   
                    <?php
                    }
                    ?>
                </div>
            </div>
        </div>
        <?php }?>
        </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