75 lines
3.3 KiB
PHP
75 lines
3.3 KiB
PHP
<?php
|
||
$current_page = basename($_SERVER['PHP_SELF']);
|
||
$page_title = isset($page_title) ? $page_title : "FRA-INSIGHT";
|
||
|
||
$nav_items = [
|
||
'index.php' => 'Home Dashboard',
|
||
'upload.php' => 'Upload & Analyze',
|
||
'resilience.php' => 'Resilience Index',
|
||
'policy.php' => 'Policy View',
|
||
'federated.php' => 'Federated Learning',
|
||
'green.php' => 'Green Impact'
|
||
];
|
||
?>
|
||
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title><?php echo htmlspecialchars($page_title); ?> | FRA-INSIGHT</title>
|
||
<meta name="description" content="AI-based Explainable Diagnostics for India’s Power Infrastructure.">
|
||
<meta name="keywords" content="FRA-INSIGHT, transformer health, power grid, AI diagnostics, predictive maintenance">
|
||
|
||
<!-- Open Graph / Facebook -->
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?> | FRA-INSIGHT">
|
||
<meta property="og:description" content="AI-based Explainable Diagnostics for India’s Power Infrastructure.">
|
||
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||
|
||
<!-- Twitter -->
|
||
<meta property="twitter:card" content="summary_large_image">
|
||
<meta property="twitter:title" content="<?php echo htmlspecialchars($page_title); ?> | FRA-INSIGHT">
|
||
<meta property="twitter:description" content="AI-based Explainable Diagnostics for India’s Power Infrastructure.">
|
||
<meta property="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||
|
||
<!-- Stylesheets -->
|
||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||
|
||
<!-- Fonts -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
|
||
|
||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||
|
||
<!-- JS Libraries -->
|
||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/qrious@4.0.2/dist/qrious.min.js"></script>
|
||
|
||
</head>
|
||
<body>
|
||
|
||
<nav class="navbar navbar-expand-lg navbar-custom">
|
||
<div class="container">
|
||
<a class="navbar-brand" href="index.php">
|
||
<i class="bi bi-lightning-charge-fill"></i>
|
||
FRA-INSIGHT
|
||
</a>
|
||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||
<span class="navbar-toggler-icon"></span>
|
||
</button>
|
||
<div class="collapse navbar-collapse" id="navbarNav">
|
||
<ul class="navbar-nav ms-auto">
|
||
<?php foreach ($nav_items as $file => $name): ?>
|
||
<li class="nav-item">
|
||
<a class="nav-link <?php echo ($current_page == $file) ? 'active' : ''; ?>" href="<?php echo $file; ?>"><?php echo $name; ?></a>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<main>
|