ok

Mini Shell

Direktori : /home2/selectio/public_html/ramali.in/
Upload File :
Current File : /home2/selectio/public_html/ramali.in/header1.php

<?php include"config/config.php";


 session_start();


$cart_count=0;
   if(isset($_SESSION['ramali_textiles'])){
       $statementp=$pdo->prepare("SELECT * FROM `cart` where user_id=? group by product_id");
        $statementp->execute(array($_SESSION['ramali_textiles']['id']));
        $cart_count=$statementp->rowCount();
   }
 
?>


<!DOCTYPE html>
<html lang="en">

<head>
   
    
    <meta name="theme-color" content="#ff4c3b" />
   <meta name="keywords" content="yes" />
   <meta name="description" content="black" />
   <meta name="description" content="multikart" />
   <meta name="author" content="images/logo/ramali_logo.png" />
   <meta name="msapplication-TileColor" content="#FFFFFF" />
   <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <title>Ramali Textiles</title>


    <!-- Favicon -->
    <link rel="icon" type="image/png" href="images/logo/ramali_logo.png">

    <!-- WebFont.js -->
    <script>
        WebFontConfig = {
            google: { families: ['Poppins:400,500,600,700'] }
        };
        (function (d) {
            var wf = d.createElement('script'), s = d.scripts[0];
            wf.src = 'assets/js/webfont.js';
            wf.async = true;
            s.parentNode.insertBefore(wf, s);
        })(document);
    </script>

    <link rel="preload" href="assets/vendor/fontawesome-free/webfonts/fa-regular-400.woff2" as="font" type="font/woff2"
        crossorigin="anonymous">
    <link rel="preload" href="assets/vendor/fontawesome-free/webfonts/fa-solid-900.woff2" as="font" type="font/woff2"
        crossorigin="anonymous">
    <link rel="preload" href="assets/vendor/fontawesome-free/webfonts/fa-brands-400.woff2" as="font" type="font/woff2"
            crossorigin="anonymous">
    <link rel="preload" href="assets/fonts/wolmart87d5.woff?png09e" as="font" type="font/woff" crossorigin="anonymous">

    <!-- Vendor CSS -->
    <link rel="stylesheet" type="text/css" href="assets/vendor/fontawesome-free/css/all.min.css">
    <link rel="stylesheet" type="text/css" href="assets/vendor/animate/animate.min.css">

    <!-- Plugin CSS -->
    <link rel="stylesheet" type="text/css" href="assets/vendor/magnific-popup/magnific-popup.min.css">
    <link rel="stylesheet" href="assets/vendor/swiper/swiper-bundle.min.css">
    <link rel="stylesheet" type="text/css" href="assets/vendor/photoswipe/photoswipe.min.css">
    <link rel="stylesheet" type="text/css" href="assets/vendor/photoswipe/default-skin/default-skin.min.css">
    <!-- Swiper's CSS -->
    <link rel="stylesheet" href="assets/vendor/swiper/swiper-bundle.min.css">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <!-- Default CSS -->
    <link rel="stylesheet" type="text/css" href="assets/css/style.min.css">
</head>

<body>
    
<style>
    .menu .has-submenu > a{
        color: aliceblue;
    }
    .menu .has-submenu > a:hover{
        color: red;
    }
    .minipopup-area{
        display: none;
    }
    .account .w-icon-account{
        color: #ec1f24;
        border: 1px solid rgb(236 31 36);
    }
    .account .w-icon-account{
        color: #ec1f24;
        border: 1px solid rgb(235 30 36);
    }
    .header-top .header-right a{
        color: antiquewhite;
        font-size: 14px;
    }
    .minipopup-area{
        display: none;
    }
    .cart-dropdown .cart-count{
        background: #fe7c00;
    }
