MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.12.34.192
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/ambicaengineeringworks.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/ambicaengineeringworks.in/category.php
<?php include("site-header.php");?>
<!-- =-=-=-=-=-=-= HEADER END =-=-=-=-=-=-= --> 
<!-- =-=-=-=-=-=-= INNER FLASH =-=-=-=-=-=-= -->
<?php include("site-header-flash-inner.php");?>
<link rel="stylesheet" href="<?=$site_url?>/css/lightbox.css">
<?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);
}	  
?>
<!-- =-=-=-=-=-=-= INNER FLASH END =-=-=-=-=-=-= --> 
<!-- =-=-=-=-=-=-= Blog & News =-=-=-=-=-=-= -->
<section id="blog" class="custom-padding">
  <div class="container"> 
    <!-- Row -->
    <div class="row"> 
      <!-- Left Content Area -->
      <div class="col-sm-12 col-xs-12 col-md-8 col-md-push-4"> 
        <!-- blog-grid -->
        <div class="news-box"> 
          <!-- post image -->
          <div class="news-thumb"> 
            <!-- standard post --> 
            <a class="tt-lightbox" href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>"><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:400px;"></a> 
            <!-- standard post end -->
            <div class="date"> <strong>
              <?=date("d")?>
              </strong> <span>
              <?=date("M")?>
              </span> </div>
          </div>
          <!-- post image end -->
          
          <div class="row">
            <?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){
?>
            <?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
            <div class="col-sm-4 col-md-3 col-xs-6" style="margin-top:15px;"> <a class="tt-lightbox" href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" ><img class="img-responsive" alt="<?php echo $compDATA['admin_company_name']; ?>" src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" style="width:100%; height:120px;"></a> 
              <!-- end services-grid-1 --> 
            </div>
            <?php 
}
?>
            <?php 
}
?>
          </div>
          
          <!-- blog detail -->
          <div class="news-detail single">
            <h2>
              <?=$category_name?>
            </h2>
            <div>
              <?=$category_description?>
            </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");
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>
              <div class="col-sm-6 col-md-6 col-xs-12">
                <div class="services-grid-1 services-grid">
                  <div class="service-image"> <a href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>" class="tt-lightbox"><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']; ?> <? } ?>"  class="img-responsive" style="width:100%; height:180px;"></a> </div>
                  <div class="services-text">
                    <h4 style="font-size:16px;"><a href="<?=$site_url?>/<?=$category_url?>.html">
                      <?=$category_name?>
                      </a></h4>
                    <p>
                      <?=substr(strip_tags($category_description),0,50)?>
                    </p>
                    <p></p>
                  </div>
                  <div class="more-about"> <a href="<?=$site_url?>/<?=$category_url?>.html" class="btn btn-primary btn-lg" >Read More <i class="fa fa-chevron-circle-right"></i></a> </div>
                </div>
                <!-- end services-grid-1 --> 
              </div>
              <?php 
}
?>
            </div>
          </div>
          <!-- blog detail end --> 
          
        </div>
        <!-- blog-grid end -->
        <div class="col-lg-12 text-center"> <a href="<?=$site_url?>/enquiry.html" class="btn btn-primary btn-lg" >Enquiry Now <i class="fa fa-chevron-circle-right"></i></a></div>
        <div class="clearfix"></div>
      </div>
      <!-- Left Content Area --> 
      
      <!-- Right Sidebar Area -->
      <div class="col-sm-12 col-xs-12 col-md-pull-8 col-md-4" id="side-bar"> 
        
        <!-- sidebar -->
        <div class="theiaStickySidebar">
          <div class="side-bar-services">
            <ul class="side-bar-list">
              <li><a href="<?=$site_url?>/products.html" class="active">All
                <?php if($compDATA['admin_product_option']=='Yes'){ ?>
                Products
                <? }else{ ?>
                Services
                <? } ?>
                </a></li>
              <?php
$sql_subcat=db_query("select * from tbl_category where 1 and category_parent_id='0' and category_status='Active' order by category_id asc");
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>
              <li><a href="<?=$site_url?>/<?=$category_url?>.html">
                <?=$category_name?>
                </a></li>
              <?php }?>
            </ul>
          </div>
        </div>
        <!-- sidebar end --> 
        
      </div>
      <!-- Right Sidebar Area End --> 
    </div>
    <!-- Row End --> 
  </div>
  <!-- end container --> 
