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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/adisgauges.com/category.php
<?php include("site-header.php");?>
<link rel='stylesheet prefetch' href="<?=$site_url?>/css/ybgpzy.css">
  <div class="page-content">
    <div class="dlab-bnr-inr overlay-black-middle" style="background:url(<?=$site_url?>/images/inner-banner.jpg) no-repeat center; background-size:cover;">
      <div class="container">
        <div class="dlab-bnr-inr-entry">
          <h1 class="text-white">
            <?=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'")?>
          </h1>
          <ul class="list-inline">
            <li><a href="<?=$site_url?>/index.html">Home</a></li>
            <li>|</li>
            <li>
              <?=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'")?>
            </li>
          </ul>
        </div>
      </div>
    </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($prd_name=="durometers")
{?>

 <div class="section-full mp-top res-pd">
      <div class="container">
        <div class="section-content">
          <div class="row">
            <div class="section-full bg-img-fix content-inner">
              <div class="container">
				  
				  <div class="col-md-12" style="background-color:#fff; box-shadow:1px 1px 10px #ccc; padding:10px; margin:10px 0px 30px 0px;">
					  <div class="col-md-10">
					  <h1>Hardness Tester Selection Chart</</h1>
						  </div>
						   <div class="col-md-2">
							   <a href="images/Hardness Tester Selection Chart.pdf" target="_blank"><img src="images/pdf-download-button.png" style="width:100%"></a>
						  </div>
				  </div>
					  
					  <div class="col-md-12" style="background-color:#fff; box-shadow:1px 1px 10px #ccc; padding:10px; margin:10px 0px 30px 0px;">
					  <div class="col-md-10">
					  <h1>Duromerter - Instruction Manual</</h1>
						  </div>
						   <div class="col-md-2">
							   <a href="images/DUROMETER  - INSTRUCTION MANUAL.pdf" target="_blank"><img src="images/pdf-download-button.png" style="width:100%"></a>
						  </div>
				  </div>
						  <div class="col-md-12" style="background-color:#fff; box-shadow:1px 1px 10px #ccc; padding:10px; margin:10px 0px 30px 0px;">
					  <div class="col-md-10">
					  <h1>Pros about ADIS Durometer</</h1>
						  </div>
						   <div class="col-md-2">
							   <a href="images/Why to use Adis Durometer over other Durometer available in market.pdf" target="_blank"><img src="images/pdf-download-button.png" style="width:100%"></a>
						  </div>
				  </div>
						
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
     <div class="section-full content-inner bg-clrd">
      <div class="container">
        <div class="section-head text-center">
          <h2 class="text-uppercase">
            <?=db_scalar("select category_name from tbl_category where 1 and category_id='$catID'")?>
            <?php if($compDATA['admin_product_option']=='Yes'){ ?>
            Products
            <? }else{ ?>
            Services
            <? } ?>
          </h2>
          <div class="dlab-separator-outer ">
            <div class="dlab-separator bg-secondry style-skew"></div>
          </div>
        </div>
        <div class="section-content ">
          <div class="row equal-wraper">
            <?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=mysql_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>
            <div class="col-md-4 col-sm-4 equal-col m-b10 mrg-btm">
              <div class="blog-post latest-blog-1 date-style-3 skew-date">
                <div class="dlab-post-media dlab-img-effect zoom-slow serv"> <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="dlab-post-info p-t20">
                  <div class="dlab-post-title ">
                    <h3 class="post-title">
                      <?=$SUBCAT_DATA['category_name']?>
                    </h3>
                  </div>
                  <?php if($SUBCAT_DATA['category_price']>0){ ?>
                   <h4 class="post-title" style="color:#87ceea;">
                      <i class="fa fa-usd"></i> <?=$SUBCAT_DATA['category_price']?>
                    </h4>
                    <?}?>
                  <div class="dlab-post-text">
                    <?php $description=strip_tags($SUBCAT_DATA['category_description']);?>
                    <p>
                      <?=substr($description,0,65);?>
                    </p>
                    <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="rd-mr1">Read More</a> </div>
                </div>
              </div>
            </div>
            <? } ?>
          </div>
        </div>
      </div>
    </div>
