<?php
if (!session_start()) {
    session_start();
}
?>

<!DOCTYPE html>
<?php
//session_start();?>
<html>
<head>
<title>Profile</title>

<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
  


#nav-bar{
	//position:sticky;
	background:white;
	//height:80px;
	top:0;
	z-index:10;
}
.navbar-brand img{
	float:left;
    margin-top:10px;
    width:200px;
    height:60px;
	padding-left:40px;
}
.navbar-nav li{
	padding:0 5px;
}
.navbar-nav li a{
	float:right;
	text-align:left;
	padding:5px 20px!important;
	color:black!important;
	text-decoration:none;
    border:1px solid transparent;
    border-radius:6%;
    transition:0.6s ease;
}
#nav-bar ul li a:hover{
    
	background-color:#fff;
    color:#000!important;
}
#nav-bar ul li.active a{
	background-color:#fff;
	color:blue!important;
}

.navbar-toggle{
	border:none!important;
	background-color:#fff!important;
}

.nav-link{
	color:white;
	font-weight:600;
	font-size:16px;
}


.profile-Section{
	background-color:white;
	padding:4% 5%;
	
}


/*---------footer----------*/
.footer{
 background-color:#474747;
 color:white;
 width:100%;
 
}
.end{
  text-align:center;
  padding-bottom:10px;
}



.logo1{
width:250px;
height:100px;
padding-left:40px;
padding-top:20px;
}
.linkk{
color:white;
}
.linkk:hover{
color:yellow;
}
.linkUp{
 padding-right:40px;
 padding-top:30px;
 float:right;
 
}
  </style>

<link rel="stylesheet" type="text/css" href="../css/stylecart.css">
<link rel="stylesheet" type="text/css" href="../css/styleFooter.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">


</head>

<body>

<!---------navigation-------->

<section id="nav-bar">

<nav class="navbar navbar-expand-lg navbar-light">
  <a class="navbar-brand" href="#"><img src="../pic/logo1.png"></a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav ml-auto">

	   <li class="nav-item ">
        <a class="nav-link" href="index.php">BOOKS</a>
      </li>

	   <li class="nav-item">
        <a class="nav-link" href="AboutUs.html">ABOUT US</a>
      </li>
	   <li class="nav-item ">
        <a class="nav-link" href="Contact.html">CONTACT</a>
      </li>
       <li class="nav-item">
        <a class="nav-link" href="Privacy Policy.php">PRIVACY POLICY</a>
      </li>
       <li class="nav-item">
        <a class="nav-link" href="Refund Policy.php">REFUND POLICY</a>
      </li>
           <li class="nav-item  ">
        <a class="nav-link" href="TermsAndConditions.php">TERMS & CONDITIONS</a>
      </li>
	<li class="nav-item">
        <a class="nav-link" href="cart.php"><i class="fa fa-shopping-cart"></i>&nbsp;CART</a>
      </li>
 <li class="nav-item active ">
        <a class="nav-link" href="profile.php"><i class="fa fa-user"></i>&nbsp;Profile</a>
      </li>
    </ul>
  </div>
</nav>
.
</section>


<!-------------------------------------------------------------------------------->

<div class="profile-Section" >


