<?php
session_start();
if(!isset($_SESSION['user'])) {
	header("location: pages-login.php");
	exit;
}

include "dbconnect.php";

// $qry = mysql_query("SELECT * FROM `admin` WHERE `username` = '".$_SESSION['user']."'");
$qry = mysql_query("SELECT * FROM `staff_master` WHERE `LoginName` = '".$_SESSION['user']."'");
$row = mysql_fetch_array($qry);

$qry1 = mysql_query("SELECT `MisName` FROM `mismaster`");
$row1 = mysql_fetch_array($qry1);
$MisName = $row1['MisName'];

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Feedback Admin Panel">
    <meta name="author" content="SCPL">
    <meta name="keyword" content="Feedback, Feedback Dashboard, Customer Review, CRM">
    <link rel="shortcut icon" href="../assets/img/fav/favicon.ico">
    <title>Rezol POS</title>
	
    <!-- Icons -->
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="../assets/css/simple-line-icons.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
	
    <!-- Main styles for this application -->
    <link href="../assets/css/style.css" rel="stylesheet">
    <link href="../assets/css/custom.css" rel="stylesheet">	
    <link rel="stylesheet" href="../assets/css/emoji.css">
    <link rel="stylesheet" href="../assets/css/parsley.css">
    <link rel="stylesheet" href="../assets/css/jquery.toast.css">
    <link rel="stylesheet" href="../assets/css/jquery-confirm.css">
    <link rel="stylesheet" href="../assets/js/dropzone/dist/dropzone.css">
    <link rel="stylesheet" href="../assets/css/select2/select2.min.css">
    <link rel="stylesheet" href="../assets/css/fullcalendar/fullcalendar.min.css">
    <link rel="stylesheet" href="../assets/css/fullcalendar/fullcalendar.print.min.css" media='print'>
    <!-- <link rel="stylesheet" href="../assets/css/clockpicker/jquery-clockpicker.min.css"> -->
    <link rel="stylesheet" href="../assets/css/highlight/jquery.highlight-within-textarea.css">
    <link rel="stylesheet" href="../assets/css/ladda/ladda-themeless.min.css">
   
	<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid.min.css" />
	<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid-theme.min.css" />
	<!-- datepicker -->
	<link href="../plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
	<!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" /> -->
	
</head>

<body class="app header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden">
    <header class="app-header navbar">
        <button class="navbar-toggler mobile-sidebar-toggler d-lg-none mr-auto" type="button"><i class="fa fa-align-justify"></i></button>
        <!-- <a class="navbar-brand" href="#"><span style="color:#690069;">Rezol</span><span style="color: #16619c;">POS</span></a> -->
        <a class="navbar-brand" href="#"><img src="../assets/img/rezol-pos-logo.png" style="width:  100%;"></a>
        <!-- <a class="navbar-brand" href="#"><span style="color:#690069;">Feedback</span></a> -->
        <button class="navbar-toggler sidebar-minimizer d-md-down-none" type="button"><i class="fa fa-align-justify"></i></button>

        <!-- <ul class="nav navbar-nav d-md-down-none">
            <li class="nav-item px-3">
                <a class="nav-link" href="#">Dashboard</a>
            </li>
            <li class="nav-item px-3">
                <a class="nav-link" href="#">Users</a>
            </li>
            <li class="nav-item px-3">
                <a class="nav-link" href="#">Settings</a>
            </li>
        </ul> -->
        <ul class="nav navbar-nav ml-auto">
            <!-- <li class="nav-item d-md-down-none">
                <a class="nav-link" href="#"><i class="icon-bell"></i><span class="badge badge-pill badge-danger">5</span></a>
            </li>
            <li class="nav-item d-md-down-none">
                <a class="nav-link" href="#"><i class="icon-list"></i></a>
            </li>
            <li class="nav-item d-md-down-none">
                <a class="nav-link" href="#"><i class="icon-location-pin"></i></a>
            </li> -->
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                   <!--  <img src="img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com"> -->
                    <span class="d-md-down-none"><?php echo $MisName; ?></span>
                </a>
                <div class="dropdown-menu dropdown-menu-right">
                    <div class="dropdown-header text-center">
                        <strong><?php echo $row['StaffName']; ?></strong>
                    </div>
                    <!-- <a class="dropdown-item" href="#"><i class="fa fa-bell-o"></i> Updates<span class="badge badge-info">42</span></a>
                    <a class="dropdown-item" href="#"><i class="fa fa-envelope-o"></i> Messages<span class="badge badge-success">42</span></a>
                    <a class="dropdown-item" href="#"><i class="fa fa-tasks"></i> Tasks<span class="badge badge-danger">42</span></a>
                    <a class="dropdown-item" href="#"><i class="fa fa-comments"></i> Comments<span class="badge badge-warning">42</span></a>
                    <div class="dropdown-header text-center">
                        <strong>Settings</strong>
                    </div>
                    <a class="dropdown-item" href="#"><i class="fa fa-user"></i> Profile</a>
                    <a class="dropdown-item" href="#"><i class="fa fa-wrench"></i> Settings</a>
                    <a class="dropdown-item" href="#"><i class="fa fa-usd"></i> Payments<span class="badge badge-default">42</span></a>
                    <a class="dropdown-item" href="#"><i class="fa fa-file"></i> Projects<span class="badge badge-primary">42</span></a>
                    <div class="divider"></div>
                    <a class="dropdown-item" href="#"><i class="fa fa-shield"></i> Lock Account</a> -->
                    <a class="dropdown-item" href="../logout.php"><i class="fa fa-lock"></i> Logout</a>
                </div>
            </li>
        </ul>
        <!-- <button class="navbar-toggler aside-menu-toggler" type="button"><i class="fa fa-align-justify"></i></button> -->

    </header>
	
	<div class="app-body">
        <!-- Sidebar Menu -->
		<div class="sidebar">
            <?php include("sidebar.php"); ?>
        </div>

        <!-- Main content -->
        <main class="main">

            <!-- Breadcrumb -->
            <?php //include("breadcrumb.php"); ?>
			
			<div class="container-fluid">
                <div class="animated fadeIn">