35273-vm/dashboard.php
Flatlogic Bot a3fa722e5f c3
2025-10-27 12:46:17 +00:00

44 lines
1.8 KiB
PHP

<?php
require_once 'config.php';
include 'header.php';
// This is a protected page. If the user is not logged in, redirect to login.
if (!isset($_SESSION['user_email'])) {
header('Location: login.php');
exit;
}
?>
<div class="container mt-5">
<div class="row">
<div class="col-12">
<div class="alert alert-success">
<strong>Welcome, <?php echo htmlspecialchars($_SESSION[''''user_email''']); ?>!</strong> You are now logged in.
</div>
<div class="card">
<div class="card-header">
<h2>Dashboard</h2>
</div>
<div class="card-body">
<p>This is a placeholder for your dashboard content. From here, you will be able to manage your reporting tasks based on your role.</p>
<hr>
<h4>Actions</h4>
<div class="list-group">
<a href="upload.php" class="list-group-item list-group-item-action">
<i class="bi bi-file-earmark-arrow-up-fill me-2"></i>
<strong>Submit a new Report</strong>
<p class="mb-1 text-muted">Upload your XML report file for validation and processing.</p>
</a>
<a href="analysis.php" class="list-group-item list-group-item-action">
<i class="bi bi-bar-chart-line-fill me-2"></i>
<strong>Analyze Data</strong>
<p class="mb-1 text-muted">View aggregated data, trends, and generate analytical reports.</p>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>