-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·68 lines (65 loc) · 3.38 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!-- V0LT - Marathon -->
<?php
session_start(); // Start a PHP session.
if ($_SESSION['authid'] == "marathon" and $_SESSION['loggedin'] == 1) { // 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 - Adminstration</title>
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body>
<a class="button" role="button" href="logout.php">Logout</a>
<div class="centered">
<?php include('./import_databases.php'); ?>
</div>
<div class="centered header">
<h1>Marathon</h1>
<h2>Administration</h2>
</div>
<main>
<div class="row projects">
<div class="tile col-sm-6 col-lg-4 item">
<h3>Employees</h3>
<p>Add, remove, and edit employees in the database.</p>
<a class="button" role="button" href="employees.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
<div class="tile col-sm-6 col-lg-4 item">
<h3>Positions</h3>
<p>Add, remove, and edit positions in the database.</p>
<a class="button" role="button" href="positions.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
<div class="tile col-sm-6 col-lg-4 item">
<h3>Statistics</h3>
<p>View statistics related to this Marathon instance.</p>
<a class="button" role="button" href="statistics.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
<div class="tile col-sm-6 col-lg-4 item">
<h3>Configuration</h3>
<p>View and update this instance's configuration.</p>
<a class="button" role="button" href="configure.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
<div class="tile col-sm-6 col-lg-4 item">
<h3>Shifts</h3>
<p>Access useful administrative tools for managing shifts.</p>
<a class="button" role="button" href="shifts.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
<div class="tile col-sm-6 col-lg-4 item">
<h3>Accounts</h3>
<p>View and manage administrator accounts on this instance.</p>
<a class="button" role="button" href="manageaccounts.php" style="background-color:#444444;border-color:#eeeeee">Open</a>
</div>
</div>
</main>
</div>
</div>
</body>
</html>