OverLord Shell

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

<?php
session_start();
require_once("db/conn.php");
include_once('header.inc.php');
if(empty($_GET['id']))header("location:404.php");
$product_id=base64_decode($_GET['id']);

$listrow = getData('busdir_product a,busdir_mst_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");


?>

    <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" type="text/css" href="css/jquery-picZoomer.css">
<style type="text/css"><!--
#gallery_01 img{border:1px solid transparent;}
.active img{border:1px solid #333 !important;}
-->
    .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;
    }


</style>
    <script src="http://code.jquery.com/jquery-1.11.3.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">
    	 <?php /*?><div class="row">
        	<div class="col-md-12">
				<ol class="breadcrumb">
					<li><a href="index.php">Home</a></li>
					<li class="active"><?php echo $listrow['product_name']?></li>
				</ol>
            </div>
          </div><?php */?>
    	<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="mbl" style="overflow:hidden"><img id="zoom_03" src="<?php echo $path.$prodrow1[0]['photo_path']?>" data-zoom-image="<?php echo $path.$prodrow2[0]['photo_path']?>" class="img-responsive center-block"></div>
                
				<div id="gallery_01">-->
				
               
                    <!--<a href="#" class="elevatezoom-gallery<?php if($i==1){?> active<?php }?>" data-image="<?php echo $path.$prodrow['photo_path']?>" data-zoom-image="<?php echo $path.$prodrow['photo_path']?>">
                        <img src="<?php echo $path1.$prodrow['photo_path']?>" width="100">
                    </a>-->
					<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
				$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['company_id'])?>" class="btn-bd hvr-outline-out pull-right fancyboxajax">Send Enquiry</a>
                	<p>
                    	<strong><span class="item_price"><?php echo $prodprice?></span></strong>
                        <small><del><?php if(!is_null($listrow['discounted_price']))echo $listrow['price']?></del></small>
                    </p>
                </div>
                <h5 class="mbs"><strong>Description</strong></h5>
                <p><?php echo $listrow['description']?></p>
                <hr>
                <h5 class="mbs"><strong>Company Info:</strong></h5>
                <h4 class="mbs red"><strong><a href="company.php?id=<?php echo base64_encode($listrow['company_id']); ?>" style="text-decoration:none !important ;"><?php echo $listrow['company_name']?></a></strong></h4>
                <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>
			</div>
        </div>

		<?php
        $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 1");
		
		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 $listrow['company_name']?></span></h3>
                <style><!--#product-slider > .owl-controls{margin:0}--></style>
                
                <div id="product-slider" class="owl-carousel">
                    <?php
                    foreach($prodrow2 as $prodrow1){
                    ?>
                    <div class="productbox">
                        <p><a href="product.php?id=<?php echo base64_encode($prodrow1['product_id'])?>"><img src="uploads/products/<?php echo $prodrow1['photo_path']?>" class="img-responsive prodimg" alt="<?php echo $prodrow1['product_name']?>"  height="200" width="200"></a>
                        <br/><h5><a href="product.php?id=<?php echo base64_encode($prodrow1['product_id'])?>"><?php echo $prodrow1['product_name']?></a></h5></p>
                    </div>
					
                    <?php
                    }
                    ?>
                </div>
            </div>
        </div>
        <?php }?>

		<?php
        $prodrow3=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 1");
		if(count($prodrow3)>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($prodrow3 as $prodrow2){
                    ?>
                    <div class="productbox">
                        <p><a href="product.php?id=<?php echo base64_encode($prodrow2['product_id'])?>"><img src="uploads/products/<?php echo $prodrow2['photo_path']?>" class="img-responsive prodimg" alt="<?php echo $prodrow2['product_name']?>" height="200" width="200" ></a>
                         <br/><h5 ><a href="product.php?id=<?php echo base64_encode($prodrow2['product_id'])?>"><?php echo $prodrow2['product_name']?></a></h5></p>
                    </div>
                    <?php
                    }
                    ?>
                </div>
            </div>
        </div>
        <?php }?>
    </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 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'
});
$('#zoom_03').bind('click', function(e) {
	var ez = $('#zoom_03').data('elevateZoom');
	ez.closeAll(); //NEW: This function force hides the lens, tint and window
	$.fancybox(ez.getGalleryList());
	return false;
});
$('#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>'],
});
$('.fancyboxajax').fancybox({type:'ajax'});
</script>-->
<script type="text/javascript">
  
  $('.fancyboxajax').fancybox({type:'ajax'});
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<link href="css/jquery.fancybox.css" rel="stylesheet">
<script src="js/jquery.fancybox.pack.js"></script>

<?php include_once("footer.inc.php");connClose();?>

xRyukZ - Copyright 2k19