MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.191.103.144
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/chandeshwarcontractors.com/../arelectricalcontrol.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/chandeshwarcontractors.com/../arelectricalcontrol.com/product-category.php
<?php
    include_once('admin/config.php');
    $slug_name = $_GET['slug'];
    if(isset($_SERVER['PATH_INFO'])){
    $slug_name=$_SERVER['PATH_INFO'];
    $querydt="SELECT * FROM `tbl_main_cat` WHERE `slug`='$slug_name'";
    $rundt = mysqli_query($db,$querydt) or die("Query Not run");
    $datadt = mysqli_fetch_assoc($rundt);
 }
?>
<!doctype html>
<html class="no-js" lang="zxx">

<head>
    <?php include "top-links.php";?>
    
    <title>
    <?php
    if (isset($datadt["meta_title"]) && !empty($datadt["meta_title"])) {
        echo $datadt["meta_title"];
    } else { 
        echo $datadt["cat_name"];
    }
    ?>
   </title>
   <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
</head>

<body class="home-electrician">
    
    <?php include "header.php";?>
    
    <div class="breadcumb-wrapper" data-bg-src="<?php echo $wspath?>assets/img/bg/breadcumb-bg.jpg">
        <div class="container">
            <div class="breadcumb-content">
                <h1 class="breadcumb-title"><?php echo $datadt["cat_name"];?></h1>
                <ul class="breadcumb-menu">
                    <li><a href="<?php echo $wspath?>">Home</a></li>
                    <li><?php echo $datadt["cat_name"];?></li>
                </ul>
            </div>
        </div>
    </div>
    
   <section class="overflow-hidden space">
        <div class="shape-mockup spin" data-top="5%" data-left="0%"><img src="<?php echo $wspath?>assets/img/shape/lines_1.png" alt="<?= $site_name?>" title="<?= $site_name?>">
        </div>
        <div class="shape-mockup spin" data-bottom="5%" data-right="4%"><img src="<?php echo $wspath?>assets/img/shape/dots_2.svg" alt="<?= $site_name?>" title="<?= $site_name?>"></div>
        <div class="container">
            <div class="row justify-content-between align-items-center">
                <div class="col-md">
                    <div class="title-area text-center text-md-start"><span class="sub-title">
                        <h2 class="sec-title"><?php echo $datadt["cat_name"];?></h2>
                    </div>
                </div>
                <!--<div class="col-md-auto">-->
                <!--    <div class="sec-btn mt-n3 mt-md-0"><a href="#" class="th-btn style4">View All Category<i class="far fa-arrow-right ms-2"></i></a></div>-->
                <!--</div>-->
            </div>

            <div class="row">
                <?php
                    $subcat=$datadt['c_id'];
                    $sqlprod = "SELECT * FROM `tbl_services` WHERE m_id=$subcat AND `tour_status`='Active' ORDER BY tour_order ASC";
                    $runprod = mysqli_query($db,$sqlprod) or die("Query Not run");
                    while($dataprod = mysqli_fetch_assoc($runprod)){
                ?>  
                <div class="col-lg-4">
                    <div class="project-card">
                        <div class="box-img">
                            <img src="<?=$wspath?>admin/images/property-image/<?=$dataprod['image'];?>" alt="<?=$dataprod['name'];?>" title="<?=$dataprod['name'];?>">
                        </div>
                        <div class="box-content">
                            <h5 class="box-title"><a href="<?php echo $wspath ?>product<?php echo $dataprod['slug_url'];?>.html"><?=$dataprod['name'];?></a></h5>
                            <a href="<?php echo $wspath ?>product<?php echo $dataprod['slug_url'];?>.html" class="icon-btn"><i class="far fa-arrow-right"></i></a>
                        </div>
                    </div>
                </div>
                <?php } ?>
            </div>
            
            <div class="slider-pagination"></div>
           
        </div>
    </section>
    
    <?php include "footer.php";?>  
    
</body>

</html>

MMCT - 2023