</section>
<? }else{ ?>
<section id="blog" class="custom-padding">
  <?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 class="container"> 
    <!-- Row -->
    <div class="row"> 
      <!-- Left Content Area -->
      <div class="col-sm-12 col-xs-12 col-md-8 col-md-push-4"> 
        <!-- blog-grid -->
        <div class="news-box"> 
          <!-- post image -->
          <div class="news-thumb"> 
            <!-- standard post --> 
            <a class="tt-lightbox" href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>"><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:400px;"></a> 
            <!-- standard post end --> 
            
          </div>
          <!-- post image end -->
          
          <div class="row">
            <?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){
?>
            <?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
            <div class="col-sm-4 col-md-3 col-xs-6" style="margin-top:15px;"> <a class="tt-lightbox" href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" ><img class="img-responsive" alt="" src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" style="width:100%; height:120px;"></a> 
              <!-- end services-grid-1 --> 
            </div>
            <?php 
}
?>
            <?php 
}
?>
          </div>
          
          <!-- blog detail -->
          <div class="news-detail single">
            <h2><?=$category_name?></h2>
            <div>
              <?=$category_description?>
            </div>
          </div>
          <!-- blog detail end --> 
          
        </div>
        <!-- blog-grid end -->
        
        <div class="clearfix"></div>
        <?php include("send-enquiry-code-product.php");?>
        <div class="col-md-12 text-center <?=$clrerr?>" >
          <?=display_sess_msg()?>
        </div>
        <div class="row" style="margin-top:35px; border:1px solid #E4E4E4;padding:15px 0 15px 0">
          <div class="col-md-12 text-center" style="margin-bottom:25px;">
            <h3><strong><a href="javascript:void(0);" style="cursor:default;">Enquiry For
              <?=$category_name?>
              </a></strong></h3>
          </div>
          <form id="contactForm"  method="post" action="" onSubmit="return EnqValidation();" enctype="multipart/form-data">
            <div class="col-sm-6"> 
              <!-- Name -->
              <div class="form-group">
                <label>Name<span class="required">*</span></label>
                <input type="text" placeholder="Name" name="enquiry_nam" id="enquiry_nam" class="form-control" >
              </div>
            </div>
            <!-- End col-sm-6 -->
            
            <div class="col-sm-6"> 
              <!-- Email -->
              <div class="form-group">
                <label for="email">Email<span class="required">*</span></label>
                <input type="email" placeholder="Email" id="enquiry_emai" name="enquiry_emai" class="form-control" >
              </div>
            </div>
            <!-- End col-sm-6 -->
            
            <div class="col-sm-6"> 
              <!-- Name -->
              <div class="form-group">
                <label>Mobile<span class="required">*</span></label>
                <input type="text" placeholder="Mobile" id="enquiry_mobil" name="enquiry_mobil" class="form-control" >
              </div>
            </div>
            <!-- End col-sm-6 -->
            
            <div class="col-sm-6"> 
              <!-- Email -->
              <div class="form-group">
                <label for="email">Subject<span class="required">*</span></label>
                <input type="text" placeholder="Subject" id="enquiry_sub" name="enquiry_sub" class="form-control" >
              </div>
            </div>
            <!-- End col-sm-6 -->
            
            <div class="col-sm-12"> 
              <!-- Comment -->
              <div class="form-group">
                <label>Message<span class="required">*</span></label>
                <textarea placeholder="Message..." id="enquiry_detai" name="enquiry_detai"  class="form-control" rows="6" ></textarea>
              </div>
            </div>
            <!-- End col-sm-12 -->
            
            <div class="form-group col-md-12 col-sm-12 col-xs-12">
              <input id="security_cod" name="captcha" class="form-control"  type="text" placeholder="Enter Security Code">
              <img src="amitabhcaptcha.php" class="pull-right"   width="60" height="31" alt="Captcha" id="cap" /> </div>
            <div class="col-sm-12 text-center">
              <button type="submit" id="yes" name="EnqSubmit" class="btn btn-primary">Send Message</button>
              <img id="loader" alt="" src="images/loader.gif" class="loader"> </div>
            <!-- End col-sm-6 -->
            
          </form>
        </div>
      </div>
      <!-- Left Content Area --> 
      
      <!-- Right Sidebar Area -->
      <div class="col-sm-12 col-xs-12 col-md-pull-8 col-md-4" id="side-bar"> 
        
        <!-- sidebar -->
        <div class="theiaStickySidebar">
          <div class="side-bar-services">
            <ul class="side-bar-list">
              <li><a href="<?=$site_url?>/products.html" class="active">All
                <?php if($compDATA['admin_product_option']=='Yes'){ ?>
                Products
                <? }else{ ?>
                Services
                <? } ?>
                </a></li>
              <?php
$sql_subcat=db_query("select * from tbl_category where 1 and category_parent_id='0' and category_status='Active' order by category_id asc");
while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>
              <li><a href="<?=$site_url?>/<?=$category_url?>.html">
                <?=$category_name?>
                </a></li>
              <?php }?>
            </ul>
          </div>
        </div>
        <!-- sidebar end --> 
        
      </div>
      <!-- Right Sidebar Area End --> 
    </div>
    <!-- Row End --> 
  </div>
  <!-- end container --> 
</section>
<?php 
}
?>

<!-- =-=-=-=-=-=-= Blog & News end =-=-=-=-=-=-= --> 
<!-- =-=-=-=-=-=-= Call To Action =-=-=-=-=-=-= -->
<div class="parallex-small ">
  <div class="container">
    <div class="row custom-padding-20 ">
      <div class="col-md-8 col-sm-8">
        <div class="parallex-text">
          <h4>Not sure which solution fits you business needs?</h4>
        </div>
        <!-- end subsection-text --> 
      </div>
      <!-- end col-md-8 -->
      
      <div class="col-md-4 col-sm-4">
        <div class="parallex-button"> <a href="<?=$site_url?>/enquiry.html" class="btn btn-lg btn-clean">Get a quote <i class="fa fa-angle-double-right "></i></a> </div>
        <!-- end parallex-button --> 
      </div>
      <!-- end col-md-4 --> 
      
    </div>
    <!-- end row --> 
  </div>
  <!-- end container --> 
</div>
<!-- =-=-=-=-=-=-= Call To Action End =-=-=-=-=-=-= --> 
<!-- =-=-=-=-=-=-= FOOTER =-=-=-=-=-=-= -->
<?php include("site-footer.php");?>

MMCT - 2023