ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/thecomponents.in/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/thecomponents.in/header2.php

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


session_start();

$category_id = "";

?>

<!DOCTYPE html>
<html lang="en">
  <style>
    .header-bottom {
      color: #fff !important;
      background: #222 !important;
    }

    .menu .active>a:not(.menu-title),
    .menu li:hover>a:not(.menu-title) {
      color: #05b895 !important;
    }

    a:hover {
      color: #05b895 !important;
    }
    
       .header-search.hs-simple input.form-control {
           border-color: #bdbdbd;
       }
       
       .product-media img:first-child {
            position: relative;
            opacity: 1;
            height: 56% !important;
        }
   
  </style>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <title>Caliber eCommerce </title>
    <link rel="icon" type="image/png" href="images/icons/favicon.png">
    <script>
      WebFontConfig = {
        google: {
          families: ['Poppins:400,500,600,700']
        }
      };
      (function(d) {
        var wf = d.createElement('script'),
          s = d.scripts[0];
        wf.src = 'js/webfont.js';
        wf.async = true;
        s.parentNode.insertBefore(wf, s);
      })(document);
    </script>
    <link rel="stylesheet" type="text/css" href="vendor/fontawesome-free/css/all.min.css">
    <link rel="stylesheet" type="text/css" href="vendor/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="vendor/magnific-popup/magnific-popup.min.css">
    <link rel="stylesheet" type="text/css" href="vendor/sticky-icon/stickyicon.css">
    <link rel="stylesheet" type="text/css" href="css/style.min.css">
  </head>
  <body>
      
      <?php
        $user_id = "";
        if($_SESSION['caliber']){
            $user_id = $_SESSION['caliber']['id'];
        }
        $price_sql=$pdo->prepare("SELECT cart.id,cart.user_id,cart.product_id,products.name  as product_name,
        users.name,SUM(product_variant.price) AS total_price,products.image,product_variant.stock,product_variant.price
        FROM cart INNER JOIN products ON cart.product_id=products.id INNER JOIN users ON users.id=cart.user_id INNER JOIN product_variant ON 
        product_variant.product_id = products.id WHERE cart.user_id=?");
        
        $price_sql->execute(array($_SESSION['caliber']['id']));
        $price_result = $price_sql->fetchAll(PDO::FETCH_ASSOC);
        $total_card_resut =$price_sql->rowCount();
        
    ?>
  
      
      
    <div class="page-wrapper">
      <header class="header">
        <div class="header-top">
          <div class="container">
            <div class="header-left">
              <p class="welcome-msg pb-2">Caliber eCommerce</p>
            </div>
            <div class="header-right">
              <div class="dropdown dropdown-expanded">
                <a href="#dropdown">Links</a>
                 <ul class="dropdown-box">
                    <?php if($_SESSION['caliber']){ ?>
                    <li>
                        <a  href="logout.php">logout</a>
                    </li>
                    <?php } else { ?>
                    <li>
                        <a  href="login.php">login</a>
                    </li>
                   
                    <li>
                      <a href="register.php">Register</a>
                    </li>
                     <?php } ?>
                 </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="header-middle sticky-header fix-top sticky-content">
            <?php include 'header4.php' ?>
        </div>
        
        <?php 
    $query = $pdo->prepare("SELECT category.*,subcategory.name FROM category LEFT JOIN subcategory ON subcategory.category_id=category.id");
    $query->execute();
    $res_category = $query->fetchAll(PDO::FETCH_ASSOC);
?>
        
          <div class="header-bottom has-dropdown pb-0">
          <div class="container d-flex align-items-center">
            <div class="dropdown category-dropdown has-border fixed">
              <a href="#" class="text-white font-weight-semi-bold category-toggle">
                <i class="d-icon-bars2"></i>
                <span>Shop By Categories</span>
              </a>
              <div class="dropdown-box">
                <ul class="menu vertical-menu category-menu">
                  <li>
                    <a href="shop.php" class="menu-title">Browse Our Categories</a>
                  </li>
                  
                  <?php 
                    foreach ($res_category as $row_categories){
                  ?>
                  
                  <li class="submenu">
                    <a href="shop.php">
                      <i class="fas fa-robot"></i><?=$row_categories['name']?></a>
                    <ul>
                      <li>
                        <a href="shop.php"><?=$row_categories['name']?></a>
                      </li>
                    </ul>
                  </li>
                  
                  <?php } ?>
                </ul>
              </div>
            </div>
            <nav class="main-nav ml-4">
              <ul class="menu">
                <li class="active">
                  <a href="index.php">Home</a>
                </li>
                <li>
                  <a href="shop.php">Categories</a>
                </li>
                <li>
                  <a href="shop.php">Products</a>
                </li>
                <!--<li>-->
                <!--  <a href="#">Pages</a>-->
                  
                <!--</li>-->
                <!--<li>-->
                <!--  <a href="#">Elements</a>-->
                  
                <!--</li>-->
              </ul>
            </nav>
          </div>
        </div>
      </header>

Zerion Mini Shell 1.0