<?php
$email=$_SESSION['user_email'];
    include('database.php');
    $query="SELECT name FROM customers WHERE email='$email'";
    $rec=db::getRecord($query);
?> 
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <link rel="apple-touch-icon" sizes="76x76" href="../../assets/img/apple-icon.png">
  <link rel="icon" type="image/png" href="https://cdn1.centralapp.com/api/v1/media/logo-medium/place-4486-ac829f63-6c73-4c87-aa47-9405fc05eafb.jpeg">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>
    My Orders
  </title>
  <meta http-equiv="refresh" content="40; url="<?php echo $_SERVER['PHP_SELF']; ?>">
  <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  <!-- Schema.org markup for Google+ -->
  <meta itemprop="description" content="Material Dashboard PRO is a Premium Material Bootstrap 4 Admin with a fresh, new design inspired by Google's Material Design.">
  <meta name="twitter:creator" content="@creativetim">
  <meta property="og:site_name" content="Creative Tim" />
  <!--     Fonts and icons     -->
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
  <!-- CSS Files -->
  <link href="../assets/css/material-dashboard.minf066.css?v=2.1.0" rel="stylesheet" />
  <!-- CSS Just for demo purpose, don't include it in your project -->
  <link href="../assets/demo/demo.css" rel="stylesheet" />
</head>
<body class="">
 <!-- Google Tag Manager (noscript) -->
  <noscript>
    <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NKDMSK6" height="0" width="0" style="display:none;visibility:hidden"></iframe>
  </noscript>
  <!-- End Google Tag Manager (noscript) -->
  <div class="wrapper ">
    <div class="sidebar" data-color="orange" data-background-color="black" data-image="images/dish.jpg">
      <!--
        Tip 1: You can change the color of the sidebar using: data-color="purple | azure | green | orange | danger"

        Tip 2: you can also add an image using data-image tag
    -->
      <div class="logo">
          <a  class="simple-text logo-mini">
          <img src="https://cdn1.centralapp.com/api/v1/media/logo-medium/place-4486-ac829f63-6c73-4c87-aa47-9405fc05eafb.jpeg" style="height:30px;width:30px;border-radius:50%" />
        </a>
        <a class="simple-text logo-normal">
          Shezan
        </a>
      </div>
      <div class="sidebar-wrapper">
        <div class="user">
       <div class="photo">
            <img src="../images/user_image.png" />
          </div>
          <div class="user-info">
            <a data-toggle="collapse" href="#collapseExample" class="username">
              <span>
                <?php  echo $rec['name']; ?>
                <b class="caret"></b>
              </span>
            </a>
            <div class="collapse" id="collapseExample">
              <ul class="nav">
                <li class="nav-item">
                  <a class="nav-link" href="user.php">
                    <span class="sidebar-mini"> MP </span>
                    <span class="sidebar-normal"> My Profile </span>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="edit_p.php">
                    <span class="sidebar-mini"> EP </span>
                    <span class="sidebar-normal"> Edit Profile </span>
                  </a>
                </li>
               
              </ul>
            </div>
          </div>
        </div>
        <ul class="nav">
          <li class="nav-item  ">
            <a class="nav-link" href="index.php">
              <i class="material-icons">dashboard</i>
              <p> Home </p>
            </a>
          </li>
            <li class="nav-item  ">
            <a class="nav-link" href="active_order.php">
              <i class="material-icons">table</i>
              <p> My Orders </p>
            </a>
            </li>
            <!--<li class="nav-item  ">-->
            <!--<a class="nav-link" href="reservation.php">-->
            <!--  <i class="material-icons">Reserve</i>-->
            <!--  <p> Reservation </p>-->
            <!--</a>-->
            <!--</li>-->
            <li class="nav-item ">
            <a class="nav-link" href="../index.php">
              <i class="material-icons">website</i>
              <p>Go to Site</p>
            </a>
          </li>
             <li class="nav-item ">
            <a class="nav-link" href="logout.php">
              <i class="material-icons">logout</i>
              <p>Logout</p>
            </a>
          </li>
            
            
              
        </ul>
        
      </div>
      
    </div>
    <div class="main-panel">