MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.139.108.48
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/pccaterers.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/pccaterers.in/category.php
<?php include("site-header.php")?>
<?php $catName=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'");?>

<?php include("send-enquiry-code-product.php");?>        
<!-- Section: Services -->
<?php
$prd_name=$_REQUEST['cat_name'];
$catID=db_scalar("select category_id from tbl_category where 1 and category_url='$prd_name'");
$countSubCat=db_scalar("select count(*) from tbl_category where category_parent_id='$catID' and category_status='Active'"); // Count for sub category
?>

<?php 
$sql_cat=db_query("select * from tbl_category where 1 and category_id='$catID'");
if(mysqli_num_rows($sql_cat) > 0){
$CAT_DATA=mysqli_fetch_array($sql_cat);
@extract($CAT_DATA);
}	  
?>
		<!-- slider area start -->
		 <div class="breadcumb-area black-opacity bg-img-3" style="background:url(<?=$site_url."/uploaded_files/".db_scalar("select header_flash_image_name from tbl_header_flash WHERE header_flash_type='Inner'")?>) no-repeat center; background-size:cover;">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="breadcumb-wrap">
                            <h2><?=$catName?></h2>
                        </div>
                    </div>
                </div>
            </div>
            <div class="breadcumb-menu">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12">
                            <ul>
                                <li><a href="<?=$site_url?>/index.html">Home</a></li>
                                <li>/</li>
                                <li><?=$catName?></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-------------->
        <section class="about-area ptb-140">
			<div class="container">
				<div class="row">
					<div class="col-md-5 col-sm-12 col-xs-12 col-lg-5 wow fadeInLeft serv-sty">

                    
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12 serv-sty">
<a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" class="popup">
<img src="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" alt="<?php if($category_is_product=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($category_is_product=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" />
</a>
</div>


                  
                  <div class="clearfix"></div>
                  
<?php
$sql_catimage=db_query("select * from tbl_category_image where 1 and category_image_cat_id='$catID' order by category_image_id desc");
if(mysqli_num_rows($sql_catimage)>0){
?>                  
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">      
<?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
<div class="col-md-2 col-sm-2 col-xs-2 col-lg-2 serv-dtlsz">
<a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="popup">
<img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" style="width:60px;height:50px" />
</a>
</div>
<?php }?>        
</div>
<?php }?>      
      
      </div>
					<div class="col-md-7 col-sm-12 col-xs-12 col-lg-7 wow fadeInRight mp-res">
						<div class="about-wrap abt-home">
							<h2><?=$category_name?></h2>
							<p><?=$category_description?>  
                        </p>
                        <a href="<?=$site_url?>/enquiry.html?prd=<?=$category_name?>" class="rd-mr">Enquiry Now !!!</a>
                        </div>
					</div>
				</div>
			</div>
		</section>

        
        
<?php if($countSubCat > 0){ ?>
		<!-- about-area start -->
        <section class="blog-area ptb-140 bg-1">
			<div class="container">
            <div class="row">
					<div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1 col-xs-12 wow fadeInUp">
						<div class="section-title text-center">
							<h2><?=$category_name?> <?php if($compDATA['admin_product_option']=='Yes'){ ?>Products<? }else{ ?>Services<? } ?></h2>
						</div>
					</div>
				</div>

				<div class="row">
                
<?php
$sql_subcat=db_query("select * from tbl_category where 1 and category_parent_id='$catID' and category_status='Active' order by category_id asc");
$subCount=mysqli_num_rows($sql_subcat);
if($sql_subcat>0){
?>   
<?php
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>                 
<div class="col-md-4 col-sm-6 col-xs-12 col wow fadeInUp" data-wow-delay=".1s">
<div class="blog-wrap">
<div class="blog-img servd">
<img src="<?=$site_url?>/uploaded_files/<?=$category_image_name?>"  alt="<?php if($category_is_product=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($category_is_product=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$category_name?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>"  />
</div>
<div class="blog-content">

<a href="<?=$site_url?>/<?=$category_url?>.html"><h3><?=$category_name?></h3></a>
<p><?=substr(strip_tags($category_description),0,60)?></p>
<a href="<?=$site_url?>/<?=$category_url?>.html" class="btn-style">Read More</a>
</div>
</div>
</div>
<?php }?> 
<?php }?>                    
                    
                    
                
					
				</div>
			</div>
		</section>
<?php }?>        
		<!-- testmonial-area end -->
<?php include("site-footer.php")?>

MMCT - 2023