<?php
if (isset($_SESSION['CustId']) == false) {?>
<div class="text-center">
   <h1 ><a href="login/login.php" style="color:red;"><?php echo 'Please Login'; ?></a></h1></div>

<?php
} else {
    try {
        $db = new PDO('mysql:host=localhost;dbname=gdhhsxmy_monsoonvibespublica;charset=utf8', 'gdhhsxmy_monsoonvibespublica', 'monsoonvibespublica');
    } catch (Exception $e) {
        echo 'Error has Occured';
    }
    ?>

<p>
  <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#multiCollapseExample2" aria-expanded="false" aria-controls="multiCollapseExample2">Book Orders</button>
  <a href="login/logout.php"><button type="button" class="btn btn-primary">Logout</button></a>
</p>

<!-------------------------------------------------------------------------------------------------->

<div class="collapse multi-collapse show" id="multiCollapseExample2">

<div class="card card-body">

    <h3 class="text-center"> Book Orders</h3>
    <br>

<table class="table table-hover">
<tr><td>Name</td><td>OrderId</td><td>Order Status</td> <td>Document</td></tr>
<?php
$customer = $_SESSION['CustId'];
    $stmt = $db->query("select * from  transcationbook where Cid ='$customer'");
    while ($row = $stmt->fetch()) {
        ?>
<tr>
<td><?php echo $row['name'] . ' ' ?></td>
<td><?php echo $row['OrderID'] . ' ' ?></td>
<td><?php echo $row['OrderStatus'] . ' ' ?></td>
<td>
	<form action="Invoices.php" method="post">
	<input type="hidden" name="preview_id" value="<?php echo $row['OrderID']; ?>" style="color:black"/>
	<button type="submit" value="submit" class="btn btn-success" name="preview_btn">View Detail</button></form></td>
</tr>
<?php }?>
</table>


</div>
</div>

<?php }?>

</div>
<!----------------------------------footer------------------------------------------->

<div class="footer">
<div> <img src="../pic/logo1.png" class="logo1"><a href="#nav-bar"><i class="fa fa-angle-double-up fa-4x linkUp linkk" ></i></a></div>

<div class="row" style="width:100%;padding-left:60px;padding-top:30px;padding-bottom:20px;">

<div class="col-md-4"><b><h5><i class="fa fa-paper-plane-o" ></i>&nbsp;Address  :</h5></b>
MONSOONVIBES PUBLICA PRIVATE LIMITED </br>
28/1205A, Neythukulangara Puthiyottil, Chevayur P.O</br>
Pin-673017, Kozhikkode, Kerala</br>
 
</div>
<div class="col-md-4"><h5><b><i class="fa fa-clock-o" ></i>&nbsp;Office Hours :</h5></b>

7.30Am to 7.00Pm (Mon To Sat)<br>
             7.30Am to 5.00Pm (Sunday)<br>
           
<br>
</div>
<div class="col-md-4"><b><h5><i class="fa fa-paper-plane-o" ></i>&nbsp;Contact Info :</h5></b>
Mobile: +91 9544599449<br>
Email: monsoonvibespublica@gmail.com<br>
<b>FOR ANY ASSISTANCE</b><br><i class="fa fa-phone"></i>&nbsp;9544599449
<br><br>
</div>
<!--<div class="col-md-4"><b><h5>Social Media</h5></b>
<a href="https://www.facebook.com/profile.php?id=100006130181720" target="_blank" class="linkk" style="font-size:18px;">
<i style="padding-bottom:8px;" class="fa fa-facebook-official linkk" >&nbsp; Facebook</i></a><br>
<a href="https://twitter.com/Abhishe66218733" target="_blank" class="linkk" style="font-size:18px;">
<i style="padding-bottom:8px;"class="fa fa-twitter linkk" >&nbsp; Twitter</i></a><br>
<a href="https://www.instagram.com/ab_sawant/" target="_blank" class="linkk" style="font-size:18px;">
<i style="padding-bottom:8px;"class="fa fa-instagram linkk"> &nbsp;Instagram</i></a><br>
<a href="https://www.youtube.com/user/beyounick" target="_blank" class="linkk" style="font-size:18px;">
<i style="padding-bottom:8px;"class="fa fa-youtube-play linkk"> &nbsp;YouTube</i></a>
</div>-->
</div>
<div class="end">
<hr color="white"><p>Copyright <i class="fa fa-at" aria-hidden="true"></i> 2023.Workmate Infotech Pvt Ltd All rights reserved</p></div>
</div>

<!------------------------------------>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</body>
</body>
</html>