<?php

include 'connect.php';
if(!isset($_SESSION)){
    session_start();
}
if(isset($_SESSION['adminemail']))
{
$user=$_SESSION['adminemail'];

$usrtyp=mysql_query("select * from employee where username='$user'");
$usrtyp1=mysql_fetch_array($usrtyp);


$sett=mysql_query("select * from settings");

$settnum=mysql_num_rows($sett);

$sett1=mysql_fetch_array($sett);



if($settnum>0)

{

$compname=strtoupper($sett1['company_name']);

}

else

{

$compname='AGRO INDUSTIRES';

}



?>


<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title><?php echo $compname; ?></title>

		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />

		<!-- page specific plugin styles -->

		<!-- text fonts -->
		<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />
		<link rel="stylesheet" href="assets/css/bootstrap-datepicker3.min.css" />
		<!-- ace styles -->
		<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
		<link rel="stylesheet" href="assets/css/daterangepicker.min.css" />
		<!--[if lte IE 9]>
			<link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
		<![endif]-->
		<!--<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />-->

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="assets/js/ace-extra.min.js"></script>

		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

		<!--[if lte IE 8]>
		<script src="assets/js/html5shiv.min.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
        
<style>

ul.navbar-nav li
{
	border-left:none;
	border-right:none;
}

input[type="text"]
{
	width:220px;
	height:30px;
}

</style>        
        
	</head>

	<body class="no-skin">
		<div id="navbar" class="navbar navbar-default          ace-save-state">
			<div class="navbar-container ace-save-state" id="navbar-container">
				<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
					<span class="sr-only">Toggle sidebar</span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>
				</button>

				<div class="navbar-header pull-left">
					<a href="index.php" class="navbar-brand">
						<small style="text-transform:uppercase; font-size:16px;"><?php echo $compname; ?></small>
					</a>
				</div>

				<div class="navbar-buttons navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav" style="color:#FFF;">
						<li class="grey">
							<a href="../logout.php">
									<i class="ace-icon fa fa-user"></i> Logout
							</a>
						</li>
					</ul>
				</div>
                                                
			</div><!-- /.navbar-container -->
		</div>
        
        
        
        <div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>

			<div id="sidebar" class="sidebar responsive ace-save-state">
				<script type="text/javascript">
					try{ace.settings.loadState('sidebar')}catch(e){}
				</script>

				

				<ul class="nav nav-list">
					<li class="">
						<a href="index.php">
							<i class="menu-icon fa fa-tachometer"></i>
							<span class="menu-text"> Dashboard </span>
						</a>

					</li>
      				
                    <li class="">
						<a href="viewcustomer.php">
							<i class="menu-icon fa fa-users"></i>
							<span class="menu-text"> Customers </span>
						</a>

					</li>
                    
                    <li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-file"></i>
							<span class="menu-text">
								Follow Up
							</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							
							<li class="">
								<a href="followup.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Create
								</a>

								<b class="arrow"></b>
							</li>
                            
                            <?php
							
							if($usrtyp1['designation']=='2')
							{
								
							?>
                            
                            <li class="">
								<a href="followupreport1.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Follow up Report
								</a>

								<b class="arrow"></b>
							</li>
                            
                            <?php
							
							}
							
							else
							{
								
							?>
							
                            <li class="">
								<a href="followupreport.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Follow up Report
								</a>

								<b class="arrow"></b>
							</li>
                            
                            <?php	
								
							}
							
							?>
                            
                            <?php
							
							if($usrtyp1['designation']=='2')
							{
								
							?>
                            
                            <li class="">
								<a href="executivereport.php">
									<i class="menu-icon fa fa-caret-right"></i>
									Executives Report
								</a>

								<b class="arrow"></b>
							</li>
                            
                            <?php
								
							}
							
							?>
                            
                                                        
						</ul>
					</li>
                                       
                    
                    <li class="">
						<a href="viewsalesorder.php">
							<i class="menu-icon fa fa-list"></i>
							<span class="menu-text"> View Orders </span>
						</a>

					</li>
                    
                    

				</ul><!-- /.nav-list -->

				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>
			</div>
        
        
        
        
<?php
}
?>
