<?php 
session_start();
if (!$_SESSION['id_session']){
	header("Location:index.php");
	exit;
}
include("../conn.php");
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="BIT SME Software">
    <meta name="keyword" content="BIT SME Software">
    <link rel="shortcut icon" href="img/favicon.png">

    <title>Admin</title>

    <!-- Bootstrap CSS -->    
    <link href="assets/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- bootstrap theme -->
    <link href="assets/dist/css/bootstrap-theme.css" rel="stylesheet">
    <!--external css-->
    <!-- font icon -->
    <link href="assets/dist/css/elegant-icons-style.css" rel="stylesheet" />
    <link href="assets/dist/css/font-awesome.min.css" rel="stylesheet" />    
    
    <link rel="stylesheet" href="../assets/dist/css/owl.carousel.css" type="text/css">
	<link href="assets/dist/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
    <!-- Custom styles -->
	<link rel="stylesheet" href="css/fullcalendar.css">
	<link href="assets/dist/css/widgets.css" rel="stylesheet">
    <link href="assets/dist/css/style.css" rel="stylesheet">
    <link href="assets/dist/css/style-responsive.css" rel="stylesheet" />
	<link href="assets/dist/css/xcharts.min.css" rel=" stylesheet">	
	<link href="assets/dist/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
    
  </head>

  <body>
  
  
    
  
  <!-- container section start -->
  <section id="container" class="">
     
      
      <header class="header dark-bg">
            <!--logo start-->
        <a href="home.php" class="logo">Admin</a>
      </header>      
      <!--header end-->

    <br/><br/><br/><br/>
              <p align="center">
              <?php
              if($_SESSION['type']=='admin'){
              ?>
              
                      <a class="" href="welcome.php">                          
                          <span>Dashboard</span>
                      </a>
             
                         &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="page.php">                          
                          <span>Manage Pages</span>
                      </a>
                 &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="feedback.php">                          
                          <span>Feedbacks</span>
                      </a>
                      
                      
                 &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="event.php">                          
                          <span>Events</span>
                      </a>
                      
                      &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="media.php">                          
                          <span>Media</span>
                      </a>
                      
                      &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="team.php">                          
                          <span>Members</span>
                      </a>
                      
					
					   
                       &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="resource.php">                          
                          <span>Resource (post)</span>
                      </a>
					  
					  &nbsp;&nbsp; | &nbsp;&nbsp;
                      <a class="" href="document.php">                          
                          <span>Resource (documents)</span>
                      </a>
                    
                
              <?php
              }
              ?>
                  
                      &nbsp;&nbsp; | &nbsp;&nbsp;                 
                      <a class="" href="index.php?action=0">
                          <span>Logout</span>                          
                      </a>
                   
             </p>
          
</section>