<?php 
include ('connection.php') ;

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);


?>
<?php 
$queryhead = "select * from users where username = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."' AND department_name ='".$_SESSION["LOGIN_TYPE"]."'";
$resulthead = mysql_query($queryhead,$conn);
while($row=mysql_fetch_array($resulthead))
	                                              	{
													
													  $staff_name = $row['full_name'];
													  $full_name = $row['full_name'];
													  $avatar = $row['avatar'];
													  $department_name = $row['department_name'];
													  $staff_id  = $row['id'];
													  $username = $row['username'];
													  $our_company = $row['our_company'];
													  $designation = $row['designation'];
													  $sales_group = $row['sales_group'];
													  $head = $row['head'];
													  $region = $row['region'];
													  $district = $row['district'];
													  $email = $row['email'];
													  $mobile_no = $row['mobile_no'];
													  $staff_id_self  = $row['id'];
													  $our_company = $row['our_company'];
													  
													  //echo $Branch;
													  }	
													   ?>	
<header class="main-header">

    <!-- Logo -->
    <a href="index2.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><img src="http://shigmoda.com/PWS_LLP/logo_small.jpg"></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><img src="http://shigmoda.com/PWS_LLP/logo.jpg"></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">

              <li class="user-footer">
               
                <div class="pull-right">
                   <a href="http://shigmoda.com/PWS_LLP/logout.php" class="btn btn-default btn-flat">Sign out</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
  
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      
    
      <ul class="sidebar-menu">
        <li class="header">MAIN NAVIGATION</li>
        <li class="treeview">
          <a href="http://shigmoda.com/PWS_LLP/view_all_employee.php">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span>
            
          </a>
		
          
        </li>
		
		 <li class="treeview">
          <a href="view_all_employee.php">
            <i class="fa fa-dashboard"></i> <span>View all Staff</span>
          </a>
        </li>	
		
		 <li class="treeview">
          <a href="view_all_salaryslip.php">
            <i class="fa fa-dashboard"></i> <span>View all Salary slip</span>
          </a>
        </li>	
		<li class="treeview">
          <a href="view_employee_slip_record.php">
            <i class="fa fa-dashboard"></i> <span>View/Download all Details Salary </span>
          </a>
        </li>	
		
		<li class="treeview">
          <a href="view_all_staffleave.php">
            <i class="fa fa-dashboard"></i> <span>View Leave </span>
          </a>
        </li>	
		
		<li class="treeview">
          <a href="view_all_employee_loan.php">
            <i class="fa fa-dashboard"></i> <span>View Loan </span>
          </a>
        </li>	
		<li class="treeview">
          <a href="view_employee_increment.php">
            <i class="fa fa-dashboard"></i> <span>View Increment </span>
          </a>
        </li>	
		
			
    
		
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>