*/
session_start();
if (!isset($_SESSION['user'])) {
    header("Location: index.php");
    exit;
}
require_once '../controller/SqliteRepository.php';
require_once '../model/Customer.php';
require_once '../model/Employee.php';
require_once '../model/Payment.php';
require_once '../model/Admin.php';
$repo = new \pnaika\finals\SqliteRepository();
$time = date("d M Y - h:i:s A");
if (isset($_GET['empId'])) {
    $employeeId = $_GET['empId'];
    $employee = $repo->getEmployeeById($employeeId);
    $role = 'EMPLOYEE';
} else {
    if (isset($_GET['adminId'])) {
        $adminId = $_GET['adminId'];
        $role = 'ADMIN';
    }
}
$allCustomers = $repo->getAllCustomers();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SHOW ALL PAYMENT</title>
    exit;
}
require_once '../controller/SqliteRepository.php';
require_once '../model/Employee.php';
$repo = new \pnaika\finals\SqliteRepository();
function input($data)
{
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    return $data;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST['empId'])) {
    ?>
    <?php 
    $employee = $repo->getEmployeeById($_POST['empId']);
    ?>
    <!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>EMPLOYEE PROFILE</title>
        <link rel="stylesheet" href="../style/style.css">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href='http://fonts.googleapis.com/css?family=Lora:400,700' rel='stylesheet' type='text/css'/>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"/>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"/>
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"/>
    </head>
    <body>
    <a href="#"><img class="logo" src="../images/logo/gpsLogo.jpg" alt="CCS" title="GLOBAL PARKING SYSTEM"></a>