<?}else{

if($countSubCat > 0){ ?>
    <?php 
$sql_cat=db_query("select * from tbl_category where 1 and category_id='$catID'");
if(mysql_num_rows($sql_cat) > 0){
$CAT_DATA=mysql_fetch_array($sql_cat);
@extract($CAT_DATA);
}	  
?>






    <div class="section-full mp-top res-pd">
      <div class="container">
        <div class="section-content">
          <div class="row">
            <div class="section-full bg-img-fix content-inner">
              <div class="container">
                <div class="col-md-5 col-sm-12 col-xs-12 col-lg-5 wow fadeInLeft mp-resd">
                
                
                
                
                <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?>" data-fancybox="images">
      <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(mysql_num_rows($sql_catimage)>0){
?>
      <div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">
      <?php
while($CAT_IMAGE=mysql_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']?>" data-fancybox="images" title="<?=$category_name?>">
      <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_name?>" title="<?=$category_name?>"/>
  </a>
				  </div>
                   <? } ?>
    
      </div>
       <? } ?>
      </div>
                <div class="col-md-7 col-xs-12">
                  <h2 class="text-uppercase">
                    <?=$category_name?>
                  </h2>
                  <div class="dlab-separator-outer ">
                    <div class="dlab-separator bg-secondry style-skew"></div>
                  </div>
                  <div class="clear"></div>
                  <div>
                    <?=$category_description?>
                  </div>
                  <a href="<?=$site_url?>/enquiry.html" class="rd-mr">Enquiry Now!</a> </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="section-full content-inner bg-clrd">
      <div class="container">
        <div class="section-head text-center">
          <h2 class="text-uppercase">
            <?=$category_name?>
            <?php if($compDATA['admin_product_option']=='Yes'){ ?>
            Products
            <? }else{ ?>
            Services
            <? } ?>
          </h2>
          <div class="dlab-separator-outer ">
            <div class="dlab-separator bg-secondry style-skew"></div>
          </div>
        </div>
        <div class="section-content ">
          <div class="row equal-wraper">
            <?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=mysql_fetch_array($sql_subcat)){
@extract($SUBCAT_DATA);
?>
            <div class="col-md-4 col-sm-4 equal-col m-b10 mrg-btm">
              <div class="blog-post latest-blog-1 date-style-3 skew-date">
                <div class="dlab-post-media dlab-img-effect zoom-slow serv"> <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="dlab-post-info p-t20">
                  <div class="dlab-post-title ">
                    <h3 class="post-title">
                      <?=$SUBCAT_DATA['category_name']?>
                    </h3>
                  </div>
                  <div class="dlab-post-text">
                    <?php $description=strip_tags($SUBCAT_DATA['category_description']);?>
                    <p>
                      <?=substr($description,0,65);?>
                    </p>
                    <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="rd-mr1">Read More</a> </div>
                </div>
              </div>
            </div>
            <? } ?>
          </div>
        </div>
      </div>
    </div>
    <? }else{ ?>
    <?php
if(!empty($catID)){
$sql_final=db_query("select * from tbl_category where 1 and category_id='$catID'");
$FINAL_DATA=mysql_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="section-full mp-top res-pd">
      <div class="container">
        <div class="section-content">
          <div class="row">
            <div class="section-full bg-img-fix content-inner">
              <div class="container">
                <div class="col-md-5 col-xs-12">
                  
                  
                  <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?>" data-fancybox="images">
      <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(mysql_num_rows($sql_catimage)>0){
?>
      <div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">
      <?php
while($CAT_IMAGE=mysql_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']?>" data-fancybox="images" title="<?=$category_name?>">
      <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$category_name?>" title="<?=$category_name?>"/>
  </a>
				  </div>
                   <? } ?>
    
      </div>
       <? } ?>
                </div>
                <div class="col-md-7 col-xs-12">
                  <h2 class="text-uppercase">
                    <?=$category_name?>
                  </h2>
                  <?php if($category_selling_type!=""){ ?>
                  <p style="font-size:17px;"><b>Product Selling Type: <?=$category_selling_type?></b></p>
                  <?}?>
                  <?php if($category_price>0){ ?>
                   <h2 style="color:#87ceea;" class="text-uppercase">
                    <i class="fa fa-usd"></i> <?=$category_price?>
                  </h2>
                  <?}?>
                  
                  <?php if($category_price>0  && $category_qnty>0){ ?>
<b>Quantity:</b> <input type="number" value="1" name="qty" id="qty" style="width:60px;">
                   <h2> 

                   <button class="btn btn-success" onclick="add_to_cart_ajax(<?=$category_id?>);">Add to Cart</button></h2>
                 <?}else{?>
                 <h2> <button class="btn btn-danger">Out of Stock</button></h2>
                 <?}?>
                 
                  <div class="dlab-separator-outer ">
                    <div class="dlab-separator bg-secondry style-skew"></div>
                  </div>
                  <div class="clear"></div>
                  <div><?=$category_description?></div>
                  <a href="<?=$site_url?>/enquiry.html" class="rd-mr">Enquiry Now!</a> </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <? } ?>
    
    <?}?>
    <?php include("site-footer.php");?>
  </div>
</div>


<script>
         function add_to_cart_ajax(pro_cart_id)
    {
       
var qty=$("#qty").val();

 if(qty=="" || qty<1)
{
    swal("Please enter quantity !", "", "error");
}else  {
    


/*swal(""+pro_cart_id+"");*/
        
           $.ajax({
            url:"<?=$site_url?>/add_to_cart.php",
            type:"POST",
            data:{pro_cart_id:pro_cart_id,  qty:qty},
            success:function(data){
                 if(data=="quantity error")
                {
                    swal("Quantity not available !", "", "error");
                    
                }else if(data=="Item added in your cart.")
                {
 //         swal("Added !", "Item added in your cart", "success");
swal({title: "Added", text: "Item added in your cart", showConfirmButton: true, allowEscapeKey : false, allowOutsideClick: false, type: "success"},
   function(){ 
       location.reload();
   }
);
                }else{
                     swal("Item already added in your cart!", "", "error");
                     
                }

            }
        });
        
}
        
    }
</script>
<script src="<?=$site_url?>/js/jquery.min.js"></script> 
<script src="<?=$site_url?>/js/bootstrap.min.js"></script> 
<script src="<?=$site_url?>/js/bootstrap-select.min.js"></script> 
<script src="<?=$site_url?>/js/jquery.bootstrap-touchspin.js"></script> 
<script src="<?=$site_url?>/js/magnific-popup.js"></script> 
<script src="<?=$site_url?>/js/waypoints-min.js"></script> 
<script src="<?=$site_url?>/js/imagesloaded.js"></script> 
<script src="<?=$site_url?>/js/masonry-3.1.4.js"></script> 
<script src="<?=$site_url?>/js/masonry.filter.js"></script> 
<script src="<?=$site_url?>/js/owl.carousel.js"></script> 
<script src="<?=$site_url?>/js/custom.js"></script> 
<script src="<?=$site_url?>/js/dz.carousel.js"></script> 
<script src="<?=$site_url?>/js/switcher.min.js"></script>
<script src="<?=$site_url?>/js/js-gallery/index.js"></script>
<script src="<?=$site_url?>/js/js-gallery/ybgpzy.js"></script>
</body>
</html>

MMCT - 2023