<?php include ('connection.php') ;
session_start();
if (!isset($_SESSION['is_logged_in'])) {

    header("Location:login.php");

    die();

    }



date_default_timezone_set('Asia/Calcutta');
$today = date("d/m/Y");
$today_dash = date("d-m-Y");
$today2 = date("Y-m-d");
//$today3 = strtotime(date("Y-m-d", strtotime("-5 day")));

$today1 = date("d/m");
$currentmonth = date("m");


$querylogin = "select * from  users where username = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."'";
$resultlogin = mysqli_query($conn,$querylogin);
while($row=mysqli_fetch_array($resultlogin))
{
$department = $row['department'];
$user_id = $row['user_id'];
$first_name = $row['first_name'];
$login_type=$row['login_type'];

}



?>

<!DOCTYPE html>

<html>

<!-- Mirrored from themesdesign.in/xadmino/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Feb 2021 12:04:34 GMT -->

<head>

<meta charset="utf-8" />

<title>KANAKAVEDA ENQUIRY PANEL</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

<meta content="Admin Dashboard" name="description" />

<meta content="ThemeDesign" name="author" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<link rel="shortcut icon" href="assets/images/logo_sm.png">

<link href="assets/plugins/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/datatables/responsive.bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/datatables/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/icons.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/select2/dist/css/select2.min.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet" type="text/css">
<link href="vendors/bower_components/multiselect/css/multi-select.css" rel="stylesheet" type="text/css">

 <style>
        .calendar {
            width: 100%;
            border-collapse: collapse;
        }
        .calendar th, .calendar td {
            border: 1px solid #ccc;
            padding: 5px;
            text-align: center;
        }
        .calendar th {
            background-color: #f2f2f2;
        }
    </style>



 <script type="text/javascript" >

   function preventBack(){window.history.forward();}

    setTimeout("preventBack()", 0);

    window.onunload=function(){null};

</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#name").keyup(function() {

var name = $('#name').val();

if(name=="")

{

$("#disp").html("");

}

else

{

$.ajax({

type: "POST",

url: "user_check_sub.php",

data: "name="+ name ,

success: function(html){

$("#disp").html(html);

}

});

return false;

}

});

});

</script>

<script type="text/javascript">

$(document).ready(function(){

$("#name1").keyup(function() {

var name1 = $('#name1').val();

if(name1=="")

{

$("#disp1").html("");

}

else

{

$.ajax({

type: "POST",

url: "user_check_sub_id.php",

data: "name="+ name1 ,

success: function(html){

$("#disp1").html(html);

}

});

return false;

}

});

});

</script>	



</head>

<body class="fixed-left">

<div id="wrapper">

  <div class="topbar">

    <div class="topbar-left">

      <div class="text-center"> <a href="index.php" class="logo"><img src="assets/images/logo.png" width="200"></a> <a href="index.html" class="logo-sm"><img src="assets/images/logo_sm.png" height="36"></a></div>

    </div>

    <div class="navbar navbar-default" role="navigation">

      <div class="container">

        <div class="">

          <div class="pull-left">

            <button type="button" class="button-menu-mobile open-left waves-effect waves-light"> <i class="ion-navicon"></i> </button>

            <span class="clearfix"></span></div>

        

          <ul class="nav navbar-nav navbar-right pull-right">

            

            <li class="hidden-xs"> <a href="#" id="btn-fullscreen" class="waves-effect waves-light"><i class="fa fa-crosshairs"></i></a></li>

            <li class="dropdown"> <a href="#" class="dropdown-toggle profile waves-effect waves-light" data-toggle="dropdown" aria-expanded="true"><img src="assets/images/users/avatar-1.jpg" alt="user-img" class="img-circle"> </a>

              <ul class="dropdown-menu">

                <!--<li><a href="javascript:void(0)"> Profile</a></li>

                <li><a href="javascript:void(0)"><span class="badge badge-success pull-right">5</span> Settings </a></li>-->

               <!-- <li class="divider"></li>-->

                <li><a href="logout.php"> Logout</a></li>

              </ul>

            </li>

          </ul>

        </div>

      </div>

    </div>

  </div>

  <div class="left side-menu">

    <div class="sidebar-inner slimscrollleft">

      <div class="user-details">

        <div class="text-center"> <img src="assets/images/users/avatar-1.jpg" alt="" class="img-circle"></div>

        <div class="user-info">

          <div class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"></a>

            

          </div>

          <p class="text-muted m-0"><i class="fa fa-dot-circle-o text-success"></i> Online</p>

        </div>

      </div>

      <div id="sidebar-menu"><ul style="text-transform:uppercase;">

<?php if($login_type=='Super Admin'){?>

        		    <li> <a href="index.php" class="waves-effect"><i class="ti-home"></i><span>Dashboard </span></a></li> 
					<li><a href="calendar.php"><i class="fa fa-circle-o"></i>View Therapy Chart</a></li>
					<li><a href="view_all_prescription.php"><i class="fa fa-circle-o"></i>View Prescription</a></li>
					<li><a href="book_an_appointment.php"><i class="fa fa-circle-o"></i>Book An Appointment</a></li>
					  <li class="has_sub"> <a href="javascript:void(0);" class="waves-effect"><i class="ti-agenda"></i><span>Masters </span>

		  <span class="pull-right"><i class="mdi mdi-plus"></i></span></a>

            <ul class="list-unstyled">
<li><a href="view_all_users.php"><i class="fa fa-circle-o"></i>View All Users</a></li>
               
		   		<li><a href="view_all_ingredients.php"><i class="fa fa-circle-o"></i>View All Ingredients</a></li>
				<li><a href="view_all_products.php"><i class="fa fa-circle-o"></i>View All Products</a></li>
				<li><a href="view_all_package.php"><i class="fa fa-circle-o"></i>View All Package</a></li>
				<li><a href="view_all_therapy.php"><i class="fa fa-circle-o"></i>View All Therapy </a></li>
				<li><a href="view_all_therapist.php"><i class="fa fa-circle-o"></i>View All Therapist </a></li>
				<li><a href="view_all_timeslot.php"><i class="fa fa-circle-o"></i>View All Time Slot </a></li>
				<li><a href="view_all_event.php"><i class="fa fa-circle-o"></i>View All Event </a></li>
				<li><a href="view_all_unit.php"><i class="fa fa-circle-o"></i>View All Unit </a></li>
				<li><a href="view_all_formate.php"><i class="fa fa-circle-o"></i>View All Formate </a></li>


            </ul>

          </li> 

 			<?php } ?>
			
			<?php if($login_type=='User'){?>

        		    <li> <a href="index.php" class="waves-effect"><i class="ti-home"></i><span>Dashboard </span></a></li> 
					<li><a href="calendar.php"><i class="fa fa-circle-o"></i>View Therapy Chart</a></li>
					<li><a href="book_an_appointment.php"><i class="fa fa-circle-o"></i>Book An Appointment</a></li>
					 

 			<?php } ?>

</ul>



     

      </div>

      <div class="clearfix"></div>

    </div>

  </div>