MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.227.190.231
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/vermaborewell.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/vermaborewell.co.in/category.php
<?php include("site-header.php");?>
  <!-- Start main-content -->
  <div class="main-content"> 
    <!-- Section: inner-header -->
    <?php include("site-header-flash-inner.php");?>
    <?php include("send-enquiry-code-product.php");?>
    <!-- Section: Services -->
    <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);
}	  
?>
    <section>
      <div class="container">
        <div class="row">
          <div class="col-md-7">
            <h3 class="mt-0">
              <?=$category_name?>
            </h3>
            <?=$category_description?>
          </div>
          <div class="col-md-5">
            <div class="thumb"> <a data-lightbox="image" href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>"> <img class="img-responsive" style="width:100%; height:290px;" 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>
            <?php /*?><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-md-3" style="margin-top:20px;">
            <a data-lightbox="image" href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>">
            <img class="img-fullwidth" height="90" src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" >
            </a>
            </div>
            
<?php }?> 
<?php }?>             
            
            
            
            </div><?php */?>
            <?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">
              <div class="col-md-12">
                <div class="practice-area-carousel">
                  <?php
while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){
@extract($CAT_IMAGE);
?>
                  <div class="item text-center">
                    <div> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="image" ><img class="img-responsive" style="width:100%; height:80px;" src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" > </a> </div>
                  </div>
                  <?php }?>
                </div>
              </div>
            </div>
            <?php }?>
          </div>
        </div>
      </div>
    </section>
    <section id="sub-cat-section">
      <div class="section-title icon-bg text-center">
        <div class="row">
          <div class="col-md-12 cat-product-title">
            <h2 class="mt-0 ">
              <?=$category_name?>
              <?php if($compDATA['admin_product_option']=='Yes'){ ?>
              Products
              <? }else{ ?>
              Services
              <? } ?>
            </h2>
          </div>
        </div>
      </div>
      <div class="cat-product-section">
        <div class="container">
          <div class="section-content">
            <div class="row">
              <div class="col-sm-12">
                <div class="attorney-carousel maxwidth400 mt-10">
                  <?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="box-hover-effect effect2 bg-lighter p-10 ">
                    <div class="thumb "> <img class="img-responsive" style="width:100%; height:130px;" 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 white">
                        <div class="display-table">
                          <div class="display-table-cell">
                            <div class="overlay-details text-center">
                              <h4 class="b mt-0"><a href="<?=$site_url?>/<?=$category_url?>.html">
                                <?=$category_name?>
                                </a></h4>
                              <p class="pl-20 pr-20">
                                <?=substr(strip_tags($category_description),0,60)?>
                              </p>
                              <a href="<?=$site_url?>/<?=$category_url?>.html" class="btn btn-flat btn-dark btn-theme-colored btn-xs" >Read more</a> </div>
                          </div>
                        </div>
                      </div>
                      <div class="details">
                        <h5 class="b mt-5"><a href="<?=$site_url?>/<?=$category_url?>.html">
                          <?=$category_name?>
                          </a></h5>
                        <div class="mb-5">
                          <?=substr(strip_tags($category_description),0,60)?>
                        </div>
                        <a href="<?=$site_url?>/<?=$category_url?>.html" class="btn btn-dark btn-theme-colored btn-xs mt-5 " >Read more</a> </div>
                    </div>
                  </div>
                  <?php }?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Section: Practices Area -->
    <section class="divider parallax ">
      <div class="col-md-12 text-center padd-b-20 <?=$clrerr?>" >
        <?=display_sess_msg()?>
      </div>
      <div class="container">
        <div class="row pt-30">
          <div class="col-md-12">
            <h3 class="mt-0 mb-30 ">Enquiry For
              <?=$category_name?>
            </h3>
            <!-- Contact Form -->
            <form id="contact_form" name="contact_form" class="form-transparent" action="" method="post" onSubmit="return EnqValidation();">
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_name">Name <small>*</small></label>
                    <input id="enquiry_nam" name="enquiry_nam" class="form-control" type="text" placeholder="Enter Name" >
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_email">Email <small>*</small></label>
                    <input id="enquiry_emai" name="enquiry_emai" class="form-control  " type="email" placeholder="Enter Email">
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_name">Subject <small>*</small></label>
                    <input id="enquiry_sub" name="enquiry_sub" class="form-control " type="text" placeholder="Enter Subject">
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_phone">Phone</label>
                    <input id="enquiry_mobil" name="enquiry_mobil" class="form-control" type="text" placeholder="Enter Phone">
                  </div>
                </div>
              </div>
              <div class="form-group">
                <label for="form_name">Message</label>
                <textarea id="enquiry_detai" name="enquiry_detai" class="form-control " rows="5" placeholder="Enter Message"></textarea>
              </div>
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_phone">Security Code</label>
                    <br>
                    <input id="security_cod" name="captcha" class="form-control pull-left" style="width:70%;"  type="text" placeholder="Enter Security Code">
                    <img src="amitabhcaptcha.php" class="pull-left"   width="80" height="44" alt="Captcha" id="cap" /> </div>
                </div>
              </div>
              <div class="form-group" style="margin-top:20px;">
                <input id="form_botcheck" name="form_botcheck" class="form-control" type="hidden" value="" />
                <button type="submit" name="EnqSubmit" class="btn btn-dark btn-theme-colored btn-flat mr-5" data-loading-text="Please wait...">Send your enquiry</button>
                <button type="reset" class="btn btn-default btn-flat btn-theme-colored">Reset</button>
              </div>
            </form>
            <!-- Contact Form Validation--> 
            
          </div>
        </div>
      </div>
    </section>
    
    <!-- Section: Services -->
    <? }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>
      <div class="container">
        <div class="row">
          <div class="col-md-7">
            <h3 class="mt-0">
              <?=$category_name?>
            </h3>
            <?=$category_description?>
          </div>
          <div class="col-md-5">
            <div class="thumb"> <a data-lightbox="image" href="<?=$site_url?>/uploaded_files/<?=$category_image_name?>"> <img class="img-responsive" style="width:100%; height:290px;" 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="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-md-3" style="margin-top:20px;"> <a data-lightbox="image" href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>"> <img class="img-responsive" style="width:100%; height:80px;" src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_image_title?>" title="<?=$category_image_title?>" > </a> </div>
              <?php }?>
              <?php }?>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="divider parallax ">
      <div class="col-md-12 text-center padd-b-20 <?=$clrerr?>" >
        <?=display_sess_msg()?>
      </div>
      <div class="container">
        <div class="row pt-30">
          <div class="col-md-12">
            <h3 class="mt-0 mb-30 ">Enquiry For
              <?=$category_name?>
            </h3>
            <!-- Contact Form -->
            <form id="contact_form" name="contact_form" class="form-transparent" action="" method="post" onSubmit="return EnqValidation();">
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_name">Name <small>*</small></label>
                    <input id="enquiry_nam" name="enquiry_nam" class="form-control" type="text" placeholder="Enter Name" >
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_email">Email <small>*</small></label>
                    <input id="enquiry_emai" name="enquiry_emai" class="form-control  " type="email" placeholder="Enter Email">
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_name">Subject <small>*</small></label>
                    <input id="enquiry_sub" name="enquiry_sub" class="form-control " type="text" placeholder="Enter Subject">
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_phone">Phone</label>
                    <input id="enquiry_mobil" name="enquiry_mobil" class="form-control" type="text" placeholder="Enter Phone">
                  </div>
                </div>
              </div>
              <div class="form-group">
                <label for="form_name">Message</label>
                <textarea id="enquiry_detai" name="enquiry_detai" class="form-control " rows="5" placeholder="Enter Message"></textarea>
              </div>
              <div class="row">
                <div class="col-sm-6">
                  <div class="form-group">
                    <label for="form_phone">Security Code</label>
                    <br>
                    <input id="security_cod" name="captcha" class="form-control pull-left" style="width:70%;"  type="text" placeholder="Enter Security Code">
                    <img src="amitabhcaptcha.php" class="pull-left"   width="80" height="44" alt="Captcha" id="cap" /> </div>
                </div>
              </div>
              <div class="form-group" style="margin-top:20px;">
                <input id="form_botcheck" name="form_botcheck" class="form-control" type="hidden" value="" />
                <button type="submit" name="EnqSubmit" class="btn btn-dark btn-theme-colored btn-flat mr-5" data-loading-text="Please wait...">Send your enquiry</button>
                <button type="reset" class="btn btn-default btn-flat btn-theme-colored">Reset</button>
              </div>
            </form>
            <!-- Contact Form Validation--> 
            
          </div>
        </div>
      </div>
    </section>
    <?php }?>
  </div>
  <!-- end main-content -->
  
  <?php include("site-footer.php");?>

MMCT - 2023