MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.216.42.122
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/natureamrit.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/natureamrit.com/category.php
<?php include("site-header.php");?>
  <style>
	.overlay > a {
    position: absolute;
    bottom: 0;
    /* left: 50%; */
    left: 25%;}
	</style>
  <div class="main-content scroll-none home-page">
    <div class="breadcrumbs">
      <div class="breadcrumbs-overlay"></div>
      <div class="page-title">
        <h2><?=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'")?></h2>
      </div>
      <ul class="crumb">
        <li><a href="index.html">Home</a></li>
        <li><a href="javascript:void(0);" class="cursd"><i class="fa fa-angle-double-right"></i><?=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'")?></a></li>
      </ul>
    </div>
<?php
$prd_name=$_REQUEST['cat_name'];
$catID=db_scalar("select category_id from tbl_category where 1 and category_url='$prd_name'");
if($catID=="")
{
    header("location:error.html");
}
$countSubCat=db_scalar("select count(*) from tbl_category where category_parent_id='$catID' and category_status='Active'"); // Count for sub category
if($countSubCat > 0){ ?>
    <?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);
}	  
?>
    <section id="features-3" class="features-3">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <div class="col-md-6 col-xs-12 col-lg-6 col-xs-12 col-sm-12 ">
              <div class="item">
                <div class="project-box ">
                  <div class="image-project rep"> <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']; ?> <? } ?>" style="width:auto; height:300px;">
                    <div class="overlay"> <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" class="zoomin" style=" position: absolute; left:50%;"> <i class="fa fa-expand"></i> </a> </div>
                  </div>
                </div>
              </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">
                <?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
                <div class="col-md-2 col-lg-2 col-xs-2 col-sm-2 mp00">
                  <div class="item">
                    <div class="project-box ">
                      <div class="image-project  rep-smld"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_name?>" title="<?=$category_name?>">
                        <div class="overlay"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="zoomin"> <i class="fa fa-expand"></i> </a> </div>
                      </div>
                    </div>
                  </div>
                </div>
                <? } ?>
              </div>
              <? } ?>
            </div>
            <div class="col-md-6 col-xs-12 col-lg-6 col-xs-12 col-sm-12 abt-sec">
              <h3><?=$category_name?></h3>
<!--<p><?=$compDATA['admin_company_name']?> Company is the best exporter importer of <b><?=$category_name?></b> in Kachchh Gujarat India, We are also the best supplier of <?=$category_name?> at low price rate.</p>-->
              <div><?=$category_description?></div>
              <a href="<?=$site_url?>/enquiry.html" class="btn btn-blue">Enquiry Now !!!</a> </div>
          </div>
        </div>
      </div>
    </section>
    <section class="block-section-4">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <h2 class="text-heading text-center"><?=$category_name?><strong>  <?php if($compDATA['admin_product_option']=='Yes'){ ?>
            Products
            <? }else{ ?>
            Services
            <? } ?></strong></h2>
          </div>
          <?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");
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?> 
          <div class="col-md-4 serd">
            <div class="blog">
              <div class="image text-center"> <img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>"  alt="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>"> </div>
              <div class="blog-content">
                <div class="post-text">
                  <h2><a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html"><?=$SUBCAT_DATA['category_name']?></a></h2>
                  <?php $description=strip_tags($SUBCAT_DATA['category_description']);?>
            <p class="item-content">
                
                 <?php if($description!="")
               {?> 
                <?=substr($description,0,85);?>
                         <?}else{?>
<?=substr("$compDATA[admin_company_name] Company is the best exporter importer of $SUBCAT_DATA[category_name] in Kachchh Gujarat India,
We are also the best supplier of $SUBCAT_DATA[category_name] at low price rate.",0,85);?>
<?}?>
                
                </p>
                  <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="btn-readmore">Read More <i class="fa fa-caret-right"></i></a> </div>
              </div>
            </div>
          </div>
          <? } ?>
        </div>
      </div>
    </section>
    <? }else{ ?>
    <?php
if(!empty($catID)){
$sql_final=db_query("select * from tbl_category where 1 and category_id='$catID'");
$FINAL_DATA=mysqli_fetch_array($sql_final);
@extract($FINAL_DATA);
$productName=$FINAL_DATA['category_name'];
$productImageName=$FINAL_DATA['category_image_name'];
$productDescription=$FINAL_DATA['category_description'];
}
?>
    <section id="features-3" class="features-3">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <div class="col-md-6 col-xs-12 col-lg-6 col-xs-12 col-sm-12 ">
              <div class="item">
                <div class="project-box ">
                  <div class="image-project rep"> <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 class="overlay"> <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" class="zoomin" style=" position: absolute; left:50%;"> <i class="fa fa-expand"></i> </a> </div>
                  </div>
                </div>
              </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">
                <?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
                <div class="col-md-2 col-lg-2 col-xs-2 col-sm-2 mp00">
                  <div class="item">
                    <div class="project-box ">
                      <div class="image-project  rep-smld"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_name?>" title="<?=$category_name?>">
                        <div class="overlay"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="zoomin"> <i class="fa fa-expand"></i> </a> </div>
                      </div>
                    </div>
                  </div>
                </div>
                <? } ?>
              </div>
              <? } ?>
            </div>
            <div class="col-md-6 col-xs-12 col-lg-6 col-xs-12 col-sm-12 abt-sec">
              <h1 style="font-size:30px;"><?=$category_name?></h1>
           <!--   <p><?=$compDATA['admin_company_name']?> Company is the best exporter importer of <?=$category_name?> in Kachchh Gujarat India, We are also the best supplier of <?=$category_name?> at low price rate.</p>-->
              <div><?=$category_description?></div>
              <a href="<?=$site_url?>/enquiry.html" class="btn btn-blue">Enquiry Now !!!</a> </div>
          </div>
        </div>
      </div>
    </section>
    <? } ?>
  </div>
  <?php include("index-static-content.php");?>
  <?php include("site-footer.php");?>
</div>
<script type="text/javascript" src="<?=$site_url?>/js/jquery.min.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/classie.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/jquery.colorbox.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/owl.carousel.min.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/waypoints.min.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/visible.min.js"></script>
<script type="text/javascript" src="<?=$site_url?>/js/jquery.easing.js"></script>
<script type="text/javascript" src="<?=$site_url?>/js/jquery.counterup.min.js"></script>
<script type="text/javascript" src="<?=$site_url?>/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="<?=$site_url?>/js/pro-bars.js"></script>
<script type="text/javascript" src="<?=$site_url?>/rs-plugin/js/jquery.themepunch.plugins.min.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/rs-plugin/js/jquery.themepunch.revolution.min.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/custom-index.js"></script> 
<script type="text/javascript" src="<?=$site_url?>/js/wmbox.js"></script>
</body>
</html>

MMCT - 2023