
<?php ob_start(); ?>
<?php
 include('../config/constants.php');
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE-edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shopping Website</title>
    <link rel="stylesheet" type="text/css" href="css/style.css"/>
    <link rel="stylesheet" type="text/css" href="css/pstyle.css"/>
    <link rel="stylesheet" type="text/css" href="css/lightslider.css"/>
    <script src="js/jQuery.js"></script>
    <script src="js/lightslider.js"></script>
    <link rel="shortcut icon" href="images/fav-icon.png"/>
  </head>

  <body>
    <?php 


    if (isset($_POST['submit'])) {
            // code...
         echo   $id = $_POST['id'];
           echo $image_name = $_POST['image_name'];
         echo   $title = $_POST['title'];
         echo   $price = $_POST['price'];
            $description = $_POST['description'];
            $featured = $_POST['featured'];
            $active = $_POST['active'];

          
}
          if (isset($_SESSION['userid'])) {
            // code...
            $userid = $_SESSION['userid'];
          }
        ?> 
        
      
    <!-- navigation -->
    <nav>
      <!--social-link-and-phone-number  -->
      
      <!-- menu bar -->
      <div class="navigation">
        <!-- .logo -->
        <a href="javascript:void(0);" class="logo">
          <img src="images/logo.png">
        </a>
        <div class="toggle"></div>
        <!-- munu -->
        <ul class="menu">
            <li><a href="<?php echo SITEURL;?>shopping/index.php">Home</a></li>
          <li><a href="<?php echo SITEURL;?>shopping/general.php">General</a></li>
          <li><a href="<?php echo SITEURL;?>shopping/men.php">Men</a>
            <!-- label -->
            <!-- <label class="sale-label">Sale</label> -->
          </li>
          <li><a href="<?php echo SITEURL;?>shopping/women.php">Women</a></li>
          <li><a href="<?php echo SITEURL;?>shopping/kids.php">Kids</a></li>


        </ul>
         <!-- right-menu -->
         <div class="right-menu">
           <!-- search -->
           <a href="javascript:void(0);">
             <img class="search" src="images/search.svg" width="25px">
           </a>
           <!-- user -->
           <a href="javascript:void(0);">
             <img class="user"src="images/user.svg" width="25px">
           </a>
           <!-- cart-icon-->
           <a href="javascript:void(0);">

              <i class="fas fa-shopping-cart">
                 <img class="fa-shopping-cart"src="images/cart-plus.svg"width="25px">
                 <span class="num-cart-product">0</span>
              </i>
             <!--img class="cart"src="images/cart-plus.svg" width="20px" number of products in a cart -->

           </a>
         </div>

      </div>
    </nav>
    <!-- search bar -->
    <div class="search-bar">
      <!-- search-input -->
      <div class="search-input">
        <!-- input -->
        <input type="text" placeholder="Search For Product"/>
        <!-- cansel btn -->
        <a href="javascript:void(0);" class="search-cansel"> &times;</a>
      </div>
    </div>

  
    <form action="insertcart.php" method="post" enctype="multipart/form-data">
      <div class="order-message1">
        <div class="order-message-container2">
          <div class="order-message-image">
          <img src="p1.png" width="100px">
          </div>
        <div class="order-message-content">
          
          <span >Name: <?php echo $title?></span>
          
          
          
        </div>
        <div class="order-message-content">
          <span class='total'>Price: <?php echo $price?></span>
        </div>
        <div class="order-message-content">
          <span class="qty1">Qty: <input type="number" name="qty" min="1"  placeholder="0"></span>
        </div>
        <div class="order-message-content">
          <span class="size">Size:
            <select name="size">
              <option>Small</option>
              <option>Medium</option>
              <option>Large</option>
              <option>Extra Large</option>
            </select>
          </span>
        </div>
        <div class="description">
          <div class="description-details">
            <span >Description: <?php echo $description?></span>
          </div>
          
        </div>
        <div class="">
          <input class="btns" type="submit" name="add-cart1" value="Add-cart 🛒🛒">
          <input type="txt" name="prodid" value="<?php echo $id?>">
            <input type="txt" name="userid" value="<?php echo $userid ?>">
            
           
        </div>
        </div>
        
        
      </div>
    </form>
    
    <?php 

      


    ?>


   

    <?php include('full-slider.php'); ?>
    


    <?php include('banner.php'); ?>
    <?php include('footer.php'); ?>
    <?php include('js.php'); ?>

  </body>
</html>
