<?php
	if (!isset($_SESSION['connecteduserid']))
	{	
?>
		<script>
			location.href="<?php echo $base_url; ?>";
		</script>
<?php
		exit();
	}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title><?php echo $pagetitle; ?></title>
		<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
		
		<link rel="shortcut icon" href="<?php echo $base_url; ?>favicon.jpg">
		
		
		
		 <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- JQVMap -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/jqvmap/jqvmap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/dist/css/adminlte.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/daterangepicker/daterangepicker.css">
  <!-- summernote -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/summernote/summernote-bs4.css">
  
  
  	<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
		 
  <!-- DataTables -->
  <link rel="stylesheet" href="<?php echo $base_url; ?>mod/plugins/datatables-bs4/css/dataTables.bootstrap4.css">
  
  
  
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
		<![endif]-->
	</head>
	<body class="hold-transition sidebar-mini">
		<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>" class="nav-link">Home</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>cashsalesregister.php" class="nav-link">Sale</a>
      </li>

      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>jobsearch.php" class="nav-link">Receipts</a>
      </li>
      
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>notcleared.php" class="nav-link">Notcleared</a>
      </li>
      
       <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>jobsearch.php/today/0" class="nav-link">Today's Jobs</a>
      </li>
      
       <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo $base_url; ?>jobsreport.php/waiting/5" class="nav-link">Waiting</a>
      </li>
      
     
      
      
      
     
    </ul>

     

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        
		
		<div class="navbar-custom-menu">
						<ul class="nav navbar-nav">
							 
							<!-- User Account: style can be found in dropdown.less -->
							<li class="dropdown user user-menu">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">
									<span class="hidden-xs"><?php echo $_SESSION["connecteduserdisplayname"]; ?></span>
								</a>
								<ul class="dropdown-menu">
									<li class="user-footer">
										<div class="pull-left">
											<a href="<?php echo $base_url; ?>systemuserchangepassword.php" class="btn btn-default btn-flat">Change Password</a>
										</div>
										<div class="pull-right">
											<a href="<?php echo $base_url; ?>logout.php" class="btn btn-default btn-flat">Sign out</a>
										</div>
									</li>
								</ul>
							</li>
						</ul>
					</div>
         
          
           
          
       
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->
			
			
			
