OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/company.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 a,busdir_mst_company b ','a.company_id','b.company_id',"a.*" ," and my_company_id=".$company_id." and a.active='y' and a.deleted='n' and b.plans!='0'");
if(count($listrow)==0)header("location:404.php");
$editsocial=getData('busdir_mst_social','my_company_id',$company_id,"*",null);
$comp_id=$listrow['company_id'];
?>

<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:#fff;">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">Products</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 distinct catid FROM busdir_product WHERE my_company_id=".$listrow['my_company_id']." and active='y' and deleted='n'";
					$getdata3=$connection->query($sql1);
					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>
	 
	<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 deleted='n'	 ";
			//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: 50%;">
            
                <div class="subcategory_box shadow_box text-center">
                	<a href="product.php?id=<?php echo base64_encode($listrow3['product_id'])."&web=&img=uploads/products/".$listrow3['photo_path']?>"><img class="img-responsive center-block mbm" src="uploads/products/<?php echo $listrow3['photo_path']?>" alt="" style="height:120px;
    width:303px;" title="<?php echo $listrow['company_name']?>"></a>
    
                    <h5 class="text-uppercase"><a href="product.php?id=<?php echo base64_encode($listrow2['product_id'])?>" title="<?php echo $listrow['company_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>
<?php /*?><script type='text/javascript' src="js/jquery.min.js"></script><?php */?>
    <script type="text/javascript">
	$('#Container').mixItUp();
        $(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>
    <style>
.mobile-social-share {
    background: none repeat scroll 0 0 #EEEEEE;
    display: block !important;
    min-height: 70px !important;
    margin: 50px 0;
}

body {
    color: #777777;
    font-family: "Lato","Helvetica Neue","Arial","Helvetica",sans-serif;
    font-size: 13px;
    line-height: 19.5px;
}


.mobile-social-share h3 {
    color: inherit;
    float: left;
    font-size: 15px;
    line-height: 20px;
    margin: 25px 25px 0 25px;
}

.share-group {
    float: right;
    margin: 18px 25px 0 0;
}

.btn-group {
    display: inline-block;
    font-size: 0;
    position: relative;
    vertical-align: middle;
    white-space: nowrap;
}

.mobile-social-share ul {
    float: right;
    list-style: none outside none;
    margin: 0;
    min-width: 61px;
    padding: 0;
}

.share {
    min-width: 17px;
}

.mobile-social-share li {
    display: block;
    font-size: 18px;
    list-style: none outside none;
    margin-bottom: 3px;
    margin-left: 4px;
    margin-top: 3px;
}

.btn-share {
    background-color: #BEBEBE;
    border-color: #CCCCCC;
    color: #333333;
}

.btn-twitter {
    background-color: #3399CC !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-facebook {
    background-color: #3D5B96 !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-facebook {
    background-color: #3D5B96 !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-google {
    background-color: #DD3F34 !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-linkedin {
    background-color: #1884BB !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-pinterest {
    background-color: #CC1E2D !important;
    width: 51px;
    color:#FFFFFF!important;
}

.btn-mail {
    background-color: #FFC90E !important;
    width: 51px;
    color:#FFFFFF!important;
}

.caret {
    border-left: 4px solid rgba(0, 0, 0, 0);
    border-right: 4px solid rgba(0, 0, 0, 0);
    border-top: 4px solid;
    display: inline-block;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    width: 0;
}

#socialShare {
    max-width:59px;
    margin-bottom:18px;
}

#socialShare > a{
    padding: 6px 10px 6px 10px;
}

@media (max-width : 320px) {
    #socialHolder{
        padding-left:5px;
        padding-right:5px;
    }
    
    .mobile-social-share h3 {
        margin-left: 0;
        margin-right: 0;
    }
    
    #socialShare{
        margin-left:5px;
        margin-right:5px;
    }
    
    .mobile-social-share h3 {
        font-size: 15px;
    }
}

@media (max-width : 238px) {
    .mobile-social-share h3 {
        font-size: 12px;
    }
}



</style>


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

xRyukZ - Copyright 2k19