</style>    
    
    <div class="page-wrapper">
        <!-- Start of Header -->
        <header class="header">
            <div class="header-top" style="background: #0088cc;height: 35px;">
                <div class="container">
                    <div class="header-left">
                       
                        <span class="divider d-lg-show"></span>
                        
                        <a href="#" class="d-lg-show" style="color: white;font-size: 13px;">Email : ramali@gmail.com</a>
                        
                        <span class="delimiter d-lg-show" style="padding: 6px;color: white;">/</span>
                        
                        <a href="tel: +91 9842759883" class="ml-0 d-lg-show login register" style="color: white;font-size: 13px;">Phone : +91 9842759883</a>
                    </div>
                    
                    
                    <div class="header-right">
                        <span class="divider d-lg-show"></span>
                        
                        <?php if(isset($_SESSION['ramali_textiles'])){  ?>
                        <a href="logout.php"><i class="bi bi-box-arrow-left"></i> Logout</a>
                        <?php } ?>
                        
                        <?php if(!isset($_SESSION['ramali_textiles'])){  ?> 
                        <a href="register.php" class="ml-0 d-lg-show login register" style="padding-left: 10px;"> <i class="bi bi-clipboard-check"></i> Register</a>
                        <?php } ?>
                        
                    </div>
                </div>
            </div>
            <!-- End of Header Top -->

            <div class="header-middle" style="margin-bottom: -4%;padding-top: 0%;">
                <div class="container">
                    <div class="header-left mr-md-4">
                        <a href="#" class="mobile-menu-toggle  w-icon-hamburger" aria-label="menu-toggle">
                        </a>
                        <a href="index.php" class="logo ml-lg-0">
                            <img src="images/logo/ramali_logo.png" alt="logo" width="144" height="45" />
                        </a>
                        <form method="get" action="#" class="header-search hs-expanded hs-round d-none d-md-flex input-wrapper">
                            <div class="select-box">
                                <select id="category" name="category" class="pb-0">
                                    <option value="">All Categories</option>
                                    <option value="4">Fashion</option>
                                    <option value="5">Furniture</option>
                                    <option value="6">Shoes</option>
                                    <option value="7">Sports</option>
                                    <option value="8">Games</option>
                                    <option value="9">Computers</option>
                                    <option value="10">Electronics</option>
                                    <option value="11">Kitchen</option>
                                    <option value="12">Clothing</option>
                                </select>
                            </div>
                            <input type="text" class="form-control" name="search" id="search"
                                placeholder="Search in..." required />
                            <button class="btn btn-search" type="submit"><i class="w-icon-search"></i>
                            </button>
                        </form>
                    </div>
                    <div class="header-right ml-4">
                       <div class="account align-items-center d-sm-show">
                                     <?php if(isset($_SESSION['ramali_textiles'])){  ?>  
                                <a class="login inline-type d-flex ls-normal" href="#">
                                     <i class="w-icon-account d-flex align-items-center justify-content-center br-50"></i>
                                     <span class="d-flex flex-column justify-content-center ml-3 d-xl-show"  style="color: #ec1f24;">
                                       <?= "Welcome <br>".$_SESSION['ramali_textiles']['name'];  ?>
                                </a>
                                <?php   }else{ ?> 
                                             <a class="login inline-type d-flex ls-normal d-lg-show login sign-in login_btn" href="assets/ajax/login.php">
                                     <i class="w-icon-account d-flex align-items-center justify-content-center br-50"></i>
                                     <span class="d-flex flex-column justify-content-center ml-3 d-xl-show"  style="color: #ec1f24;">
                                         Login
                                </a>
                                     <?php  } ?> 
                                </span>
                            
                        </div>
                        <a class="compare label-down link d-xs-show" href="my-account.php">
                            <i class="w-icon-user"></i>
                            <span class="compare-label d-lg-show">My Account</span>
                        </a>
                        <div class="dropdown cart-dropdown cart-offcanvas mr-0 mr-lg-2">
                            <div class="cart-overlay"></div>
                            <a href="cart-details.php" class="label-down link">
                                <i class="w-icon-cart">
                                    <span class="cart-count" id="cart_items_count" onclick="cart_count()"></span>
                                </i>
                                <span class="cart-label">Cart</span>
                            </a>
                            <div class="dropdown-box">
                                <div class="cart-header">
                                    <span>Shopping Cart</span>
                                    <a href="#" class="btn-close">Close<i class="w-icon-long-arrow-right"></i></a>
                                </div>

                                <div class="products">
                                    <div class="product product-cart">
                                        <div class="product-detail">
                                            <a href="#" class="product-name">Beige knitted
                                                elas<br>tic
                                                runner shoes</a>
                                            <div class="price-box">
                                                <span class="product-quantity">1</span>
                                                <span class="product-price">$25.68</span>
                                            </div>
                                        </div>
                                        <figure class="product-media">
                                            <a href="#">
                                                <img src="assets/images/cart/product-1.jpg" alt="product" height="84"
                                                    width="94" />
                                            </a>
                                        </figure>
                                        <button class="btn btn-link btn-close" aria-label="button">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>

                                    <div class="product product-cart">
                                        <div class="product-detail">
                                            <a href="#" class="product-name">Blue utility
                                                pina<br>fore
                                                denim dress</a>
                                            <div class="price-box">
                                                <span class="product-quantity">1</span>
                                                <span class="product-price">$32.99</span>
                                            </div>
                                        </div>
                                        <figure class="product-media">
                                            <a href="#">
                                                <img src="assets/images/cart/product-2.jpg" alt="product" width="84"
                                                    height="94" />
                                            </a>
                                        </figure>
                                        <button class="btn btn-link btn-close" aria-label="button">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                </div>

                                <div class="cart-total">
                                    <label>Subtotal:</label>
                                    <span class="price">$58.67</span>
                                </div>

                                <div class="cart-action">
                                    <a href="#" class="btn btn-dark btn-outline btn-rounded">View Cart</a>
                                    <a href="#" class="btn btn-primary  btn-rounded">Checkout</a>
                                </div>
                            </div>
                            <!-- End of Dropdown Box -->
                        </div>
                    </div>
                </div>
            </div>
            <!-- End of Header Middle -->

            <div class="header-bottom sticky-content fix-top sticky-header has-dropdown" style="background: #08c;">
                <div class="container-fluid">
                    <div class="inner-wrap">
                        <div class="header-left">
                            <div class="dropdown category-dropdown has-border" data-visible="true">
                                <a href="#" class="category-toggle" role="button" data-toggle="dropdown"
                                    aria-haspopup="true" aria-expanded="true" data-display="static"
                                    title="Browse Categories" style="background: #ec1f24;color: aliceblue;">
                                    <i class="w-icon-category"></i>
                                    <span>Browse Categories</span>
                                </a>

                                <div class="dropdown-box">
                                    <ul class="menu vertical-menu category-menu" style="box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;">
                                        
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-bullhorn"></i>Tops
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-list"></i>Chuditar
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-university"></i>Leggins
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-info-circle"></i>Duppatta
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-map-marker"></i>Night Shoot
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="bi bi-gear-wide"></i>Inner
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="bi bi-gift"></i>Nighty
                                            </a>
                                        </li>
                                        
                                        <li>
                                            <a href="#"
                                                class="font-weight-bold text-uppercase ls-25">
                                                View All Categories<i class="w-icon-angle-right"></i>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <nav class="main-nav">
                                <ul class="menu active-underline">
                                    
                                    <?php
                            			$statement = $pdo->prepare("SELECT * FROM category");
                            			$statement->execute();
                            			$category_name = $statement->fetchAll(PDO::FETCH_ASSOC);
                            			foreach ($category_name as $row) {
                                    ?>
                                    
                                    <li>
                                        <a href="category.php?category=<?=$row['id']?>"><?=$row['name']?></a>

                                        
                                         <ul>
                                             
                                             <?php
                                    			$statement = $pdo->prepare("SELECT * FROM `subcategory` WHERE category_id=".$row['id']."");
                                    			$statement->execute();
                                    			$sub_category_name = $statement->fetchAll(PDO::FETCH_ASSOC);
                                    			foreach ($sub_category_name as $row_sub) {
                                            ?>
                                            <li><a href="category.php?category=<?=$row['id']?>&sub_category=<?=$row_sub['id']?>"><?=$row_sub['name']?></a></li>
                                            <?php } ?>
                                        </ul>
                                        <!-- End of Megamenu -->
                                    </li>
                                    
                                    
                                    <?php } ?>
                                    
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </header>
        <!-- End of Header -->
        
        
<?php //include "assets-header-js.php"; ?>

Zerion Mini Shell 1.0