<?php 
	ob_start();
	session_start();
	if(!isset($_SESSION['user'])) header("Location:index.php");
	require "lmhlibs/dbcon.php";
	require "lmhlibs/quantri.php";
   	if (isset($_GET["page"]))
		$page=$_GET["page"];
	else $page="";
	// include "khoi/header.php";
	$quantridata = new quantri;
 		
 ?>
 
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Trang quản trị hệ thống</title>
	<link rel="stylesheet" href="public/lib/bootstrap/css/bootstrap.min.css">
	<!-- <link rel="stylesheet" href="public/css/style.css"> -->
	<link rel="stylesheet" href="public/lib/owlcarousel/owl.carousel.min.css">
	<link rel="stylesheet" href="public/lib/fontawesome/css/all.css">
	
	<script src="ckeditor/ckeditor.js"></script>
	<script src="public/lib/jquery.min.js"></script>
	<script src="public/lib/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
  	<script src="//code.jquery.com/jquery-1.12.4.js"></script>
  	<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  	<script src="public/lib/owlcarousel/owl.carousel.min.js"></script> 
</head>
<body>
	<header class="row bg-dark shadow mb-2  ">
		<div class="col-md-8 text-light inline ">
			<div class="row ml-2">
			<img style="" src="public/images/header/logo50.png" >
			<a href="" class="text-light"><h5 class="p-2">TUEBA-TRANG QUẢN TRỊ</h5></a>
			</div>
		</div>
		<div class="col-md-4 text-light p-2 text-center ">	
                Xin chào <?php echo $_SESSION['HoTen']; ?>
                    <?php 
                        if(isset($_GET['action']) && $_GET['action']=='logout'){
                        	{
					 		// unset($_SESSION['user']);
						 	// unset($_SESSION['pass']);
						 	// unset($_SESSION['Hoten']);
						 	// unset($_SESSION['idGroup']);
                        		session_destroy();
                        		header("location:index.php");
						 	}	
                         } ?>
                <a href="?action=logout" class="text-danger ml-2"><i class="fas fa-sign-out-alt"></i>Thoát</a>
          
		</div>
		
	</header>