-
Notifications
You must be signed in to change notification settings - Fork 0
/
employeedashboard.php
executable file
·39 lines (38 loc) · 1.35 KB
/
employeedashboard.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- V0LT - Marathon -->
<?php
session_start(); // Start a PHP session.
if ($_SESSION['authid'] == "marathon" and $_SESSION['loggedin'] == 2) { // Check to see if the user is logged in.
$username = $_SESSION['username']; // Set the '$username' variable to the currently signed in user's username.
} else {
header("Location: login.php"); // Redirect the user to the login page.
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marathon - Employee Dashboard</title>
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body>
<a class="button" role="button" href="logout.php">Logout</a>
<div style="text-align:center;">
<?php
include('./import_databases.php');
?>
</div>
<div class="centered header">
<h1>Marathon</h1>
<h2>Employee Dashboard</h2>
</div>
<main>
<div class="centered">
<a class="button" role="button" href="timecard.php">Timecard</a>
<a class="button" role="button" href="employeeinformation.php">Information</a>
<a class="button" role="button" href="timecardreceipts.php">Receipts</a>
</div>
</main>
</body>
</html>