57 lines
1.7 KiB
PHP
57 lines
1.7 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
if (!isset($_SESSION['user'])) {
|
|
header('Location: login.php');
|
|
exit;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Dashboard</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="d-flex justify-content-between align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h1 class="h2">Dashboard</h1>
|
|
<a href="logout.php" class="btn btn-outline-primary">Logout</a>
|
|
</div>
|
|
|
|
<h2>Welcome, <?php echo htmlspecialchars($_SESSION['user']['name']); ?>!</h2>
|
|
|
|
<div class="mt-4">
|
|
<h3>Event Schedule</h3>
|
|
<p><em>(Coming soon)</em></p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Event</th>
|
|
<th scope="col">Date</th>
|
|
<th scope="col">Time</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">1</th>
|
|
<td>Team Meeting</td>
|
|
<td>2025-09-01</td>
|
|
<td>10:00 AM</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">2</th>
|
|
<td>Project Deadline</td>
|
|
<td>2025-09-05</td>
|
|
<td>5:00 PM</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|