OverLord Shell

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

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

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

$catrow=getData("busdir_mst_category","catid",$catid,""," AND active='y' ");

/*$listrow2=getDataMulti("busdir_mst_subcategory ", "catid", $catid, "", "active='y' ORDER BY subcategoryname");*/


$listrow2=getDataMulti("busdir_mst_subcategory a,busdir_product b", "a.subcatid", "b.subcatid", "a.*,b.product_id", "b.active='y' AND a.active='y' AND b.deleted!='y' and b.catid=$catid group by a.subcatid");


include_once("header.inc.php");
?>
<section id="content">
	<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 $catrow['categoryname']?></li>
				</ol>
            </div>
        </div>
    	<div class="row page-header">
        	<div class="col-md-12">
            	<h2 ><?php echo $catrow['categoryname']?>
           
               <a href="enquiry.php?catid=<?php echo $catid ?>" class="btn-bd hvr-outline-out pull-right fancybox">Send Enquiry</a></h2>
            </div>
        </div>
    	<div class="row">
			<?php
            foreach($listrow2 as $listrow){
            ?>
			
			 <?php
			// $sql2="SELECT count(*) as ycount FROM busdir_produtc a INNER JOIN busdir_mst_all_company b ON a.my_company_id = b.my_company_id where b.active='y' and b.deleted='n' and a.subcatid='".$listrow['subcatid']."'and a.deleted='n'";
			  $sql2="SELECT count(*) as ycount FROM `busdir_product` where subcatid=".$listrow['subcatid']." and active='y' AND  deleted!='y' AND company_id IN (select company_id from busdir_mst_company)";
				$countq2 = $connection->query($sql2);
				$listrow3=$countq2->fetch_assoc();
			{
if($listrow3['ycount']!='0'){
				?>
		
            <div class="col-md-3 col-sm-4" style="margin-bottom: 2%">
			 <span class="test2 badge red" style="float:right;color:white;background-color:red;margin-top:-3%;">	<?php echo $listrow3['ycount'];?></span>
             <div class="subcategory_box shadow_box text-center" style="padding-top:100px;padding-left: 2px;box-shadow: 0px 0px 15px 0px #D6D6D6;margin-bottom: -2px;">
                	<!--<a href="subcategory.php?id=<?php //echo base64_encode($listrow['subcatid'])?>"><img class="img-responsive center-block mbm" src="images/b15.jpg" alt=""></a>-->
                    <h5 class="text-uppercase" style="margin-top: -20%;"><a href="subcategory.php?id=<?php echo base64_encode($listrow['subcatid'])?>" title="<?php echo $listrow['subcategoryname']?>"><?php echo $listrow['subcategoryname'];?></a></h5>
                </div>
            </div>
            <?php
            }}}
            ?>
        </div>
    </div>
</section>
<link href="css/jquery.fancybox.css" rel="stylesheet">
<script src="js/jquery.fancybox.pack.js"></script>
<script>
$('.fancybox').fancybox({
type:'ajax'

});</script>

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

xRyukZ - Copyright 2k19