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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/brmarketingindia.com/category.php
<?php include("site-header.php");?>
  <!-- END HEADER --> 
  <!-- CONTENT --> 
  <!-- Intro Section -->
<?php include("site-header-flash-inner.php");?>  <!-- Intro Section --> 
<?php include("send-enquiry-code-product.php");?> 



       
  <!-- Service Section -->
<?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 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);
}	  
?>

  <div id="services-section" class="pt-80 pt-xs-60">
    <div class="container">
      <div class="row">
        <div class="col-md-4 col-sm-5 col-sx-12">
          <?php include("category-left-nav.php");?>
          
        </div>
        <div class="col-md-8 col-sm-7">
          <div class="text-box mt-xs-30">            
            <div class="text-content mb-20">
<h2><?=$category_name?></h2>
            
            <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" data-lightbox="example-1"><img class="img-responsive" 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:100%; height:410px;"></a>
            
            
            
<?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="row">
<?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>                  
            <div class="col-md-3 col-xs-6" style="margin-top:25px;">
            <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1"><img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" class="img-responsive" style="width:100%; height:130px;"></a>
            </div>
<?php
}
?>
            </div>
<?php
}
?>
             
             
             <div style="text-align:justify" class="mt20">
             <?=$category_description?>              
             </div>
             
             
            </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");
$subCount=mysqli_num_rows($sql_subcat);
if($sql_subcat>0){
?>            
            <div class="row">
            <div class="col-sm-12">
          <div class="block-title v-line">
            <h2><span><?=$category_name?></span> <?php if($compDATA['admin_product_option']=='Yes'){ ?>Products<? }else{ ?>Services<? } ?></h2>
          </div>
        </div>
            <div class="col-sm-12">
            <ul class="project-col-3 isotope" id="isotope">
            
<?php
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>              
            <li class="education">
              <div class="about-block mb-60 mb-xs-40 clearfix">
                <figure> <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" data-lightbox="example-1"><img class="img-responsive" 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> </figure>
                <div class="text-box mt-25">
                  <div class="box-title mb-15">
                    <h3><a href="<?=$site_url?>/<?=$category_url?>.html"><?=$category_name?></a></h3>
                  </div>
                  <div class="text-content">
                    <p> <?=substr($category_description,0,80)?> </p>
                    <a href="<?=$site_url?>/<?=$category_url?>.html" class="btn-text mt-15">Read More</a> </div>
                </div>
              </div>
            </li>
<?php
}
?>
    
                              
          </ul>
            </div>
            </div>
<?php
}
?>            
       
       
<div class="row" style="margin-bottom:55px;">
            
            <div class="col-sm-12">
            <h4>Enquiry For &nbsp;&nbsp; <span class="color-theme"><em><?=$CAT_DATA['category_name']?></em></span></h4>
          <!-- Contact FORM -->
          <form class="contact-form mt-45" id="contact" method="post" action="<?=htmlspecialchars($_SERVER['PHP_SELF'])?>" onSubmit="return EnqValidation();">           
            <!-- IF MAIL SENT SUCCESSFULLY -->

              <div class="<?=$clrerr?> mb20 color-red"><?=display_sess_msg()?> </div>

            <!-- END IF MAIL SENT SUCCESSFULLY -->           
            <div class="row">
              <div class="col-sm-6">
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_nam" type="text" name="enquiry_nam" placeholder="Your Name">
                </div>
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_emai" type="text" name="enquiry_emai" placeholder="Email" >
                </div>
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_sub" type="text" name="enquiry_sub" placeholder="Subject">
                </div>
                
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_mobil" type="text" name="enquiry_mobil" placeholder="Mobile">
                </div>
                
              </div>
              <div class="col-sm-6">
                <div class="form-field">
                  <textarea class="form-full" id="enquiry_detai" rows="7" name="enquiry_detai" placeholder="Your Message" ></textarea>
                </div>


                <div class="form-field">
<div class="col-lg-9 no-padd">
<input  name="captcha" id="security_cod" class="form-control " type="text" placeholder="Enter Security Code" >               
</div>
<div class="col-lg-3">
<img src="amitabhcaptcha.php" class="pull-right"   width="60" height="31" alt="Captcha" id="cap-home" />
</div>

                </div>








                
                

                
              </div>
              <div class="col-sm-12 mt-30">
                <button class="btn-text" type="submit" id="submit" name="EnqSubmit"> Send Message </button>
              </div>
            </div>
          </form>
            </div>
            </div>            
            
            
            
          </div>
        </div>
      </div>
    </div>
  </div>
  
  
  
<?php }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'];
}
?>

<div id="services-section" class="pt-80 pt-xs-60">
    <div class="container">
      <div class="row">
        <div class="col-md-4 col-sm-5 col-sx-12">
<?php include("category-left-nav.php");?>
          
        </div>
        <div class="col-md-8 col-sm-7">
          <div class="text-box mt-xs-30">            
            <div class="text-content mb-20">
<h2><?=$category_name?></h2>
            
            <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" data-lightbox="example-1"><img class="img-responsive" 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:100%; height:410px;"></a>
            
            
            
<?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="row">
<?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>                  
            <div class="col-md-3 col-xs-6" style="margin-top:25px;">
            <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1"><img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" class="img-responsive" style="width:100%; height:130px;"></a>
            </div>
<?php
}
?>
            </div>
<?php
}
?>
             
             
             <div style="text-align:justify" class="mt20">
             <?=$category_description?>              
             </div>
             
             
            </div>
            
            
            
            
            <div class="row" style="margin-bottom:55px;">
            
            <div class="col-sm-12">
            <h4>Enquiry For &nbsp;&nbsp; <span class="color-theme"><em><?=$category_name?></em></span></h4>
          <!-- Contact FORM -->
          <form class="contact-form mt-45" id="contact" method="post" action="<?=htmlspecialchars($_SERVER['PHP_SELF'])?>" onSubmit="return EnqValidation();">           
            <!-- IF MAIL SENT SUCCESSFULLY -->

              <div class="<?=$clrerr?> mb20 color-red"><?=display_sess_msg()?> </div>

            <!-- END IF MAIL SENT SUCCESSFULLY -->           
            <div class="row">
              <div class="col-sm-6">
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_nam" type="text" name="enquiry_nam" placeholder="Your Name">
                </div>
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_emai" type="text" name="enquiry_emai" placeholder="Email" >
                </div>
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_sub" type="text" name="enquiry_sub" placeholder="Subject">
                </div>
                
                <div class="form-field">
                  <input class="input-sm form-full" id="enquiry_mobil" type="text" name="enquiry_mobil" placeholder="Mobile">
                </div>
                
              </div>
              <div class="col-sm-6">
                <div class="form-field">
                  <textarea class="form-full" id="enquiry_detai" rows="7" name="enquiry_detai" placeholder="Your Message" ></textarea>
                </div>


                <div class="form-field">
<div class="col-lg-9 no-padd">
<input  name="captcha" id="security_cod" class="form-control " type="text" placeholder="Enter Security Code" >               
</div>
<div class="col-lg-3">
<img src="amitabhcaptcha.php" class="pull-right"   width="60" height="31" alt="Captcha" id="cap-home" />
</div>

                </div>








                
                

                
              </div>
              <div class="col-sm-12 mt-30">
                <button class="btn-text" type="submit" id="submit" name="EnqSubmit"> Send Message </button>
              </div>
            </div>
          </form>
            </div>
            </div>
            
            
            
            
          </div>
        </div>
      </div>
    </div>
  </div>
<?php }?>  
  <!-- Service Section end -->
  
  

<?php include("site-footer.php");?>

MMCT - 2023